From 332c012e7336f2996c4fe5c8c110d00713c1bde2 Mon Sep 17 00:00:00 2001
From: haoyahui <2032914783@qq.com>
Date: 星期六, 11 十一月 2023 18:51:33 +0800
Subject: [PATCH] 采购单,采购明细,库存管理,出入库,调拨管理,库存盘点

---
 consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel_mapper.java |   20 +++++---------------
 1 files changed, 5 insertions(+), 15 deletions(-)

diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel_mapper.java
index f66da47..df53323 100644
--- a/consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel_mapper.java
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel_mapper.java
@@ -7,6 +7,8 @@
 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;
@@ -31,7 +33,6 @@
     public static final String BusinessId = "business_id";
     public static final String BaseGoodsModelsId = "base_goods_models_id";
     public static final String BaseGoodsModelsName = "base_goods_models_name";
-    public static final String Unit = "unit";
     public static final String Price = "price";
     public static final String Counts = "counts";
     public static final String WorehouseCount = "worehouse_count";
@@ -63,9 +64,6 @@
         }
         if (lWhProcureModel.isset_baseGoodsModelsName) {
             this.setBaseGoodsModelsName(lWhProcureModel.getBaseGoodsModelsName());
-        }
-        if (lWhProcureModel.isset_unit) {
-            this.setUnit(lWhProcureModel.getUnit());
         }
         if (lWhProcureModel.isset_price) {
             this.setPrice(lWhProcureModel.getPrice());
@@ -127,7 +125,6 @@
         ib.set(BusinessId, this.getBusinessId(), this.isset_businessId);
         ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
         ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
-        ib.set(Unit, this.getUnit(), this.isset_unit);
         ib.set(Price, this.getPrice(), this.isset_price);
         ib.set(Counts, this.getCounts(), this.isset_counts);
         ib.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
@@ -146,7 +143,6 @@
         ub.set(BusinessId, this.getBusinessId(), this.isset_businessId);
         ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
         ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
-        ub.set(Unit, this.getUnit(), this.isset_unit);
         ub.set(Price, this.getPrice(), this.isset_price);
         ub.set(Counts, this.getCounts(), this.isset_counts);
         ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
@@ -166,7 +162,6 @@
         ub.set(BusinessId, this.getBusinessId(), this.isset_businessId);
         ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
         ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
-        ub.set(Unit, this.getUnit(), this.isset_unit);
         ub.set(Price, this.getPrice(), this.isset_price);
         ub.set(Counts, this.getCounts(), this.isset_counts);
         ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
@@ -185,7 +180,6 @@
         ub.set(BusinessId, this.getBusinessId(), this.isset_businessId);
         ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
         ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
-        ub.set(Unit, this.getUnit(), this.isset_unit);
         ub.set(Price, this.getPrice(), this.isset_price);
         ub.set(Counts, this.getCounts(), this.isset_counts);
         ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
@@ -237,7 +231,7 @@
      */
     @Override
     public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
-        return new SqlAndParameters<>("select id, from_procure_goods_id, business_type, business_id, base_goods_models_id, base_goods_models_name, unit, price, counts, worehouse_count, supplier from " + this.getTableName_() + " " + where, parameters);
+        return new SqlAndParameters<>("select id, from_procure_goods_id, business_type, business_id, base_goods_models_id, base_goods_models_name, price, counts, worehouse_count, supplier from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -245,7 +239,7 @@
      */
     @Override
     public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
-        return new SqlAndParameters<>("select id, from_procure_goods_id, business_type, business_id, base_goods_models_id, base_goods_models_name, unit, price, counts, worehouse_count, supplier from " + this.getTableName_() + " " + where, parameters);
+        return new SqlAndParameters<>("select id, from_procure_goods_id, business_type, business_id, base_goods_models_id, base_goods_models_name, price, counts, worehouse_count, supplier from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -318,16 +312,12 @@
         if (columnIndex > 0) {
             l_wh_procure_model.setBaseGoodsModelsName(rs.getString(columnIndex));
         }
-        columnIndex = resultSetUtils.findColumn(rs, LWhProcureModel_mapper.Unit);
-        if (columnIndex > 0) {
-            l_wh_procure_model.setUnit(rs.getString(columnIndex));
-        }
         columnIndex = resultSetUtils.findColumn(rs, LWhProcureModel_mapper.Price);
         if (columnIndex > 0) {
             if (rs.getBigDecimal(columnIndex) == null) {
                 l_wh_procure_model.setPrice(null);
             } else {
-                l_wh_procure_model.setPrice(rs.getDouble(columnIndex));
+                l_wh_procure_model.setPrice(rs.getLong(columnIndex));
             }
         }
         columnIndex = resultSetUtils.findColumn(rs, LWhProcureModel_mapper.Counts);

--
Gitblit v1.9.1