From a1b85ef72062ca80db35546e4216dd564f3e0f57 Mon Sep 17 00:00:00 2001
From: WangHan <wwh_work@126,com>
Date: 星期四, 03 四月 2025 15:58:19 +0800
Subject: [PATCH] 问题与漏洞修改

---
 consum-model-pojo/src/main/java/com/consum/model/po/WhGoods_mapper.java |   36 ++----------------------------------
 1 files changed, 2 insertions(+), 34 deletions(-)

diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/WhGoods_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/WhGoods_mapper.java
index 4807789..4db62db 100644
--- a/consum-model-pojo/src/main/java/com/consum/model/po/WhGoods_mapper.java
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/WhGoods_mapper.java
@@ -33,8 +33,6 @@
     public static final String BaseGoodsModelsId = "base_goods_models_id";
     public static final String BaseGoodsModelsName = "base_goods_models_name";
     public static final String WhCount = "wh_count";
-    public static final String TransferCount = "transfer_count";
-    public static final String AllCount = "all_count";
     public static final String FirstInputCode = "first_input_code";
     public static final String FirstInputType = "first_input_type";
     public static final String FirstInputHisId = "first_input_his_id";
@@ -73,12 +71,6 @@
         }
         if (whGoods.isset_whCount) {
             this.setWhCount(whGoods.getWhCount());
-        }
-        if (whGoods.isset_transferCount) {
-            this.setTransferCount(whGoods.getTransferCount());
-        }
-        if (whGoods.isset_allCount) {
-            this.setAllCount(whGoods.getAllCount());
         }
         if (whGoods.isset_firstInputCode) {
             this.setFirstInputCode(whGoods.getFirstInputCode());
@@ -161,8 +153,6 @@
         ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
         ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
         ib.set(WhCount, this.getWhCount(), this.isset_whCount);
-        ib.set(TransferCount, this.getTransferCount(), this.isset_transferCount);
-        ib.set(AllCount, this.getAllCount(), this.isset_allCount);
         ib.set(FirstInputCode, this.getFirstInputCode(), this.isset_firstInputCode);
         ib.set(FirstInputType, this.getFirstInputType(), this.isset_firstInputType);
         ib.set(FirstInputHisId, this.getFirstInputHisId(), this.isset_firstInputHisId);
@@ -188,8 +178,6 @@
         ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
         ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
         ub.set(WhCount, this.getWhCount(), this.isset_whCount);
-        ub.set(TransferCount, this.getTransferCount(), this.isset_transferCount);
-        ub.set(AllCount, this.getAllCount(), this.isset_allCount);
         ub.set(FirstInputCode, this.getFirstInputCode(), this.isset_firstInputCode);
         ub.set(FirstInputType, this.getFirstInputType(), this.isset_firstInputType);
         ub.set(FirstInputHisId, this.getFirstInputHisId(), this.isset_firstInputHisId);
@@ -216,8 +204,6 @@
         ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
         ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
         ub.set(WhCount, this.getWhCount(), this.isset_whCount);
-        ub.set(TransferCount, this.getTransferCount(), this.isset_transferCount);
-        ub.set(AllCount, this.getAllCount(), this.isset_allCount);
         ub.set(FirstInputCode, this.getFirstInputCode(), this.isset_firstInputCode);
         ub.set(FirstInputType, this.getFirstInputType(), this.isset_firstInputType);
         ub.set(FirstInputHisId, this.getFirstInputHisId(), this.isset_firstInputHisId);
@@ -243,8 +229,6 @@
         ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
         ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
         ub.set(WhCount, this.getWhCount(), this.isset_whCount);
-        ub.set(TransferCount, this.getTransferCount(), this.isset_transferCount);
-        ub.set(AllCount, this.getAllCount(), this.isset_allCount);
         ub.set(FirstInputCode, this.getFirstInputCode(), this.isset_firstInputCode);
         ub.set(FirstInputType, this.getFirstInputType(), this.isset_firstInputType);
         ub.set(FirstInputHisId, this.getFirstInputHisId(), this.isset_firstInputHisId);
@@ -303,7 +287,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, base_goods_models_id, base_goods_models_name, wh_count, transfer_count, all_count, first_input_code, first_input_type, first_input_his_id, warehouse_id, warehouse_name, supplier, unit, price, procure_date, back_date, states from " + this.getTableName_() + " " + where, parameters);
+        return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, base_goods_models_id, base_goods_models_name, wh_count, first_input_code, first_input_type, first_input_his_id, warehouse_id, warehouse_name, supplier, unit, price, procure_date, back_date, states from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -311,7 +295,7 @@
      */
     @Override
     public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
-        return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, base_goods_models_id, base_goods_models_name, wh_count, transfer_count, all_count, first_input_code, first_input_type, first_input_his_id, warehouse_id, warehouse_name, supplier, unit, price, procure_date, back_date, states from " + this.getTableName_() + " " + where, parameters);
+        return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, base_goods_models_id, base_goods_models_name, wh_count, first_input_code, first_input_type, first_input_his_id, warehouse_id, warehouse_name, supplier, unit, price, procure_date, back_date, states from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -378,22 +362,6 @@
                 wh_goods.setWhCount(null);
             } else {
                 wh_goods.setWhCount(rs.getInt(columnIndex));
-            }
-        }
-        columnIndex = resultSetUtils.findColumn(rs, WhGoods_mapper.TransferCount);
-        if (columnIndex > 0) {
-            if (rs.getBigDecimal(columnIndex) == null) {
-                wh_goods.setTransferCount(null);
-            } else {
-                wh_goods.setTransferCount(rs.getInt(columnIndex));
-            }
-        }
-        columnIndex = resultSetUtils.findColumn(rs, WhGoods_mapper.AllCount);
-        if (columnIndex > 0) {
-            if (rs.getBigDecimal(columnIndex) == null) {
-                wh_goods.setAllCount(null);
-            } else {
-                wh_goods.setAllCount(rs.getInt(columnIndex));
             }
         }
         columnIndex = resultSetUtils.findColumn(rs, WhGoods_mapper.FirstInputCode);

--
Gitblit v1.9.1