From 5d7ab4ea0ef70f7930cc7b3a4209ded1b1c83115 Mon Sep 17 00:00:00 2001
From: cy <1664593601@qq.com>
Date: 星期四, 26 十月 2023 20:14:21 +0800
Subject: [PATCH] feat: 根据调拨单生成出库单,根据出库单id进行出库

---
 consum-model-pojo/src/main/java/com/consum/model/po/LWhFormOutput_mapper.java |   32 ++++++++++++++++++++++++++++++--
 1 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/LWhFormOutput_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/LWhFormOutput_mapper.java
index ac3848c..6b7ab54 100644
--- a/consum-model-pojo/src/main/java/com/consum/model/po/LWhFormOutput_mapper.java
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/LWhFormOutput_mapper.java
@@ -34,6 +34,8 @@
     public static final String OutputName = "output_name";
     public static final String WarehouseId = "warehouse_id";
     public static final String WarehouseName = "warehouse_name";
+    public static final String InWarehouseId = "in_warehouse_id";
+    public static final String InWarehouseName = "in_warehouse_name";
     public static final String AgencyId = "agency_id";
     public static final String AgencyName = "agency_name";
     public static final String OperatorId = "operator_id";
@@ -77,6 +79,12 @@
         }
         if (lWhFormOutput.isset_warehouseName) {
             this.setWarehouseName(lWhFormOutput.getWarehouseName());
+        }
+        if (lWhFormOutput.isset_inWarehouseId) {
+            this.setInWarehouseId(lWhFormOutput.getInWarehouseId());
+        }
+        if (lWhFormOutput.isset_inWarehouseName) {
+            this.setInWarehouseName(lWhFormOutput.getInWarehouseName());
         }
         if (lWhFormOutput.isset_agencyId) {
             this.setAgencyId(lWhFormOutput.getAgencyId());
@@ -150,6 +158,8 @@
         ib.set(OutputName, this.getOutputName(), this.isset_outputName);
         ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
         ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+        ib.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId);
+        ib.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName);
         ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
         ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
         ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
@@ -174,6 +184,8 @@
         ub.set(OutputName, this.getOutputName(), this.isset_outputName);
         ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
         ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+        ub.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId);
+        ub.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName);
         ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
         ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
         ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
@@ -199,6 +211,8 @@
         ub.set(OutputName, this.getOutputName(), this.isset_outputName);
         ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
         ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+        ub.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId);
+        ub.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName);
         ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
         ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
         ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
@@ -223,6 +237,8 @@
         ub.set(OutputName, this.getOutputName(), this.isset_outputName);
         ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
         ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
+        ub.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId);
+        ub.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName);
         ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
         ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
         ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
@@ -277,7 +293,7 @@
      */
     @Override
     public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
-        return new SqlAndParameters<>("select id, warehouse_flow_id, business_form_code, in_warehouse_flow_id, trans_business_id, output_code, output_name, warehouse_id, warehouse_name, agency_id, agency_name, operator_id, operator_name, deal_time, states, beiz from " + this.getTableName_() + " " + where, parameters);
+        return new SqlAndParameters<>("select id, warehouse_flow_id, business_form_code, in_warehouse_flow_id, trans_business_id, output_code, output_name, warehouse_id, warehouse_name, in_warehouse_id, in_warehouse_name, agency_id, agency_name, operator_id, operator_name, deal_time, states, beiz from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -285,7 +301,7 @@
      */
     @Override
     public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
-        return new SqlAndParameters<>("select id, warehouse_flow_id, business_form_code, in_warehouse_flow_id, trans_business_id, output_code, output_name, warehouse_id, warehouse_name, agency_id, agency_name, operator_id, operator_name, deal_time, states, beiz from " + this.getTableName_() + " " + where, parameters);
+        return new SqlAndParameters<>("select id, warehouse_flow_id, business_form_code, in_warehouse_flow_id, trans_business_id, output_code, output_name, warehouse_id, warehouse_name, in_warehouse_id, in_warehouse_name, agency_id, agency_name, operator_id, operator_name, deal_time, states, beiz from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -370,6 +386,18 @@
         if (columnIndex > 0) {
             l_wh_form_output.setWarehouseName(rs.getString(columnIndex));
         }
+        columnIndex = resultSetUtils.findColumn(rs, LWhFormOutput_mapper.InWarehouseId);
+        if (columnIndex > 0) {
+            if (rs.getBigDecimal(columnIndex) == null) {
+                l_wh_form_output.setInWarehouseId(null);
+            } else {
+                l_wh_form_output.setInWarehouseId(rs.getLong(columnIndex));
+            }
+        }
+        columnIndex = resultSetUtils.findColumn(rs, LWhFormOutput_mapper.InWarehouseName);
+        if (columnIndex > 0) {
+            l_wh_form_output.setInWarehouseName(rs.getString(columnIndex));
+        }
         columnIndex = resultSetUtils.findColumn(rs, LWhFormOutput_mapper.AgencyId);
         if (columnIndex > 0) {
             if (rs.getBigDecimal(columnIndex) == null) {

--
Gitblit v1.9.1