| | |
| | | public static final String ModelName = "model_name"; |
| | | public static final String States = "states"; |
| | | public static final String GoodsTemplatesId = "goods_templates_id"; |
| | | public static final String Unit = "unit"; |
| | | public static final String OrderNumber = "order_number"; |
| | | public static final String CreateTime = "create_time"; |
| | | |
| | | /** |
| | | * 默认构造函数 |
| | |
| | | if (baseGoodsModels.isset_goodsTemplatesId) { |
| | | this.setGoodsTemplatesId(baseGoodsModels.getGoodsTemplatesId()); |
| | | } |
| | | if (baseGoodsModels.isset_unit) { |
| | | this.setUnit(baseGoodsModels.getUnit()); |
| | | } |
| | | if (baseGoodsModels.isset_orderNumber) { |
| | | this.setOrderNumber(baseGoodsModels.getOrderNumber()); |
| | | } |
| | | if (baseGoodsModels.isset_createTime) { |
| | | this.setCreateTime(baseGoodsModels.getCreateTime()); |
| | | } |
| | | // 去掉,2022-09-07 |
| | | // this.setDatabaseName_(base_goods_models.getDatabaseName_()); |
| | |
| | | ib.set(ModelName, this.getModelName(), this.isset_modelName); |
| | | ib.set(States, this.getStates(), this.isset_states); |
| | | ib.set(GoodsTemplatesId, this.getGoodsTemplatesId(), this.isset_goodsTemplatesId); |
| | | ib.set(Unit, this.getUnit(), this.isset_unit); |
| | | ib.set(OrderNumber, this.getOrderNumber(), this.isset_orderNumber); |
| | | ib.set(CreateTime, this.getCreateTime(), this.isset_createTime); |
| | | return ib.genMapSql(); |
| | | } |
| | | |
| | |
| | | ub.set(ModelName, this.getModelName(), this.isset_modelName); |
| | | ub.set(States, this.getStates(), this.isset_states); |
| | | ub.set(GoodsTemplatesId, this.getGoodsTemplatesId(), this.isset_goodsTemplatesId); |
| | | ub.set(Unit, this.getUnit(), this.isset_unit); |
| | | ub.set(OrderNumber, this.getOrderNumber(), this.isset_orderNumber); |
| | | ub.set(CreateTime, this.getCreateTime(), this.isset_createTime); |
| | | ub.where(this.getPkName_(), this.getPkValue_()); |
| | | return ub.genMapSql(); |
| | | } |
| | |
| | | ub.set(ModelName, this.getModelName(), this.isset_modelName); |
| | | ub.set(States, this.getStates(), this.isset_states); |
| | | ub.set(GoodsTemplatesId, this.getGoodsTemplatesId(), this.isset_goodsTemplatesId); |
| | | ub.set(Unit, this.getUnit(), this.isset_unit); |
| | | ub.set(OrderNumber, this.getOrderNumber(), this.isset_orderNumber); |
| | | ub.set(CreateTime, this.getCreateTime(), this.isset_createTime); |
| | | return ub.genMapSql(where, parameters); |
| | | } |
| | | |
| | |
| | | ub.set(ModelName, this.getModelName(), this.isset_modelName); |
| | | ub.set(States, this.getStates(), this.isset_states); |
| | | ub.set(GoodsTemplatesId, this.getGoodsTemplatesId(), this.isset_goodsTemplatesId); |
| | | ub.set(Unit, this.getUnit(), this.isset_unit); |
| | | ub.set(OrderNumber, this.getOrderNumber(), this.isset_orderNumber); |
| | | ub.set(CreateTime, this.getCreateTime(), this.isset_createTime); |
| | | return ub.genArraySql(where, parameters); |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) { |
| | | return new SqlAndParameters<>("select id, model_name, states, goods_templates_id, order_number from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, model_name, states, goods_templates_id, unit, order_number, create_time from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) { |
| | | return new SqlAndParameters<>("select id, model_name, states, goods_templates_id, order_number from " + this.getTableName_() + " " + where, parameters); |
| | | return new SqlAndParameters<>("select id, model_name, states, goods_templates_id, unit, order_number, create_time from " + this.getTableName_() + " " + where, parameters); |
| | | } |
| | | |
| | | /** |
| | |
| | | base_goods_models.setGoodsTemplatesId(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, BaseGoodsModels_mapper.Unit); |
| | | if (columnIndex > 0) { |
| | | base_goods_models.setUnit(rs.getString(columnIndex)); |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, BaseGoodsModels_mapper.OrderNumber); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | |
| | | base_goods_models.setOrderNumber(rs.getInt(columnIndex)); |
| | | } |
| | | } |
| | | columnIndex = resultSetUtils.findColumn(rs, BaseGoodsModels_mapper.CreateTime); |
| | | if (columnIndex > 0) { |
| | | if (rs.getBigDecimal(columnIndex) == null) { |
| | | base_goods_models.setCreateTime(null); |
| | | } else { |
| | | base_goods_models.setCreateTime(rs.getLong(columnIndex)); |
| | | } |
| | | } |
| | | return base_goods_models; |
| | | } |
| | | } |