From 85ad0a996a588d87f4ff589ae9a83b714d8b2c7f Mon Sep 17 00:00:00 2001
From: luqingyang <lqy5492@163.com>
Date: 星期四, 02 十一月 2023 09:56:21 +0800
Subject: [PATCH] fix:代码调整

---
 consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel_mapper.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 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 1dcce8c..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
@@ -32,6 +32,7 @@
     public static final String BusinessType = "business_type";
     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 Price = "price";
     public static final String Counts = "counts";
     public static final String WorehouseCount = "worehouse_count";
@@ -60,6 +61,9 @@
         }
         if (lWhProcureModel.isset_baseGoodsModelsId) {
             this.setBaseGoodsModelsId(lWhProcureModel.getBaseGoodsModelsId());
+        }
+        if (lWhProcureModel.isset_baseGoodsModelsName) {
+            this.setBaseGoodsModelsName(lWhProcureModel.getBaseGoodsModelsName());
         }
         if (lWhProcureModel.isset_price) {
             this.setPrice(lWhProcureModel.getPrice());
@@ -120,6 +124,7 @@
         ib.set(BusinessType, this.getBusinessType(), this.isset_businessType);
         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(Price, this.getPrice(), this.isset_price);
         ib.set(Counts, this.getCounts(), this.isset_counts);
         ib.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
@@ -137,6 +142,7 @@
         ub.set(BusinessType, this.getBusinessType(), this.isset_businessType);
         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(Price, this.getPrice(), this.isset_price);
         ub.set(Counts, this.getCounts(), this.isset_counts);
         ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
@@ -155,6 +161,7 @@
         ub.set(BusinessType, this.getBusinessType(), this.isset_businessType);
         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(Price, this.getPrice(), this.isset_price);
         ub.set(Counts, this.getCounts(), this.isset_counts);
         ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
@@ -172,6 +179,7 @@
         ub.set(BusinessType, this.getBusinessType(), this.isset_businessType);
         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(Price, this.getPrice(), this.isset_price);
         ub.set(Counts, this.getCounts(), this.isset_counts);
         ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
@@ -223,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, 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);
     }
 
     /**
@@ -231,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, 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);
     }
 
     /**
@@ -300,6 +308,10 @@
                 l_wh_procure_model.setBaseGoodsModelsId(rs.getLong(columnIndex));
             }
         }
+        columnIndex = resultSetUtils.findColumn(rs, LWhProcureModel_mapper.BaseGoodsModelsName);
+        if (columnIndex > 0) {
+            l_wh_procure_model.setBaseGoodsModelsName(rs.getString(columnIndex));
+        }
         columnIndex = resultSetUtils.findColumn(rs, LWhProcureModel_mapper.Price);
         if (columnIndex > 0) {
             if (rs.getBigDecimal(columnIndex) == null) {

--
Gitblit v1.9.1