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/DepFormScrappedModel_mapper.java |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedModel_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedModel_mapper.java
index 8cb5d40..c5cc65f 100644
--- a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedModel_mapper.java
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedModel_mapper.java
@@ -40,6 +40,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";
 
     /**
      * 榛樿鏋勯�犲嚱鏁�
@@ -88,6 +89,9 @@
         }
         if (depFormScrappedModel.isset_depFormLendingId) {
             this.setDepFormLendingId(depFormScrappedModel.getDepFormLendingId());
+        }
+        if (depFormScrappedModel.isset_warehouseId) {
+            this.setWarehouseId(depFormScrappedModel.getWarehouseId());
         }
         // 鍘绘帀锛�2022-09-07
         // this.setDatabaseName_(dep_form_scrapped_model.getDatabaseName_());
@@ -144,6 +148,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();
     }
 
@@ -165,6 +170,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();
     }
@@ -187,6 +193,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);
     }
 
@@ -208,6 +215,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);
     }
 
@@ -255,7 +263,7 @@
      */
     @Override
     public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
-        return new SqlAndParameters<>("select id, dep_form_scrapped_goods_id, scrapped_code, scrapped_name, beiz, using_goods_his_id, dep_form_scrapped_id, wh_goods_id, scrapped_counts, init_count, 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_scrapped_goods_id, scrapped_code, scrapped_name, beiz, using_goods_his_id, dep_form_scrapped_id, wh_goods_id, scrapped_counts, init_count, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -263,7 +271,7 @@
      */
     @Override
     public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
-        return new SqlAndParameters<>("select id, dep_form_scrapped_goods_id, scrapped_code, scrapped_name, beiz, using_goods_his_id, dep_form_scrapped_id, wh_goods_id, scrapped_counts, init_count, 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_scrapped_goods_id, scrapped_code, scrapped_name, beiz, using_goods_his_id, dep_form_scrapped_id, wh_goods_id, scrapped_counts, init_count, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -384,6 +392,14 @@
                 dep_form_scrapped_model.setDepFormLendingId(rs.getLong(columnIndex));
             }
         }
+        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.WarehouseId);
+        if (columnIndex > 0) {
+            if (rs.getBigDecimal(columnIndex) == null) {
+                dep_form_scrapped_model.setWarehouseId(null);
+            } else {
+                dep_form_scrapped_model.setWarehouseId(rs.getLong(columnIndex));
+            }
+        }
         return dep_form_scrapped_model;
     }
 }

--
Gitblit v1.9.1