From ae379d7dbeb52563d576f57b77a4a6dd1fe710ca Mon Sep 17 00:00:00 2001 From: cy <1664593601@qq.com> Date: 星期三, 01 十一月 2023 11:11:11 +0800 Subject: [PATCH] feat: 调整实体类 --- consum-model-pojo/src/main/java/com/consum/model/po/LGoodsWhRecord_mapper.java | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/LGoodsWhRecord_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/LGoodsWhRecord_mapper.java index 8ce8f90..82a5613 100644 --- a/consum-model-pojo/src/main/java/com/consum/model/po/LGoodsWhRecord_mapper.java +++ b/consum-model-pojo/src/main/java/com/consum/model/po/LGoodsWhRecord_mapper.java @@ -33,6 +33,7 @@ public static final String WarehouseType = "warehouse_type"; public static final String WarehouseId = "warehouse_id"; public static final String DealTime = "deal_time"; + public static final String LastRecord = "last_record"; /** * 榛樿鏋勯�犲嚱鏁� @@ -60,6 +61,9 @@ } if (lGoodsWhRecord.isset_dealTime) { this.setDealTime(lGoodsWhRecord.getDealTime()); + } + if (lGoodsWhRecord.isset_lastRecord) { + this.setLastRecord(lGoodsWhRecord.getLastRecord()); } // 鍘绘帀锛�2022-09-07 // this.setDatabaseName_(l_goods_wh_record.getDatabaseName_()); @@ -109,6 +113,7 @@ ib.set(WarehouseType, this.getWarehouseType(), this.isset_warehouseType); ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); ib.set(DealTime, this.getDealTime(), this.isset_dealTime); + ib.set(LastRecord, this.getLastRecord(), this.isset_lastRecord); return ib.genMapSql(); } @@ -123,6 +128,7 @@ ub.set(WarehouseType, this.getWarehouseType(), this.isset_warehouseType); ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); ub.set(DealTime, this.getDealTime(), this.isset_dealTime); + ub.set(LastRecord, this.getLastRecord(), this.isset_lastRecord); ub.where(this.getPkName_(), this.getPkValue_()); return ub.genMapSql(); } @@ -138,6 +144,7 @@ ub.set(WarehouseType, this.getWarehouseType(), this.isset_warehouseType); ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); ub.set(DealTime, this.getDealTime(), this.isset_dealTime); + ub.set(LastRecord, this.getLastRecord(), this.isset_lastRecord); return ub.genMapSql(where, parameters); } @@ -152,6 +159,7 @@ ub.set(WarehouseType, this.getWarehouseType(), this.isset_warehouseType); ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); ub.set(DealTime, this.getDealTime(), this.isset_dealTime); + ub.set(LastRecord, this.getLastRecord(), this.isset_lastRecord); return ub.genArraySql(where, parameters); } @@ -199,7 +207,7 @@ */ @Override public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { - return new SqlAndParameters<>("select id, warehouse_flow_id, wh_goods_id, warehouse_type, warehouse_id, deal_time from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>("select id, warehouse_flow_id, wh_goods_id, warehouse_type, warehouse_id, deal_time, last_record from " + this.getTableName_() + " " + where, parameters); } /** @@ -207,7 +215,7 @@ */ @Override public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { - return new SqlAndParameters<>("select id, warehouse_flow_id, wh_goods_id, warehouse_type, warehouse_id, deal_time from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>("select id, warehouse_flow_id, wh_goods_id, warehouse_type, warehouse_id, deal_time, last_record from " + this.getTableName_() + " " + where, parameters); } /** @@ -284,6 +292,14 @@ l_goods_wh_record.setDealTime(rs.getLong(columnIndex)); } } + columnIndex = resultSetUtils.findColumn(rs, LGoodsWhRecord_mapper.LastRecord); + if (columnIndex > 0) { + if (rs.getBigDecimal(columnIndex) == null) { + l_goods_wh_record.setLastRecord(null); + } else { + l_goods_wh_record.setLastRecord(rs.getInt(columnIndex)); + } + } return l_goods_wh_record; } } -- Gitblit v1.9.1