| | |
| | | // 普通属性 |
| | | public static final String WarehouseId = "warehouse_id"; |
| | | public static final String WarehouseName = "warehouse_name"; |
| | | public static final String LastRecord = "last_record"; |
| | | public static final String ThisType = "this_type"; |
| | | public static final String BusinessType = "business_type"; |
| | | public static final String BusinessFormId = "business_form_id"; |
| | | public static final String OperatorId = "operator_id"; |
| | |
| | | if (lWarehouseFlow.isset_warehouseName) { |
| | | this.setWarehouseName(lWarehouseFlow.getWarehouseName()); |
| | | } |
| | | if (lWarehouseFlow.isset_lastRecord) { |
| | | this.setLastRecord(lWarehouseFlow.getLastRecord()); |
| | | if (lWarehouseFlow.isset_thisType) { |
| | | this.setThisType(lWarehouseFlow.getThisType()); |
| | | } |
| | | if (lWarehouseFlow.isset_businessType) { |
| | | this.setBusinessType(lWarehouseFlow.getBusinessType()); |
| | |
| | | ib.set(Id, this.getId()); |
| | | ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName); |
| | | ib.set(LastRecord, this.getLastRecord(), this.isset_lastRecord); |
| | | ib.set(ThisType, this.getThisType(), this.isset_thisType); |
| | | ib.set(BusinessType, this.getBusinessType(), this.isset_businessType); |
| | | ib.set(BusinessFormId, this.getBusinessFormId(), this.isset_businessFormId); |
| | | ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId); |
| | |
| | | UpdateBuilder ub = new UpdateBuilder(this.getTableName_()); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName); |
| | | ub.set(LastRecord, this.getLastRecord(), this.isset_lastRecord); |
| | | ub.set(ThisType, this.getThisType(), this.isset_thisType); |
| | | ub.set(BusinessType, this.getBusinessType(), this.isset_businessType); |
| | | ub.set(BusinessFormId, this.getBusinessFormId(), this.isset_businessFormId); |
| | | ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId); |
| | |
| | | UpdateBuilder ub = new UpdateBuilder(this.getTableName_()); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName); |
| | | ub.set(LastRecord, this.getLastRecord(), this.isset_lastRecord); |
| | | ub.set(ThisType, this.getThisType(), this.isset_thisType); |
| | | ub.set(BusinessType, this.getBusinessType(), this.isset_businessType); |
| | | ub.set(BusinessFormId, this.getBusinessFormId(), this.isset_businessFormId); |
| | | ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId); |
| | |
| | | UpdateBuilder ub = new UpdateBuilder(this.getTableName_()); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName); |
| | | ub.set(LastRecord, this.getLastRecord(), this.isset_lastRecord); |
| | | ub.set(ThisType, this.getThisType(), this.isset_thisType); |
| | | ub.set(BusinessType, this.getBusinessType(), this.isset_businessType); |
| | | ub.set(BusinessFormId, this.getBusinessFormId(), this.isset_businessFormId); |
| | | ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId); |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { |
| | | return new SqlAndParameters<>("select id, warehouse_id, warehouse_name, last_record, business_type, business_form_id, operator_id, operator_name, deal_time from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, warehouse_id, warehouse_name, this_type, business_type, business_form_id, operator_id, operator_name, deal_time from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { |
| | | return new SqlAndParameters<>("select id, warehouse_id, warehouse_name, last_record, business_type, business_form_id, operator_id, operator_name, deal_time from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, warehouse_id, warehouse_name, this_type, business_type, business_form_id, operator_id, operator_name, deal_time from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (columnIndex > 0) { |
| | | l_warehouse_flow.setWarehouseName(rs.getString(columnIndex)); |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, LWarehouseFlow_mapper.LastRecord); |
| | | columnIndex = resultSetUtils.findColumn(rs, LWarehouseFlow_mapper.ThisType); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | l_warehouse_flow.setLastRecord(null); |
| | | l_warehouse_flow.setThisType(null); |
| | | } else { |
| | | l_warehouse_flow.setLastRecord(rs.getInt(columnIndex)); |
| | | l_warehouse_flow.setThisType(rs.getInt(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, LWarehouseFlow_mapper.BusinessType); |