| | |
| | | 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; |
| | |
| | | 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"; |
| | |
| | | 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()); |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | */ |
| | | @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); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @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); |
| | | } |
| | | |
| | | /** |
| | |
| | | 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) { |
| | |
| | | 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) { |