From f5623e6c538ebff2dfe38ff04bdb996307e7aa84 Mon Sep 17 00:00:00 2001 From: luqingyang <lqy5492@163.com> Date: 星期二, 31 十月 2023 17:03:35 +0800 Subject: [PATCH] 库存盘点 相关代码 --- consum-model-pojo/src/main/java/com/consum/model/po/LWhFormTransfer_mapper.java | 38 ++++++++++++++++++++++++++++++++++++-- 1 files changed, 36 insertions(+), 2 deletions(-) diff --git a/consum-model-pojo/src/main/java/com/consum/model/po/LWhFormTransfer_mapper.java b/consum-model-pojo/src/main/java/com/consum/model/po/LWhFormTransfer_mapper.java index 90ac848..026243b 100644 --- a/consum-model-pojo/src/main/java/com/consum/model/po/LWhFormTransfer_mapper.java +++ b/consum-model-pojo/src/main/java/com/consum/model/po/LWhFormTransfer_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; @@ -30,8 +32,10 @@ public static final String OutWarehouseFormId = "out_warehouse_form_id"; public static final String BusinessType = "business_type"; public static final String BusinessFormCode = "business_form_code"; + public static final String InWarehouseType = "in_warehouse_type"; public static final String InWarehouseId = "in_warehouse_id"; public static final String InWarehouseName = "in_warehouse_name"; + 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 InAgencyId = "in_agency_id"; @@ -77,11 +81,17 @@ if (lWhFormTransfer.isset_businessFormCode) { this.setBusinessFormCode(lWhFormTransfer.getBusinessFormCode()); } + if (lWhFormTransfer.isset_inWarehouseType) { + this.setInWarehouseType(lWhFormTransfer.getInWarehouseType()); + } if (lWhFormTransfer.isset_inWarehouseId) { this.setInWarehouseId(lWhFormTransfer.getInWarehouseId()); } if (lWhFormTransfer.isset_inWarehouseName) { this.setInWarehouseName(lWhFormTransfer.getInWarehouseName()); + } + if (lWhFormTransfer.isset_outWarehouseType) { + this.setOutWarehouseType(lWhFormTransfer.getOutWarehouseType()); } if (lWhFormTransfer.isset_outWarehouseId) { this.setOutWarehouseId(lWhFormTransfer.getOutWarehouseId()); @@ -190,8 +200,10 @@ ib.set(OutWarehouseFormId, this.getOutWarehouseFormId(), this.isset_outWarehouseFormId); ib.set(BusinessType, this.getBusinessType(), this.isset_businessType); ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode); + ib.set(InWarehouseType, this.getInWarehouseType(), this.isset_inWarehouseType); ib.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId); ib.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName); + 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(InAgencyId, this.getInAgencyId(), this.isset_inAgencyId); @@ -225,8 +237,10 @@ ub.set(OutWarehouseFormId, this.getOutWarehouseFormId(), this.isset_outWarehouseFormId); ub.set(BusinessType, this.getBusinessType(), this.isset_businessType); ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode); + ub.set(InWarehouseType, this.getInWarehouseType(), this.isset_inWarehouseType); ub.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId); ub.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName); + 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(InAgencyId, this.getInAgencyId(), this.isset_inAgencyId); @@ -261,8 +275,10 @@ ub.set(OutWarehouseFormId, this.getOutWarehouseFormId(), this.isset_outWarehouseFormId); ub.set(BusinessType, this.getBusinessType(), this.isset_businessType); ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode); + ub.set(InWarehouseType, this.getInWarehouseType(), this.isset_inWarehouseType); ub.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId); ub.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName); + 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(InAgencyId, this.getInAgencyId(), this.isset_inAgencyId); @@ -296,8 +312,10 @@ ub.set(OutWarehouseFormId, this.getOutWarehouseFormId(), this.isset_outWarehouseFormId); ub.set(BusinessType, this.getBusinessType(), this.isset_businessType); ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode); + ub.set(InWarehouseType, this.getInWarehouseType(), this.isset_inWarehouseType); ub.set(InWarehouseId, this.getInWarehouseId(), this.isset_inWarehouseId); ub.set(InWarehouseName, this.getInWarehouseName(), this.isset_inWarehouseName); + 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(InAgencyId, this.getInAgencyId(), this.isset_inAgencyId); @@ -365,7 +383,7 @@ */ @Override public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { - return new SqlAndParameters<>("select id, in_warehouse_form_id, out_warehouse_form_id, business_type, business_form_code, in_warehouse_id, in_warehouse_name, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, in_operator_id, in_operator_name, in_time, out_operator_id, out_operator_name, output_time, beiz1, beiz2, beiz3, procure_doc from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>("select id, in_warehouse_form_id, out_warehouse_form_id, business_type, business_form_code, in_warehouse_type, in_warehouse_id, in_warehouse_name, out_warehouse_type, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, in_operator_id, in_operator_name, in_time, out_operator_id, out_operator_name, output_time, beiz1, beiz2, beiz3, procure_doc from " + this.getTableName_() + " " + where, parameters); } /** @@ -373,7 +391,7 @@ */ @Override public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { - return new SqlAndParameters<>("select id, in_warehouse_form_id, out_warehouse_form_id, business_type, business_form_code, in_warehouse_id, in_warehouse_name, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, in_operator_id, in_operator_name, in_time, out_operator_id, out_operator_name, output_time, beiz1, beiz2, beiz3, procure_doc from " + this.getTableName_() + " " + where, parameters); + return new SqlAndParameters<>("select id, in_warehouse_form_id, out_warehouse_form_id, business_type, business_form_code, in_warehouse_type, in_warehouse_id, in_warehouse_name, out_warehouse_type, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, in_operator_id, in_operator_name, in_time, out_operator_id, out_operator_name, output_time, beiz1, beiz2, beiz3, procure_doc from " + this.getTableName_() + " " + where, parameters); } /** @@ -438,6 +456,14 @@ if (columnIndex > 0) { l_wh_form_transfer.setBusinessFormCode(rs.getString(columnIndex)); } + columnIndex = resultSetUtils.findColumn(rs, LWhFormTransfer_mapper.InWarehouseType); + if (columnIndex > 0) { + if (rs.getBigDecimal(columnIndex) == null) { + l_wh_form_transfer.setInWarehouseType(null); + } else { + l_wh_form_transfer.setInWarehouseType(rs.getInt(columnIndex)); + } + } columnIndex = resultSetUtils.findColumn(rs, LWhFormTransfer_mapper.InWarehouseId); if (columnIndex > 0) { if (rs.getBigDecimal(columnIndex) == null) { @@ -450,6 +476,14 @@ if (columnIndex > 0) { l_wh_form_transfer.setInWarehouseName(rs.getString(columnIndex)); } + columnIndex = resultSetUtils.findColumn(rs, LWhFormTransfer_mapper.OutWarehouseType); + if (columnIndex > 0) { + if (rs.getBigDecimal(columnIndex) == null) { + l_wh_form_transfer.setOutWarehouseType(null); + } else { + l_wh_form_transfer.setOutWarehouseType(rs.getInt(columnIndex)); + } + } columnIndex = resultSetUtils.findColumn(rs, LWhFormTransfer_mapper.OutWarehouseId); if (columnIndex > 0) { if (rs.getBigDecimal(columnIndex) == null) { -- Gitblit v1.9.1