From fd95223d9703b9c038ed3c782474c885052dda08 Mon Sep 17 00:00:00 2001 From: futian.liu <liufutianyoo@163.com> Date: 星期五, 22 十二月 2023 17:05:25 +0800 Subject: [PATCH] 代码整理 --- consum-model-pojo/src/main/java/com/consum/model/po/BaseCodeIndexing_mapper.java | 38 ++++++++++++++++++-------------------- 1 files changed, 18 insertions(+), 20 deletions(-) diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/BaseCodeIndexing_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/BaseCodeIndexing_mapper.java index 4c27b65..0672b57 100644 --- a/consum-model-pojo/src/main/java/com/consum/model/po/BaseCodeIndexing_mapper.java +++ b/consum-model-pojo/src/main/java/com/consum/model/po/BaseCodeIndexing_mapper.java @@ -1,5 +1,11 @@ package com.consum.model.po; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.Map; + +import org.springframework.jdbc.core.RowMapper; + import com.walker.jdbc.BaseMapper; import com.walker.jdbc.ResultSetUtils; import com.walker.jdbc.SqlAndParameters; @@ -7,16 +13,10 @@ import com.walker.jdbc.sqlgen.InsertBuilder; import com.walker.jdbc.sqlgen.SelectBuilder; import com.walker.jdbc.sqlgen.UpdateBuilder; -import com.walker.jdbc.util.StringUtils; - -import org.springframework.jdbc.core.RowMapper; - -import java.sql.ResultSet; -import java.sql.SQLException; -import java.util.Map; /** * 琛ㄥ悕:BASE_CODE_INDEXING * + * * @author genrator */ public class BaseCodeIndexing_mapper extends BaseCodeIndexing implements BaseMapper<BaseCodeIndexing> { @@ -41,11 +41,11 @@ if (baseCodeIndexing == null) { throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒"); } - //涓婚敭 + // 涓婚敭 if (baseCodeIndexing.isset_id) { this.setId(baseCodeIndexing.getId()); } - //鏅�氬睘鎬� + // 鏅�氬睘鎬� if (baseCodeIndexing.isset_yearIndex) { this.setYearIndex(baseCodeIndexing.getYearIndex()); } @@ -72,12 +72,9 @@ public String getTableName_() { String tableName = "base_code_indexing"; /** - if (StringUtils.isNotEmpty(this.getDatabaseName_())) { - return this.getDatabaseName_() + "." + tableName; - } else { - return tableName; - } - */ + * if (StringUtils.isNotEmpty(this.getDatabaseName_())) { return this.getDatabaseName_() + "." + tableName; } + * else { return tableName; } + */ return tableName; } @@ -193,13 +190,13 @@ return sb.genMapSql(); } - /** * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁� */ @Override public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { - return new SqlAndParameters<>("select id, year_index, month_index, day_index, code_index, code_prefix from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>("select id, year_index, month_index, day_index, code_index, code_prefix from " + + this.getTableName_() + " " + where, parameters); } /** @@ -207,7 +204,8 @@ */ @Override public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { - return new SqlAndParameters<>("select id, year_index, month_index, day_index, code_index, code_prefix from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>("select id, year_index, month_index, day_index, code_index, code_prefix from " + + this.getTableName_() + " " + where, parameters); } /** @@ -238,12 +236,12 @@ ResultSetUtils resultSetUtils = new ResultSetUtils(); BaseCodeIndexing base_code_indexing = new BaseCodeIndexing(); Integer columnIndex; - //涓婚敭 + // 涓婚敭 columnIndex = resultSetUtils.findColumn(rs, BaseCodeIndexing_mapper.Id); if (columnIndex > 0) { base_code_indexing.setId(rs.getLong(columnIndex)); } - //鏅�氬睘鎬� + // 鏅�氬睘鎬� columnIndex = resultSetUtils.findColumn(rs, BaseCodeIndexing_mapper.YearIndex); if (columnIndex > 0) { if (rs.getBigDecimal(columnIndex) == null) { -- Gitblit v1.9.1