From b34b160a7332f94015fc047455b718e303920dc8 Mon Sep 17 00:00:00 2001 From: lilibo <1471506043@qq.com> Date: 星期三, 22 一月 2025 10:58:23 +0800 Subject: [PATCH] 漏洞修改 升级tomcat版本 --- consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackModel_mapper.java | 64 +++++++++++++++++++++---------- 1 files changed, 43 insertions(+), 21 deletions(-) diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackModel_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackModel_mapper.java index c82d963..8c6d67a 100644 --- a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackModel_mapper.java +++ b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackModel_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_MODEL * + * * @author genrator */ public class DepFormBackModel_mapper extends DepFormBackModel implements BaseMapper<DepFormBackModel> { @@ -37,6 +37,7 @@ public static final String DepFormLendingModelId = "dep_form_lending_model_id"; public static final String DepFormLendingGoodsId = "dep_form_lending_goods_id"; public static final String DepFormLendingId = "dep_form_lending_id"; + public static final String WarehouseId = "warehouse_id"; /** * 榛樿鏋勯�犲嚱鏁� @@ -45,11 +46,11 @@ if (depFormBackModel == null) { throw new IllegalArgumentException("po鍙傛暟涓嶅厑璁镐负绌猴紒"); } - //涓婚敭 + // 涓婚敭 if (depFormBackModel.isset_id) { this.setId(depFormBackModel.getId()); } - //鏅�氬睘鎬� + // 鏅�氬睘鎬� if (depFormBackModel.isset_depFormBackGoodsId) { this.setDepFormBackGoodsId(depFormBackModel.getDepFormBackGoodsId()); } @@ -77,6 +78,9 @@ if (depFormBackModel.isset_depFormLendingId) { this.setDepFormLendingId(depFormBackModel.getDepFormLendingId()); } + if (depFormBackModel.isset_warehouseId) { + this.setWarehouseId(depFormBackModel.getWarehouseId()); + } // 鍘绘帀锛�2022-09-07 // this.setDatabaseName_(dep_form_back_model.getDatabaseName_()); } @@ -88,12 +92,9 @@ public String getTableName_() { String tableName = "dep_form_back_model"; /** - 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; } @@ -129,6 +130,7 @@ ib.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); + ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); return ib.genMapSql(); } @@ -147,6 +149,7 @@ ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); 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(); } @@ -166,6 +169,7 @@ ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); + ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); return ub.genMapSql(where, parameters); } @@ -184,6 +188,7 @@ ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); + ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); return ub.genArraySql(where, parameters); } @@ -225,13 +230,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_goods_id, dep_form_back_id, wh_goods_details_id, using_goods_his_id, wh_goods_id, counts, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>( + "select id, dep_form_back_goods_id, dep_form_back_id, wh_goods_details_id, using_goods_his_id, wh_goods_id, counts, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + + this.getTableName_() + " " + where, + parameters); } /** @@ -239,7 +246,10 @@ */ @Override public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { - return new SqlAndParameters<>("select id, dep_form_back_goods_id, dep_form_back_id, wh_goods_details_id, using_goods_his_id, wh_goods_id, counts, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>( + "select id, dep_form_back_goods_id, dep_form_back_id, wh_goods_details_id, using_goods_his_id, wh_goods_id, counts, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + + this.getTableName_() + " " + where, + parameters); } /** @@ -270,12 +280,12 @@ ResultSetUtils resultSetUtils = new ResultSetUtils(); DepFormBackModel dep_form_back_model = new DepFormBackModel(); Integer columnIndex; - //涓婚敭 + // 涓婚敭 columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.Id); if (columnIndex > 0) { dep_form_back_model.setId(rs.getLong(columnIndex)); } - //鏅�氬睘鎬� + // 鏅�氬睘鎬� columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.DepFormBackGoodsId); if (columnIndex > 0) { if (rs.getBigDecimal(columnIndex) == null) { @@ -302,7 +312,11 @@ } columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.UsingGoodsHisId); if (columnIndex > 0) { - dep_form_back_model.setUsingGoodsHisId(rs.getString(columnIndex)); + if (rs.getBigDecimal(columnIndex) == null) { + dep_form_back_model.setUsingGoodsHisId(null); + } else { + dep_form_back_model.setUsingGoodsHisId(rs.getLong(columnIndex)); + } } columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.WhGoodsId); if (columnIndex > 0) { @@ -344,6 +358,14 @@ dep_form_back_model.setDepFormLendingId(rs.getLong(columnIndex)); } } + columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.WarehouseId); + if (columnIndex > 0) { + if (rs.getBigDecimal(columnIndex) == null) { + dep_form_back_model.setWarehouseId(null); + } else { + dep_form_back_model.setWarehouseId(rs.getLong(columnIndex)); + } + } return dep_form_back_model; } } -- Gitblit v1.9.1