| | |
| | | public static final String InitCount = "init_count"; |
| | | public static final String DepFormLendingGoodsId = "dep_form_lending_goods_id"; |
| | | public static final String EndCount = "end_count"; |
| | | public static final String DepFormLendingId = "dep_form_lending_id"; |
| | | public static final String WarehouseId = "warehouse_id"; |
| | | |
| | | /** |
| | | * 默认构造函数 |
| | |
| | | } |
| | | if (depFormBackGoods.isset_endCount) { |
| | | this.setEndCount(depFormBackGoods.getEndCount()); |
| | | } |
| | | if (depFormBackGoods.isset_depFormLendingId) { |
| | | this.setDepFormLendingId(depFormBackGoods.getDepFormLendingId()); |
| | | } |
| | | if (depFormBackGoods.isset_warehouseId) { |
| | | this.setWarehouseId(depFormBackGoods.getWarehouseId()); |
| | | } |
| | | // 去掉,2022-09-07 |
| | | // this.setDatabaseName_(dep_form_back_goods.getDatabaseName_()); |
| | |
| | | ib.set(InitCount, this.getInitCount(), this.isset_initCount); |
| | | ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ib.set(EndCount, this.getEndCount(), this.isset_endCount); |
| | | ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ib.genMapSql(); |
| | | } |
| | | |
| | |
| | | ub.set(InitCount, this.getInitCount(), this.isset_initCount); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(EndCount, this.getEndCount(), this.isset_endCount); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.where(this.getPkName_(), this.getPkValue_()); |
| | | return ub.genMapSql(); |
| | | } |
| | |
| | | ub.set(InitCount, this.getInitCount(), this.isset_initCount); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(EndCount, this.getEndCount(), this.isset_endCount); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ub.genMapSql(where, parameters); |
| | | } |
| | | |
| | |
| | | ub.set(InitCount, this.getInitCount(), this.isset_initCount); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(EndCount, this.getEndCount(), this.isset_endCount); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ub.genArraySql(where, parameters); |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { |
| | | return new SqlAndParameters<>("select id, dep_form_back_id, unit, back_counts, init_count, dep_form_lending_goods_id, end_count from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, dep_form_back_id, unit, back_counts, init_count, dep_form_lending_goods_id, end_count, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { |
| | | return new SqlAndParameters<>("select id, dep_form_back_id, unit, back_counts, init_count, dep_form_lending_goods_id, end_count from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, dep_form_back_id, unit, back_counts, init_count, dep_form_lending_goods_id, end_count, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | dep_form_back_goods.setEndCount(rs.getInt(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.DepFormLendingId); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | dep_form_back_goods.setDepFormLendingId(null); |
| | | } else { |
| | | dep_form_back_goods.setDepFormLendingId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.WarehouseId); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | dep_form_back_goods.setWarehouseId(null); |
| | | } else { |
| | | dep_form_back_goods.setWarehouseId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | return dep_form_back_goods; |
| | | } |
| | | } |
| | |
| | | public static final String DepFormLendingModelId = "dep_form_lending_model_id"; |
| | | public static final String DepFormLendingGoodsId = "dep_form_lending_goods_id"; |
| | | public static final String DepFormLendingId = "dep_form_lending_id"; |
| | | public static final String WarehouseId = "warehouse_id"; |
| | | |
| | | /** |
| | | * 默认构造函数 |
| | |
| | | } |
| | | if (depFormBackModel.isset_depFormLendingId) { |
| | | this.setDepFormLendingId(depFormBackModel.getDepFormLendingId()); |
| | | } |
| | | if (depFormBackModel.isset_warehouseId) { |
| | | this.setWarehouseId(depFormBackModel.getWarehouseId()); |
| | | } |
| | | // 去掉,2022-09-07 |
| | | // this.setDatabaseName_(dep_form_back_model.getDatabaseName_()); |
| | |
| | | ib.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); |
| | | ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ib.genMapSql(); |
| | | } |
| | | |
| | |
| | | ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.where(this.getPkName_(), this.getPkValue_()); |
| | | return ub.genMapSql(); |
| | | } |
| | |
| | | ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ub.genMapSql(where, parameters); |
| | | } |
| | | |
| | |
| | | ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ub.genArraySql(where, parameters); |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { |
| | | return new SqlAndParameters<>("select id, dep_form_back_goods_id, dep_form_back_id, wh_goods_details_id, using_goods_his_id, wh_goods_id, counts, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, dep_form_back_goods_id, dep_form_back_id, wh_goods_details_id, using_goods_his_id, wh_goods_id, counts, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { |
| | | return new SqlAndParameters<>("select id, dep_form_back_goods_id, dep_form_back_id, wh_goods_details_id, using_goods_his_id, wh_goods_id, counts, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, dep_form_back_goods_id, dep_form_back_id, wh_goods_details_id, using_goods_his_id, wh_goods_id, counts, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.UsingGoodsHisId); |
| | | if (columnIndex > 0) { |
| | | dep_form_back_model.setUsingGoodsHisId(rs.getString(columnIndex)); |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | dep_form_back_model.setUsingGoodsHisId(null); |
| | | } else { |
| | | dep_form_back_model.setUsingGoodsHisId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.WhGoodsId); |
| | | if (columnIndex > 0) { |
| | |
| | | dep_form_back_model.setDepFormLendingId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.WarehouseId); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | dep_form_back_model.setWarehouseId(null); |
| | | } else { |
| | | dep_form_back_model.setWarehouseId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | return dep_form_back_model; |
| | | } |
| | | } |
| | |
| | | // 主键 |
| | | public static final String Id = "id"; |
| | | // 普通属性 |
| | | public static final String BaseGoodsTemplateId = "base_goods_template_id"; |
| | | public static final String GoodsTemplateName = "goods_template_name"; |
| | | public static final String Unit = "unit"; |
| | | public static final String BaseGoodsModelsId = "base_goods_models_id"; |
| | | public static final String BaseGoodsModelsName = "base_goods_models_name"; |
| | | public static final String ScrappedCounts = "scrapped_counts"; |
| | | public static final String InitCount = "init_count"; |
| | | public static final String DepFormScrappedId = "dep_form_scrapped_id"; |
| | |
| | | public static final String ScrappedName = "scrapped_name"; |
| | | public static final String DepFormLendingGoodsId = "dep_form_lending_goods_id"; |
| | | public static final String DepFormLendingId = "dep_form_lending_id"; |
| | | public static final String WarehouseId = "warehouse_id"; |
| | | |
| | | /** |
| | | * 默认构造函数 |
| | |
| | | this.setId(depFormScrappedGoods.getId()); |
| | | } |
| | | //普通属性 |
| | | if (depFormScrappedGoods.isset_baseGoodsTemplateId) { |
| | | this.setBaseGoodsTemplateId(depFormScrappedGoods.getBaseGoodsTemplateId()); |
| | | } |
| | | if (depFormScrappedGoods.isset_goodsTemplateName) { |
| | | this.setGoodsTemplateName(depFormScrappedGoods.getGoodsTemplateName()); |
| | | } |
| | | if (depFormScrappedGoods.isset_unit) { |
| | | this.setUnit(depFormScrappedGoods.getUnit()); |
| | | } |
| | | if (depFormScrappedGoods.isset_baseGoodsModelsId) { |
| | | this.setBaseGoodsModelsId(depFormScrappedGoods.getBaseGoodsModelsId()); |
| | | } |
| | | if (depFormScrappedGoods.isset_baseGoodsModelsName) { |
| | | this.setBaseGoodsModelsName(depFormScrappedGoods.getBaseGoodsModelsName()); |
| | | } |
| | | if (depFormScrappedGoods.isset_scrappedCounts) { |
| | | this.setScrappedCounts(depFormScrappedGoods.getScrappedCounts()); |
| | | } |
| | |
| | | } |
| | | if (depFormScrappedGoods.isset_depFormLendingId) { |
| | | this.setDepFormLendingId(depFormScrappedGoods.getDepFormLendingId()); |
| | | } |
| | | if (depFormScrappedGoods.isset_warehouseId) { |
| | | this.setWarehouseId(depFormScrappedGoods.getWarehouseId()); |
| | | } |
| | | // 去掉,2022-09-07 |
| | | // this.setDatabaseName_(dep_form_scrapped_goods.getDatabaseName_()); |
| | |
| | | public SqlAndParameters<Map<String, Object>> getInsertSql_() { |
| | | InsertBuilder ib = new InsertBuilder(this.getTableName_()); |
| | | ib.set(Id, this.getId()); |
| | | ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId); |
| | | ib.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName); |
| | | ib.set(Unit, this.getUnit(), this.isset_unit); |
| | | ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); |
| | | ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); |
| | | ib.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts); |
| | | ib.set(InitCount, this.getInitCount(), this.isset_initCount); |
| | | ib.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId); |
| | |
| | | ib.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName); |
| | | ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ib.genMapSql(); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public SqlAndParameters<Map<String, Object>> getUpdateSql_() { |
| | | UpdateBuilder ub = new UpdateBuilder(this.getTableName_()); |
| | | ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId); |
| | | ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName); |
| | | ub.set(Unit, this.getUnit(), this.isset_unit); |
| | | ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); |
| | | ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); |
| | | ub.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts); |
| | | ub.set(InitCount, this.getInitCount(), this.isset_initCount); |
| | | ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId); |
| | |
| | | ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.where(this.getPkName_(), this.getPkValue_()); |
| | | return ub.genMapSql(); |
| | | } |
| | |
| | | @Override |
| | | public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) { |
| | | UpdateBuilder ub = new UpdateBuilder(this.getTableName_()); |
| | | ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId); |
| | | ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName); |
| | | ub.set(Unit, this.getUnit(), this.isset_unit); |
| | | ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); |
| | | ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); |
| | | ub.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts); |
| | | ub.set(InitCount, this.getInitCount(), this.isset_initCount); |
| | | ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId); |
| | |
| | | ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ub.genMapSql(where, parameters); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) { |
| | | UpdateBuilder ub = new UpdateBuilder(this.getTableName_()); |
| | | ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId); |
| | | ub.set(GoodsTemplateName, this.getGoodsTemplateName(), this.isset_goodsTemplateName); |
| | | ub.set(Unit, this.getUnit(), this.isset_unit); |
| | | ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId); |
| | | ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName); |
| | | ub.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts); |
| | | ub.set(InitCount, this.getInitCount(), this.isset_initCount); |
| | | ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId); |
| | |
| | | ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ub.genArraySql(where, parameters); |
| | | } |
| | | |
| | |
| | | */ |
| | | @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, unit, base_goods_models_id, base_goods_models_name, scrapped_counts, init_count, dep_form_scrapped_id, beiz, scrapped_code, scrapped_name, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, scrapped_counts, init_count, dep_form_scrapped_id, beiz, scrapped_code, scrapped_name, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id 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, unit, base_goods_models_id, base_goods_models_name, scrapped_counts, init_count, dep_form_scrapped_id, beiz, scrapped_code, scrapped_name, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, scrapped_counts, init_count, dep_form_scrapped_id, beiz, scrapped_code, scrapped_name, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | dep_form_scrapped_goods.setId(rs.getLong(columnIndex)); |
| | | } |
| | | //普通属性 |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.BaseGoodsTemplateId); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | dep_form_scrapped_goods.setBaseGoodsTemplateId(null); |
| | | } else { |
| | | dep_form_scrapped_goods.setBaseGoodsTemplateId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.GoodsTemplateName); |
| | | if (columnIndex > 0) { |
| | | dep_form_scrapped_goods.setGoodsTemplateName(rs.getString(columnIndex)); |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.Unit); |
| | | if (columnIndex > 0) { |
| | | dep_form_scrapped_goods.setUnit(rs.getString(columnIndex)); |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.BaseGoodsModelsId); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | dep_form_scrapped_goods.setBaseGoodsModelsId(null); |
| | | } else { |
| | | dep_form_scrapped_goods.setBaseGoodsModelsId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.BaseGoodsModelsName); |
| | | if (columnIndex > 0) { |
| | | dep_form_scrapped_goods.setBaseGoodsModelsName(rs.getString(columnIndex)); |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.ScrappedCounts); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | |
| | | dep_form_scrapped_goods.setDepFormLendingId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.WarehouseId); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | dep_form_scrapped_goods.setWarehouseId(null); |
| | | } else { |
| | | dep_form_scrapped_goods.setWarehouseId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | return dep_form_scrapped_goods; |
| | | } |
| | | } |
| | |
| | | public static final String DepFormLendingModelId = "dep_form_lending_model_id"; |
| | | public static final String DepFormLendingGoodsId = "dep_form_lending_goods_id"; |
| | | public static final String DepFormLendingId = "dep_form_lending_id"; |
| | | public static final String WarehouseId = "warehouse_id"; |
| | | |
| | | /** |
| | | * 默认构造函数 |
| | |
| | | } |
| | | if (depFormScrappedModel.isset_depFormLendingId) { |
| | | this.setDepFormLendingId(depFormScrappedModel.getDepFormLendingId()); |
| | | } |
| | | if (depFormScrappedModel.isset_warehouseId) { |
| | | this.setWarehouseId(depFormScrappedModel.getWarehouseId()); |
| | | } |
| | | // 去掉,2022-09-07 |
| | | // this.setDatabaseName_(dep_form_scrapped_model.getDatabaseName_()); |
| | |
| | | ib.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); |
| | | ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ib.genMapSql(); |
| | | } |
| | | |
| | |
| | | ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.where(this.getPkName_(), this.getPkValue_()); |
| | | return ub.genMapSql(); |
| | | } |
| | |
| | | ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ub.genMapSql(where, parameters); |
| | | } |
| | | |
| | |
| | | ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId); |
| | | ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId); |
| | | ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | return ub.genArraySql(where, parameters); |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { |
| | | return new SqlAndParameters<>("select id, dep_form_scrapped_goods_id, scrapped_code, scrapped_name, beiz, using_goods_his_id, dep_form_scrapped_id, wh_goods_id, scrapped_counts, init_count, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, dep_form_scrapped_goods_id, scrapped_code, scrapped_name, beiz, using_goods_his_id, dep_form_scrapped_id, wh_goods_id, scrapped_counts, init_count, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { |
| | | return new SqlAndParameters<>("select id, dep_form_scrapped_goods_id, scrapped_code, scrapped_name, beiz, using_goods_his_id, dep_form_scrapped_id, wh_goods_id, scrapped_counts, init_count, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, dep_form_scrapped_goods_id, scrapped_code, scrapped_name, beiz, using_goods_his_id, dep_form_scrapped_id, wh_goods_id, scrapped_counts, init_count, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, warehouse_id from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | dep_form_scrapped_model.setDepFormLendingId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.WarehouseId); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | dep_form_scrapped_model.setWarehouseId(null); |
| | | } else { |
| | | dep_form_scrapped_model.setWarehouseId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | return dep_form_scrapped_model; |
| | | } |
| | | } |
| | |
| | | public static final String Beiz = "beiz"; |
| | | public static final String Beiz2 = "beiz2"; |
| | | public static final String UploadFiles = "upload_files"; |
| | | public static final String WarehouseId = "warehouse_id"; |
| | | public static final String WarehouseName = "warehouse_name"; |
| | | |
| | | /** |
| | | * 默认构造函数 |
| | |
| | | } |
| | | if (depFormScrapped.isset_uploadFiles) { |
| | | this.setUploadFiles(depFormScrapped.getUploadFiles()); |
| | | } |
| | | if (depFormScrapped.isset_warehouseId) { |
| | | this.setWarehouseId(depFormScrapped.getWarehouseId()); |
| | | } |
| | | if (depFormScrapped.isset_warehouseName) { |
| | | this.setWarehouseName(depFormScrapped.getWarehouseName()); |
| | | } |
| | | // 去掉,2022-09-07 |
| | | // this.setDatabaseName_(dep_form_scrapped.getDatabaseName_()); |
| | |
| | | ib.set(Beiz, this.getBeiz(), this.isset_beiz); |
| | | ib.set(Beiz2, this.getBeiz2(), this.isset_beiz2); |
| | | ib.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles); |
| | | ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName); |
| | | return ib.genMapSql(); |
| | | } |
| | | |
| | |
| | | ub.set(Beiz, this.getBeiz(), this.isset_beiz); |
| | | ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2); |
| | | ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName); |
| | | ub.where(this.getPkName_(), this.getPkValue_()); |
| | | return ub.genMapSql(); |
| | | } |
| | |
| | | ub.set(Beiz, this.getBeiz(), this.isset_beiz); |
| | | ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2); |
| | | ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName); |
| | | return ub.genMapSql(where, parameters); |
| | | } |
| | | |
| | |
| | | ub.set(Beiz, this.getBeiz(), this.isset_beiz); |
| | | ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2); |
| | | ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles); |
| | | ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId); |
| | | ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName); |
| | | return ub.genArraySql(where, parameters); |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { |
| | | return new SqlAndParameters<>("select id, business_form_code, agency_id, agency_name, operator_id, operator_name, deal_time, department_id, department_name, reviewer_id, reviewer_name, review_date, review_states, beiz, beiz2, upload_files from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, business_form_code, agency_id, agency_name, operator_id, operator_name, deal_time, department_id, department_name, reviewer_id, reviewer_name, review_date, review_states, beiz, beiz2, upload_files, warehouse_id, warehouse_name from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { |
| | | return new SqlAndParameters<>("select id, business_form_code, agency_id, agency_name, operator_id, operator_name, deal_time, department_id, department_name, reviewer_id, reviewer_name, review_date, review_states, beiz, beiz2, upload_files from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, business_form_code, agency_id, agency_name, operator_id, operator_name, deal_time, department_id, department_name, reviewer_id, reviewer_name, review_date, review_states, beiz, beiz2, upload_files, warehouse_id, warehouse_name from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (columnIndex > 0) { |
| | | dep_form_scrapped.setUploadFiles(rs.getString(columnIndex)); |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.WarehouseId); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | dep_form_scrapped.setWarehouseId(null); |
| | | } else { |
| | | dep_form_scrapped.setWarehouseId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.WarehouseName); |
| | | if (columnIndex > 0) { |
| | | dep_form_scrapped.setWarehouseName(rs.getString(columnIndex)); |
| | | } |
| | | return dep_form_scrapped; |
| | | } |
| | | } |