From b0841619e23dd01b8fba9561ad9036c7c3d6aa08 Mon Sep 17 00:00:00 2001 From: futian.liu <liufutianyoo@163.com> Date: 星期二, 14 十一月 2023 14:05:20 +0800 Subject: [PATCH] 出库单管理 --- consum-model-pojo/src/main/java/com/consum/model/po/LWhFormOutput_mapper.java | 79 +++++++++++++++++++++++++++++++++++++-- 1 files changed, 75 insertions(+), 4 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..086aa54 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 @@ -7,11 +7,10 @@ import com.walker.jdbc.sqlgen.InsertBuilder; import com.walker.jdbc.sqlgen.SelectBuilder; import com.walker.jdbc.sqlgen.UpdateBuilder; -import org.springframework.jdbc.core.RowMapper; - import java.sql.ResultSet; import java.sql.SQLException; import java.util.Map; +import org.springframework.jdbc.core.RowMapper; /** * 琛ㄥ悕:L_WH_FORM_OUTPUT * @@ -30,10 +29,14 @@ public static final String BusinessFormCode = "business_form_code"; public static final String InWarehouseFlowId = "in_warehouse_flow_id"; public static final String TransBusinessId = "trans_business_id"; + public static final String OutWarehouseType = "out_warehouse_type"; public static final String OutputCode = "output_code"; 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 InWarehouseType = "in_warehouse_type"; + 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"; @@ -41,6 +44,7 @@ public static final String DealTime = "deal_time"; public static final String States = "states"; public static final String Beiz = "beiz"; + public static final String OutputDoc = "output_doc"; /** * 榛樿鏋勯�犲嚱鏁� @@ -66,6 +70,9 @@ if (lWhFormOutput.isset_transBusinessId) { this.setTransBusinessId(lWhFormOutput.getTransBusinessId()); } + if (lWhFormOutput.isset_outWarehouseType) { + this.setOutWarehouseType(lWhFormOutput.getOutWarehouseType()); + } if (lWhFormOutput.isset_outputCode) { this.setOutputCode(lWhFormOutput.getOutputCode()); } @@ -77,6 +84,15 @@ } if (lWhFormOutput.isset_warehouseName) { this.setWarehouseName(lWhFormOutput.getWarehouseName()); + } + if (lWhFormOutput.isset_inWarehouseType) { + this.setInWarehouseType(lWhFormOutput.getInWarehouseType()); + } + if (lWhFormOutput.isset_inWarehouseId) { + this.setInWarehouseId(lWhFormOutput.getInWarehouseId()); + } + if (lWhFormOutput.isset_inWarehouseName) { + this.setInWarehouseName(lWhFormOutput.getInWarehouseName()); } if (lWhFormOutput.isset_agencyId) { this.setAgencyId(lWhFormOutput.getAgencyId()); @@ -98,6 +114,9 @@ } if (lWhFormOutput.isset_beiz) { this.setBeiz(lWhFormOutput.getBeiz()); + } + if (lWhFormOutput.isset_outputDoc) { + this.setOutputDoc(lWhFormOutput.getOutputDoc()); } // 鍘绘帀锛�2022-09-07 // this.setDatabaseName_(l_wh_form_output.getDatabaseName_()); @@ -146,10 +165,14 @@ ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode); ib.set(InWarehouseFlowId, this.getInWarehouseFlowId(), this.isset_inWarehouseFlowId); ib.set(TransBusinessId, this.getTransBusinessId(), this.isset_transBusinessId); + ib.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType); ib.set(OutputCode, this.getOutputCode(), this.isset_outputCode); 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(InWarehouseType, this.getInWarehouseType(), this.isset_inWarehouseType); + 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); @@ -157,6 +180,7 @@ ib.set(DealTime, this.getDealTime(), this.isset_dealTime); ib.set(States, this.getStates(), this.isset_states); ib.set(Beiz, this.getBeiz(), this.isset_beiz); + ib.set(OutputDoc, this.getOutputDoc(), this.isset_outputDoc); return ib.genMapSql(); } @@ -170,10 +194,14 @@ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode); ub.set(InWarehouseFlowId, this.getInWarehouseFlowId(), this.isset_inWarehouseFlowId); ub.set(TransBusinessId, this.getTransBusinessId(), this.isset_transBusinessId); + ub.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType); ub.set(OutputCode, this.getOutputCode(), this.isset_outputCode); 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(InWarehouseType, this.getInWarehouseType(), this.isset_inWarehouseType); + 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); @@ -181,6 +209,7 @@ ub.set(DealTime, this.getDealTime(), this.isset_dealTime); ub.set(States, this.getStates(), this.isset_states); ub.set(Beiz, this.getBeiz(), this.isset_beiz); + ub.set(OutputDoc, this.getOutputDoc(), this.isset_outputDoc); ub.where(this.getPkName_(), this.getPkValue_()); return ub.genMapSql(); } @@ -195,10 +224,14 @@ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode); ub.set(InWarehouseFlowId, this.getInWarehouseFlowId(), this.isset_inWarehouseFlowId); ub.set(TransBusinessId, this.getTransBusinessId(), this.isset_transBusinessId); + ub.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType); ub.set(OutputCode, this.getOutputCode(), this.isset_outputCode); 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(InWarehouseType, this.getInWarehouseType(), this.isset_inWarehouseType); + 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); @@ -206,6 +239,7 @@ ub.set(DealTime, this.getDealTime(), this.isset_dealTime); ub.set(States, this.getStates(), this.isset_states); ub.set(Beiz, this.getBeiz(), this.isset_beiz); + ub.set(OutputDoc, this.getOutputDoc(), this.isset_outputDoc); return ub.genMapSql(where, parameters); } @@ -219,10 +253,14 @@ ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode); ub.set(InWarehouseFlowId, this.getInWarehouseFlowId(), this.isset_inWarehouseFlowId); ub.set(TransBusinessId, this.getTransBusinessId(), this.isset_transBusinessId); + ub.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType); ub.set(OutputCode, this.getOutputCode(), this.isset_outputCode); 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(InWarehouseType, this.getInWarehouseType(), this.isset_inWarehouseType); + 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); @@ -230,6 +268,7 @@ ub.set(DealTime, this.getDealTime(), this.isset_dealTime); ub.set(States, this.getStates(), this.isset_states); ub.set(Beiz, this.getBeiz(), this.isset_beiz); + ub.set(OutputDoc, this.getOutputDoc(), this.isset_outputDoc); return ub.genArraySql(where, parameters); } @@ -277,7 +316,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, out_warehouse_type, output_code, output_name, warehouse_id, warehouse_name, in_warehouse_type, 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 +324,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, out_warehouse_type, output_code, output_name, warehouse_id, warehouse_name, in_warehouse_type, in_warehouse_id, in_warehouse_name, agency_id, agency_name, operator_id, operator_name, deal_time, states, beiz from " + this.getTableName_() + " " + where, parameters); } /** @@ -350,6 +389,14 @@ l_wh_form_output.setTransBusinessId(rs.getLong(columnIndex)); } } + columnIndex = resultSetUtils.findColumn(rs, LWhFormOutput_mapper.OutWarehouseType); + if (columnIndex > 0) { + if (rs.getBigDecimal(columnIndex) == null) { + l_wh_form_output.setOutWarehouseType(null); + } else { + l_wh_form_output.setOutWarehouseType(rs.getInt(columnIndex)); + } + } columnIndex = resultSetUtils.findColumn(rs, LWhFormOutput_mapper.OutputCode); if (columnIndex > 0) { l_wh_form_output.setOutputCode(rs.getString(columnIndex)); @@ -369,6 +416,26 @@ columnIndex = resultSetUtils.findColumn(rs, LWhFormOutput_mapper.WarehouseName); if (columnIndex > 0) { l_wh_form_output.setWarehouseName(rs.getString(columnIndex)); + } + columnIndex = resultSetUtils.findColumn(rs, LWhFormOutput_mapper.InWarehouseType); + if (columnIndex > 0) { + if (rs.getBigDecimal(columnIndex) == null) { + l_wh_form_output.setInWarehouseType(null); + } else { + l_wh_form_output.setInWarehouseType(rs.getInt(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) { @@ -414,6 +481,10 @@ if (columnIndex > 0) { l_wh_form_output.setBeiz(rs.getString(columnIndex)); } + columnIndex = resultSetUtils.findColumn(rs, LWhFormOutput_mapper.OutputDoc); + if (columnIndex > 0) { + l_wh_form_output.setOutputDoc(rs.getString(columnIndex)); + } return l_wh_form_output; } } -- Gitblit v1.9.1