From f5ec605bdab7ade01d58f4c162d34d2a521d6ed2 Mon Sep 17 00:00:00 2001 From: 杨凯 <398860375@qq.com> Date: 星期六, 21 十月 2023 11:15:14 +0800 Subject: [PATCH] 新增mapper --- consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedGoods_mapper.java | 88 +++++++++----------------------------------- 1 files changed, 18 insertions(+), 70 deletions(-) diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedGoods_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedGoods_mapper.java index 8f37775..20cfde6 100644 --- a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedGoods_mapper.java +++ b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedGoods_mapper.java @@ -28,11 +28,6 @@ // 涓婚敭 public static final String Id = "id"; // 鏅�氬睘鎬� - public static final String BaseGoodsTemplateId = "base_goods_template_id"; - public static final String GoodsTemplateName = "goods_template_name"; - public static final String Unit = "unit"; - public static final String BaseGoodsModelsId = "base_goods_models_id"; - public static final String BaseGoodsModelsName = "base_goods_models_name"; public static final String ScrappedCounts = "scrapped_counts"; public static final String InitCount = "init_count"; public static final String DepFormScrappedId = "dep_form_scrapped_id"; @@ -41,6 +36,7 @@ public static final String ScrappedName = "scrapped_name"; 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"; /** * 榛樿鏋勯�犲嚱鏁� @@ -54,21 +50,6 @@ this.setId(depFormScrappedGoods.getId()); } //鏅�氬睘鎬� - if (depFormScrappedGoods.isset_baseGoodsTemplateId) { - this.setBaseGoodsTemplateId(depFormScrappedGoods.getBaseGoodsTemplateId()); - } - if (depFormScrappedGoods.isset_goodsTemplateName) { - this.setGoodsTemplateName(depFormScrappedGoods.getGoodsTemplateName()); - } - if (depFormScrappedGoods.isset_unit) { - this.setUnit(depFormScrappedGoods.getUnit()); - } - if (depFormScrappedGoods.isset_baseGoodsModelsId) { - this.setBaseGoodsModelsId(depFormScrappedGoods.getBaseGoodsModelsId()); - } - if (depFormScrappedGoods.isset_baseGoodsModelsName) { - this.setBaseGoodsModelsName(depFormScrappedGoods.getBaseGoodsModelsName()); - } if (depFormScrappedGoods.isset_scrappedCounts) { this.setScrappedCounts(depFormScrappedGoods.getScrappedCounts()); } @@ -92,6 +73,9 @@ } if (depFormScrappedGoods.isset_depFormLendingId) { this.setDepFormLendingId(depFormScrappedGoods.getDepFormLendingId()); + } + if (depFormScrappedGoods.isset_warehouseId) { + this.setWarehouseId(depFormScrappedGoods.getWarehouseId()); } // 鍘绘帀锛�2022-09-07 // this.setDatabaseName_(dep_form_scrapped_goods.getDatabaseName_()); @@ -136,11 +120,6 @@ public SqlAndParameters<Map<String, Object>> getInsertSql_() { InsertBuilder ib = new InsertBuilder(this.getTableName_()); ib.set(Id, this.getId()); - ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId); - ib.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName); - ib.set(Unit, this.getUnit(), this.isset_unit); - ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); - ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); ib.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts); ib.set(InitCount, this.getInitCount(), this.isset_initCount); ib.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId); @@ -149,6 +128,7 @@ ib.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName); 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(); } @@ -158,11 +138,6 @@ @Override public SqlAndParameters<Map<String, Object>> getUpdateSql_() { UpdateBuilder ub = new UpdateBuilder(this.getTableName_()); - ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId); - ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName); - ub.set(Unit, this.getUnit(), this.isset_unit); - ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); - ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); ub.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts); ub.set(InitCount, this.getInitCount(), this.isset_initCount); ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId); @@ -171,6 +146,7 @@ ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName); 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(); } @@ -181,11 +157,6 @@ @Override public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) { UpdateBuilder ub = new UpdateBuilder(this.getTableName_()); - ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId); - ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName); - ub.set(Unit, this.getUnit(), this.isset_unit); - ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); - ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); ub.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts); ub.set(InitCount, this.getInitCount(), this.isset_initCount); ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId); @@ -194,6 +165,7 @@ ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName); 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); } @@ -203,11 +175,6 @@ @Override public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) { UpdateBuilder ub = new UpdateBuilder(this.getTableName_()); - ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId); - ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName); - ub.set(Unit, this.getUnit(), this.isset_unit); - ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); - ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); ub.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts); ub.set(InitCount, this.getInitCount(), this.isset_initCount); ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId); @@ -216,6 +183,7 @@ ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName); 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); } @@ -263,7 +231,7 @@ */ @Override public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { - return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name, scrapped_counts, init_count, dep_form_scrapped_id, beiz, scrapped_code, scrapped_name, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>("select id, scrapped_counts, init_count, dep_form_scrapped_id, beiz, scrapped_code, scrapped_name, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters); } /** @@ -271,7 +239,7 @@ */ @Override public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { - return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name, scrapped_counts, init_count, dep_form_scrapped_id, beiz, scrapped_code, scrapped_name, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>("select id, scrapped_counts, init_count, dep_form_scrapped_id, beiz, scrapped_code, scrapped_name, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters); } /** @@ -308,34 +276,6 @@ dep_form_scrapped_goods.setId(rs.getLong(columnIndex)); } //鏅�氬睘鎬� - columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.BaseGoodsTemplateId); - if (columnIndex > 0) { - if (rs.getBigDecimal(columnIndex) == null) { - dep_form_scrapped_goods.setBaseGoodsTemplateId(null); - } else { - dep_form_scrapped_goods.setBaseGoodsTemplateId(rs.getLong(columnIndex)); - } - } - columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.GoodsTemplateName); - if (columnIndex > 0) { - dep_form_scrapped_goods.setGoodsTemplateName(rs.getString(columnIndex)); - } - columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.Unit); - if (columnIndex > 0) { - dep_form_scrapped_goods.setUnit(rs.getString(columnIndex)); - } - columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.BaseGoodsModelsId); - if (columnIndex > 0) { - if (rs.getBigDecimal(columnIndex) == null) { - dep_form_scrapped_goods.setBaseGoodsModelsId(null); - } else { - dep_form_scrapped_goods.setBaseGoodsModelsId(rs.getLong(columnIndex)); - } - } - columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.BaseGoodsModelsName); - if (columnIndex > 0) { - dep_form_scrapped_goods.setBaseGoodsModelsName(rs.getString(columnIndex)); - } columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.ScrappedCounts); if (columnIndex > 0) { if (rs.getBigDecimal(columnIndex) == null) { @@ -388,6 +328,14 @@ dep_form_scrapped_goods.setDepFormLendingId(rs.getLong(columnIndex)); } } + columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.WarehouseId); + if (columnIndex > 0) { + if (rs.getBigDecimal(columnIndex) == null) { + dep_form_scrapped_goods.setWarehouseId(null); + } else { + dep_form_scrapped_goods.setWarehouseId(rs.getLong(columnIndex)); + } + } return dep_form_scrapped_goods; } } -- Gitblit v1.9.1