From 01107e8aadfaf1e84a971d8eeb9ab37e1c5569f3 Mon Sep 17 00:00:00 2001
From: cy <1664593601@qq.com>
Date: 星期五, 01 十二月 2023 09:38:56 +0800
Subject: [PATCH] feat: 部门退回/报废公用接口

---
 consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped_mapper.java |  219 ++++++++++++++++++++----------------------------------
 1 files changed, 83 insertions(+), 136 deletions(-)

diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped_mapper.java
index dc42b7b..2747ad5 100644
--- a/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped_mapper.java
+++ b/consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped_mapper.java
@@ -7,8 +7,6 @@
 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;
@@ -16,7 +14,8 @@
 import java.util.Map;
 
 /**
- * 琛ㄥ悕:DEP_FORM_SCRAPPED *
+ * 琛ㄥ悕:DEP_FORM_SCRAPPED
+ *
  * @author genrator
  */
 public class DepFormScrapped_mapper extends DepFormScrapped implements BaseMapper<DepFormScrapped> {
@@ -29,22 +28,18 @@
     public static final String Id = "id";
     // 鏅�氬睘鎬�
     public static final String BusinessFormCode = "business_form_code";
-    public static final String AgencyId = "agency_id";
-    public static final String AgencyName = "agency_name";
+    public static final String ProcureDoc = "procure_doc";
+    public static final String OutWarehouseType = "out_warehouse_type";
+    public static final String OutWarehouseId = "out_warehouse_id";
+    public static final String OutWarehouseName = "out_warehouse_name";
     public static final String OperatorId = "operator_id";
     public static final String OperatorName = "operator_name";
     public static final String DealTime = "deal_time";
     public static final String DepartmentId = "department_id";
     public static final String DepartmentName = "department_name";
-    public static final String ReviewerId = "reviewer_id";
-    public static final String ReviewerName = "reviewer_name";
-    public static final String ReviewDate = "review_date";
-    public static final String ReviewStates = "review_states";
+    public static final String CreateTime = "create_time";
+    public static final String States = "states";
     public static final String Beiz = "beiz";
-    public static final String Beiz2 = "beiz2";
-    public static final String UploadFiles = "upload_files";
-    public static final String WarehouseId = "warehouse_id";
-    public static final String WarehouseName = "warehouse_name";
 
     /**
      * 榛樿鏋勯�犲嚱鏁�
@@ -61,11 +56,17 @@
         if (depFormScrapped.isset_businessFormCode) {
             this.setBusinessFormCode(depFormScrapped.getBusinessFormCode());
         }
-        if (depFormScrapped.isset_agencyId) {
-            this.setAgencyId(depFormScrapped.getAgencyId());
+        if (depFormScrapped.isset_procureDoc) {
+            this.setProcureDoc(depFormScrapped.getProcureDoc());
         }
-        if (depFormScrapped.isset_agencyName) {
-            this.setAgencyName(depFormScrapped.getAgencyName());
+        if (depFormScrapped.isset_outWarehouseType) {
+            this.setOutWarehouseType(depFormScrapped.getOutWarehouseType());
+        }
+        if (depFormScrapped.isset_outWarehouseId) {
+            this.setOutWarehouseId(depFormScrapped.getOutWarehouseId());
+        }
+        if (depFormScrapped.isset_outWarehouseName) {
+            this.setOutWarehouseName(depFormScrapped.getOutWarehouseName());
         }
         if (depFormScrapped.isset_operatorId) {
             this.setOperatorId(depFormScrapped.getOperatorId());
@@ -82,32 +83,14 @@
         if (depFormScrapped.isset_departmentName) {
             this.setDepartmentName(depFormScrapped.getDepartmentName());
         }
-        if (depFormScrapped.isset_reviewerId) {
-            this.setReviewerId(depFormScrapped.getReviewerId());
+        if (depFormScrapped.isset_createTime) {
+            this.setCreateTime(depFormScrapped.getCreateTime());
         }
-        if (depFormScrapped.isset_reviewerName) {
-            this.setReviewerName(depFormScrapped.getReviewerName());
-        }
-        if (depFormScrapped.isset_reviewDate) {
-            this.setReviewDate(depFormScrapped.getReviewDate());
-        }
-        if (depFormScrapped.isset_reviewStates) {
-            this.setReviewStates(depFormScrapped.getReviewStates());
+        if (depFormScrapped.isset_states) {
+            this.setStates(depFormScrapped.getStates());
         }
         if (depFormScrapped.isset_beiz) {
             this.setBeiz(depFormScrapped.getBeiz());
-        }
-        if (depFormScrapped.isset_beiz2) {
-            this.setBeiz2(depFormScrapped.getBeiz2());
-        }
-        if (depFormScrapped.isset_uploadFiles) {
-            this.setUploadFiles(depFormScrapped.getUploadFiles());
-        }
-        if (depFormScrapped.isset_warehouseId) {
-            this.setWarehouseId(depFormScrapped.getWarehouseId());
-        }
-        if (depFormScrapped.isset_warehouseName) {
-            this.setWarehouseName(depFormScrapped.getWarehouseName());
         }
         // 鍘绘帀锛�2022-09-07
         // this.setDatabaseName_(dep_form_scrapped.getDatabaseName_());
@@ -153,22 +136,18 @@
         InsertBuilder ib = new InsertBuilder(this.getTableName_());
         ib.set(Id, this.getId());
         ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
-        ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
-        ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+        ib.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+        ib.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType);
+        ib.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
+        ib.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
         ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
         ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
         ib.set(DealTime, this.getDealTime(), this.isset_dealTime);
         ib.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
         ib.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
-        ib.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
-        ib.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
-        ib.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
-        ib.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
+        ib.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+        ib.set(States, this.getStates(), this.isset_states);
         ib.set(Beiz, this.getBeiz(), this.isset_beiz);
-        ib.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
-        ib.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
-        ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
-        ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
         return ib.genMapSql();
     }
 
@@ -179,22 +158,18 @@
     public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
         UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
         ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
-        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
-        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+        ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+        ub.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType);
+        ub.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
+        ub.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
         ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
         ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
         ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
         ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
         ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
-        ub.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
-        ub.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
-        ub.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
-        ub.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
+        ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+        ub.set(States, this.getStates(), this.isset_states);
         ub.set(Beiz, this.getBeiz(), this.isset_beiz);
-        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
-        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
-        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
-        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
         ub.where(this.getPkName_(), this.getPkValue_());
         return ub.genMapSql();
     }
@@ -206,22 +181,18 @@
     public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
         UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
         ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
-        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
-        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+        ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+        ub.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType);
+        ub.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
+        ub.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
         ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
         ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
         ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
         ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
         ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
-        ub.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
-        ub.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
-        ub.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
-        ub.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
+        ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+        ub.set(States, this.getStates(), this.isset_states);
         ub.set(Beiz, this.getBeiz(), this.isset_beiz);
-        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
-        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
-        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
-        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
         return ub.genMapSql(where, parameters);
     }
 
@@ -232,22 +203,18 @@
     public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
         UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
         ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
-        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
-        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
+        ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
+        ub.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType);
+        ub.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
+        ub.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
         ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
         ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
         ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
         ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
         ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
-        ub.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
-        ub.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
-        ub.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
-        ub.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
+        ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
+        ub.set(States, this.getStates(), this.isset_states);
         ub.set(Beiz, this.getBeiz(), this.isset_beiz);
-        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
-        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
-        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
-        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
         return ub.genArraySql(where, parameters);
     }
 
@@ -295,7 +262,7 @@
      */
     @Override
     public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
-        return new SqlAndParameters<>("select id, business_form_code, agency_id, agency_name, operator_id, operator_name, deal_time, department_id, department_name, reviewer_id, reviewer_name, review_date, review_states, beiz, beiz2, upload_files, warehouse_id, warehouse_name from " + this.getTableName_() + " " + where, parameters);
+        return new SqlAndParameters<>("select id, business_form_code, procure_doc, out_warehouse_type, out_warehouse_id, out_warehouse_name, operator_id, operator_name, deal_time, department_id, department_name, create_time, states, beiz from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -303,7 +270,7 @@
      */
     @Override
     public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
-        return new SqlAndParameters<>("select id, business_form_code, agency_id, agency_name, operator_id, operator_name, deal_time, department_id, department_name, reviewer_id, reviewer_name, review_date, review_states, beiz, beiz2, upload_files, warehouse_id, warehouse_name from " + this.getTableName_() + " " + where, parameters);
+        return new SqlAndParameters<>("select id, business_form_code, procure_doc, out_warehouse_type, out_warehouse_id, out_warehouse_name, operator_id, operator_name, deal_time, department_id, department_name, create_time, states, beiz from " + this.getTableName_() + " " + where, parameters);
     }
 
     /**
@@ -332,113 +299,93 @@
     @Override
     public DepFormScrapped mapRow(ResultSet rs, int i) throws SQLException {
         ResultSetUtils resultSetUtils = new ResultSetUtils();
-        DepFormScrapped dep_form_scrapped = new DepFormScrapped();
+DepFormScrapped dep_form_scrapped = new DepFormScrapped();
         Integer columnIndex;
         //涓婚敭
         columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.Id);
         if (columnIndex > 0) {
-            dep_form_scrapped.setId(rs.getLong(columnIndex));
+dep_form_scrapped.setId(rs.getLong(columnIndex));
         }
         //鏅�氬睘鎬�
         columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.BusinessFormCode);
         if (columnIndex > 0) {
-            dep_form_scrapped.setBusinessFormCode(rs.getString(columnIndex));
+dep_form_scrapped.setBusinessFormCode(rs.getString(columnIndex));
         }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.AgencyId);
+        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ProcureDoc);
+        if (columnIndex > 0) {
+dep_form_scrapped.setProcureDoc(rs.getString(columnIndex));
+        }
+        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OutWarehouseType);
         if (columnIndex > 0) {
             if (rs.getBigDecimal(columnIndex) == null) {
-                dep_form_scrapped.setAgencyId(null);
+dep_form_scrapped.setOutWarehouseType(null);
             } else {
-                dep_form_scrapped.setAgencyId(rs.getLong(columnIndex));
+dep_form_scrapped.setOutWarehouseType(rs.getInt(columnIndex));
             }
         }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.AgencyName);
+        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OutWarehouseId);
         if (columnIndex > 0) {
-            dep_form_scrapped.setAgencyName(rs.getString(columnIndex));
+            if (rs.getBigDecimal(columnIndex) == null) {
+dep_form_scrapped.setOutWarehouseId(null);
+            } else {
+dep_form_scrapped.setOutWarehouseId(rs.getLong(columnIndex));
+            }
+        }
+        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OutWarehouseName);
+        if (columnIndex > 0) {
+dep_form_scrapped.setOutWarehouseName(rs.getString(columnIndex));
         }
         columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OperatorId);
         if (columnIndex > 0) {
             if (rs.getBigDecimal(columnIndex) == null) {
-                dep_form_scrapped.setOperatorId(null);
+dep_form_scrapped.setOperatorId(null);
             } else {
-                dep_form_scrapped.setOperatorId(rs.getLong(columnIndex));
+dep_form_scrapped.setOperatorId(rs.getLong(columnIndex));
             }
         }
         columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OperatorName);
         if (columnIndex > 0) {
-            dep_form_scrapped.setOperatorName(rs.getString(columnIndex));
+dep_form_scrapped.setOperatorName(rs.getString(columnIndex));
         }
         columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.DealTime);
         if (columnIndex > 0) {
             if (rs.getBigDecimal(columnIndex) == null) {
-                dep_form_scrapped.setDealTime(null);
+dep_form_scrapped.setDealTime(null);
             } else {
-                dep_form_scrapped.setDealTime(rs.getLong(columnIndex));
+dep_form_scrapped.setDealTime(rs.getLong(columnIndex));
             }
         }
         columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.DepartmentId);
         if (columnIndex > 0) {
-            dep_form_scrapped.setDepartmentId(rs.getString(columnIndex));
+dep_form_scrapped.setDepartmentId(rs.getString(columnIndex));
         }
         columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.DepartmentName);
         if (columnIndex > 0) {
             if (rs.getBigDecimal(columnIndex) == null) {
-                dep_form_scrapped.setDepartmentName(null);
+dep_form_scrapped.setDepartmentName(null);
             } else {
-                dep_form_scrapped.setDepartmentName(rs.getLong(columnIndex));
+dep_form_scrapped.setDepartmentName(rs.getLong(columnIndex));
             }
         }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ReviewerId);
+        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.CreateTime);
         if (columnIndex > 0) {
             if (rs.getBigDecimal(columnIndex) == null) {
-                dep_form_scrapped.setReviewerId(null);
+dep_form_scrapped.setCreateTime(null);
             } else {
-                dep_form_scrapped.setReviewerId(rs.getLong(columnIndex));
+dep_form_scrapped.setCreateTime(rs.getLong(columnIndex));
             }
         }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ReviewerName);
-        if (columnIndex > 0) {
-            dep_form_scrapped.setReviewerName(rs.getString(columnIndex));
-        }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ReviewDate);
+        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.States);
         if (columnIndex > 0) {
             if (rs.getBigDecimal(columnIndex) == null) {
-                dep_form_scrapped.setReviewDate(null);
+dep_form_scrapped.setStates(null);
             } else {
-                dep_form_scrapped.setReviewDate(rs.getLong(columnIndex));
-            }
-        }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ReviewStates);
-        if (columnIndex > 0) {
-            if (rs.getBigDecimal(columnIndex) == null) {
-                dep_form_scrapped.setReviewStates(null);
-            } else {
-                dep_form_scrapped.setReviewStates(rs.getInt(columnIndex));
+dep_form_scrapped.setStates(rs.getInt(columnIndex));
             }
         }
         columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.Beiz);
         if (columnIndex > 0) {
-            dep_form_scrapped.setBeiz(rs.getString(columnIndex));
-        }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.Beiz2);
-        if (columnIndex > 0) {
-            dep_form_scrapped.setBeiz2(rs.getString(columnIndex));
-        }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.UploadFiles);
-        if (columnIndex > 0) {
-            dep_form_scrapped.setUploadFiles(rs.getString(columnIndex));
-        }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.WarehouseId);
-        if (columnIndex > 0) {
-            if (rs.getBigDecimal(columnIndex) == null) {
-                dep_form_scrapped.setWarehouseId(null);
-            } else {
-                dep_form_scrapped.setWarehouseId(rs.getLong(columnIndex));
-            }
-        }
-        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.WarehouseName);
-        if (columnIndex > 0) {
-            dep_form_scrapped.setWarehouseName(rs.getString(columnIndex));
+dep_form_scrapped.setBeiz(rs.getString(columnIndex));
         }
         return dep_form_scrapped;
     }

--
Gitblit v1.9.1