From 62b6a7fac3f2acde70b578431147c4a01f19c182 Mon Sep 17 00:00:00 2001 From: 黎星凯 <13949086503@163.com> Date: 星期一, 15 四月 2024 09:07:05 +0800 Subject: [PATCH] bug修改 --- consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackGoods_mapper.java | 74 +++++++++++++++++++++++++++---------- 1 files changed, 54 insertions(+), 20 deletions(-) diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackGoods_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackGoods_mapper.java index 9d801f0..4a8f93a 100644 --- a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackGoods_mapper.java +++ b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackGoods_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; /** * 琛ㄥ悕:DEP_FORM_BACK_GOODS * + * * @author genrator */ public class DepFormBackGoods_mapper extends DepFormBackGoods implements BaseMapper<DepFormBackGoods> { @@ -34,6 +34,8 @@ public static final String InitCount = "init_count"; public static final String DepFormLendingGoodsId = "dep_form_lending_goods_id"; public static final String EndCount = "end_count"; + public static final String DepFormLendingId = "dep_form_lending_id"; + public static final String WarehouseId = "warehouse_id"; /** * 榛樿鏋勯�犲嚱鏁� @@ -42,11 +44,11 @@ if (depFormBackGoods == null) { throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒"); } - //涓婚敭 + // 涓婚敭 if (depFormBackGoods.isset_id) { this.setId(depFormBackGoods.getId()); } - //鏅�氬睘鎬� + // 鏅�氬睘鎬� if (depFormBackGoods.isset_depFormBackId) { this.setDepFormBackId(depFormBackGoods.getDepFormBackId()); } @@ -65,6 +67,12 @@ if (depFormBackGoods.isset_endCount) { this.setEndCount(depFormBackGoods.getEndCount()); } + if (depFormBackGoods.isset_depFormLendingId) { + this.setDepFormLendingId(depFormBackGoods.getDepFormLendingId()); + } + if (depFormBackGoods.isset_warehouseId) { + this.setWarehouseId(depFormBackGoods.getWarehouseId()); + } // 鍘绘帀锛�2022-09-07 // this.setDatabaseName_(dep_form_back_goods.getDatabaseName_()); } @@ -76,12 +84,9 @@ public String getTableName_() { String tableName = "dep_form_back_goods"; /** - 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; } @@ -114,6 +119,8 @@ ib.set(InitCount, this.getInitCount(), this.isset_initCount); ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); ib.set(EndCount, this.getEndCount(), this.isset_endCount); + ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); + ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); return ib.genMapSql(); } @@ -129,6 +136,8 @@ ub.set(InitCount, this.getInitCount(), this.isset_initCount); ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); ub.set(EndCount, this.getEndCount(), this.isset_endCount); + ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); + ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); ub.where(this.getPkName_(), this.getPkValue_()); return ub.genMapSql(); } @@ -145,6 +154,8 @@ ub.set(InitCount, this.getInitCount(), this.isset_initCount); ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); ub.set(EndCount, this.getEndCount(), this.isset_endCount); + ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); + ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); return ub.genMapSql(where, parameters); } @@ -160,6 +171,8 @@ ub.set(InitCount, this.getInitCount(), this.isset_initCount); ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); ub.set(EndCount, this.getEndCount(), this.isset_endCount); + ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); + ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); return ub.genArraySql(where, parameters); } @@ -201,13 +214,15 @@ return sb.genMapSql(); } - /** * 鑾峰彇鏌ヨ璇彞鍜屽弬鏁� */ @Override public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { - return new SqlAndParameters<>("select id, dep_form_back_id, unit, back_counts, init_count, dep_form_lending_goods_id, end_count from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>( + "select id, dep_form_back_id, unit, back_counts, init_count, dep_form_lending_goods_id, end_count, dep_form_lending_id, warehouse_id from " + + this.getTableName_() + " " + where, + parameters); } /** @@ -215,7 +230,10 @@ */ @Override public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { - return new SqlAndParameters<>("select id, dep_form_back_id, unit, back_counts, init_count, dep_form_lending_goods_id, end_count from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>( + "select id, dep_form_back_id, unit, back_counts, init_count, dep_form_lending_goods_id, end_count, dep_form_lending_id, warehouse_id from " + + this.getTableName_() + " " + where, + parameters); } /** @@ -246,12 +264,12 @@ ResultSetUtils resultSetUtils = new ResultSetUtils(); DepFormBackGoods dep_form_back_goods = new DepFormBackGoods(); Integer columnIndex; - //涓婚敭 + // 涓婚敭 columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.Id); if (columnIndex > 0) { dep_form_back_goods.setId(rs.getLong(columnIndex)); } - //鏅�氬睘鎬� + // 鏅�氬睘鎬� columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.DepFormBackId); if (columnIndex > 0) { if (rs.getBigDecimal(columnIndex) == null) { @@ -296,6 +314,22 @@ dep_form_back_goods.setEndCount(rs.getInt(columnIndex)); } } + columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.DepFormLendingId); + if (columnIndex > 0) { + if (rs.getBigDecimal(columnIndex) == null) { + dep_form_back_goods.setDepFormLendingId(null); + } else { + dep_form_back_goods.setDepFormLendingId(rs.getLong(columnIndex)); + } + } + columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.WarehouseId); + if (columnIndex > 0) { + if (rs.getBigDecimal(columnIndex) == null) { + dep_form_back_goods.setWarehouseId(null); + } else { + dep_form_back_goods.setWarehouseId(rs.getLong(columnIndex)); + } + } return dep_form_back_goods; } } -- Gitblit v1.9.1