| | |
| | | public static final String BaseGoodsModelsId = "base_goods_models_id"; |
| | | public static final String BaseGoodsModelsName = "base_goods_models_name"; |
| | | public static final String WhCount = "wh_count"; |
| | | public static final String TransferCount = "transfer_count"; |
| | | public static final String AllCount = "all_count"; |
| | | public static final String FirstInputCode = "first_input_code"; |
| | | public static final String FirstInputType = "first_input_type"; |
| | | public static final String FirstInputHisId = "first_input_his_id"; |
| | |
| | | } |
| | | if (whGoods.isset_whCount) { |
| | | this.setWhCount(whGoods.getWhCount()); |
| | | } |
| | | if (whGoods.isset_transferCount) { |
| | | this.setTransferCount(whGoods.getTransferCount()); |
| | | } |
| | | if (whGoods.isset_allCount) { |
| | | this.setAllCount(whGoods.getAllCount()); |
| | | } |
| | | if (whGoods.isset_firstInputCode) { |
| | | this.setFirstInputCode(whGoods.getFirstInputCode()); |
| | |
| | | ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); |
| | | ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); |
| | | ib.set(WhCount, this.getWhCount(), this.isset_whCount); |
| | | ib.set(TransferCount, this.getTransferCount(), this.isset_transferCount); |
| | | ib.set(AllCount, this.getAllCount(), this.isset_allCount); |
| | | ib.set(FirstInputCode, this.getFirstInputCode(), this.isset_firstInputCode); |
| | | ib.set(FirstInputType, this.getFirstInputType(), this.isset_firstInputType); |
| | | ib.set(FirstInputHisId, this.getFirstInputHisId(), this.isset_firstInputHisId); |
| | |
| | | ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); |
| | | ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); |
| | | ub.set(WhCount, this.getWhCount(), this.isset_whCount); |
| | | ub.set(TransferCount, this.getTransferCount(), this.isset_transferCount); |
| | | ub.set(AllCount, this.getAllCount(), this.isset_allCount); |
| | | ub.set(FirstInputCode, this.getFirstInputCode(), this.isset_firstInputCode); |
| | | ub.set(FirstInputType, this.getFirstInputType(), this.isset_firstInputType); |
| | | ub.set(FirstInputHisId, this.getFirstInputHisId(), this.isset_firstInputHisId); |
| | |
| | | ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); |
| | | ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); |
| | | ub.set(WhCount, this.getWhCount(), this.isset_whCount); |
| | | ub.set(TransferCount, this.getTransferCount(), this.isset_transferCount); |
| | | ub.set(AllCount, this.getAllCount(), this.isset_allCount); |
| | | ub.set(FirstInputCode, this.getFirstInputCode(), this.isset_firstInputCode); |
| | | ub.set(FirstInputType, this.getFirstInputType(), this.isset_firstInputType); |
| | | ub.set(FirstInputHisId, this.getFirstInputHisId(), this.isset_firstInputHisId); |
| | |
| | | ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); |
| | | ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); |
| | | ub.set(WhCount, this.getWhCount(), this.isset_whCount); |
| | | ub.set(TransferCount, this.getTransferCount(), this.isset_transferCount); |
| | | ub.set(AllCount, this.getAllCount(), this.isset_allCount); |
| | | ub.set(FirstInputCode, this.getFirstInputCode(), this.isset_firstInputCode); |
| | | ub.set(FirstInputType, this.getFirstInputType(), this.isset_firstInputType); |
| | | ub.set(FirstInputHisId, this.getFirstInputHisId(), this.isset_firstInputHisId); |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { |
| | | return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, base_goods_models_id, base_goods_models_name, wh_count, transfer_count, all_count, first_input_code, first_input_type, first_input_his_id, warehouse_id, warehouse_name, supplier, unit, price, procure_date, back_date, states from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, base_goods_models_id, base_goods_models_name, wh_count, first_input_code, first_input_type, first_input_his_id, warehouse_id, warehouse_name, supplier, unit, price, procure_date, back_date, states from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { |
| | | return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, base_goods_models_id, base_goods_models_name, wh_count, transfer_count, all_count, first_input_code, first_input_type, first_input_his_id, warehouse_id, warehouse_name, supplier, unit, price, procure_date, back_date, states from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, base_goods_template_id, goods_template_name, base_goods_models_id, base_goods_models_name, wh_count, first_input_code, first_input_type, first_input_his_id, warehouse_id, warehouse_name, supplier, unit, price, procure_date, back_date, states from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | wh_goods.setWhCount(null); |
| | | } else { |
| | | wh_goods.setWhCount(rs.getInt(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, WhGoods_mapper.TransferCount); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | wh_goods.setTransferCount(null); |
| | | } else { |
| | | wh_goods.setTransferCount(rs.getInt(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, WhGoods_mapper.AllCount); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | wh_goods.setAllCount(null); |
| | | } else { |
| | | wh_goods.setAllCount(rs.getInt(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, WhGoods_mapper.FirstInputCode); |