杨凯
2023-10-18 caf451f76ac30aa222230e0bc2d0d7cb9f420bdf
新增部门出入库
25个文件已添加
11个文件已修改
13453 ■■■■ 已修改文件
consum-base/doc/项目资料/河南邮政低值易耗品V20231011.pdb 1891 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-base/doc/项目资料/河南邮政低值易耗品V20231011.pdm 1891 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-base/src/main/java/com/consum/base/core/CheckUsingParam.java 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-base/src/main/java/com/consum/base/core/CheckUsingResult.java 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-base/src/main/java/com/consum/base/core/CheckWarehouseResult.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-base/src/main/java/com/consum/base/core/WarehouseBusinessService.java 100 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-base/src/main/java/com/consum/base/core/WarehouseCoreService.java 148 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBack.java 370 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackGoods.java 216 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackGoods_mapper.java 301 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackModel.java 282 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackModel_mapper.java 349 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBack_mapper.java 393 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLending.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingGoods.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingGoodsUser.java 260 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingGoodsUser_mapper.java 325 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingGoods_mapper.java 393 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingModel.java 378 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingModel_mapper.java 545 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLending_mapper.java 425 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped.java 414 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedGoods.java 370 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedGoods_mapper.java 393 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedModel.java 348 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedModel_mapper.java 389 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped_mapper.java 417 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/UsingGoodsHis.java 404 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/UsingGoodsHis_mapper.java 513 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/WhFormOutputGoods_mapper.java 309 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/WhFormOutputModel_mapper.java 289 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/WhFormOutput_mapper.java 373 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/WhGoods_mapper.java 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/WhWarningConfig_mapper.java 305 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-model-pojo/src/main/java/com/consum/model/po/WhWarning_mapper.java 477 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
deploy-jar-single/src/main/java/com/consum/test/synchronizedCode.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
consum-base/doc/ÏîÄ¿×ÊÁÏ/ºÓÄÏÓÊÕþµÍÖµÒ×ºÄÆ·V20231011.pdb
Diff too large
consum-base/doc/ÏîÄ¿×ÊÁÏ/ºÓÄÏÓÊÕþµÍÖµÒ×ºÄÆ·V20231011.pdm
Diff too large
consum-base/src/main/java/com/consum/base/core/CheckUsingParam.java
New file
@@ -0,0 +1,39 @@
package com.consum.base.core;
import lombok.Data;
import java.util.List;
@Data
public class CheckUsingParam {
    /**
     * æ˜¯å¦å…¥åº“  true æ˜¯ false å¦ï¼ˆå‡ºåº“)
     */
    private Boolean isCheckIn;
    /**
     * å…¥åº“类型 1=分发入库
     */
    private int input_type;
    /**
     * åˆ†å‘出库结果
     */
    private List<CheckWarehouseResult> outputList;
    /**
     * åˆ†å‘表ID
     */
    private Long lending_id;
    /**
     * åž‹å·ID
     */
    private String model_id;
    /**
     * å‡ºåº“数量
     */
    private int outputCount;
}
consum-base/src/main/java/com/consum/base/core/CheckUsingResult.java
New file
@@ -0,0 +1,32 @@
package com.consum.base.core;
import com.consum.model.po.DepFormLendingModel;
import com.consum.model.po.WhGoods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * å¤„理部门在用物品时的返回类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CheckUsingResult {
    /**
     * æ“ä½œæ›´æ–°æˆ–新增的WH_GOODS库存物品ID
     */
    private DepFormLendingModel lendingModel;
    /**
     * æ‰§è¡Œæ“ä½œæ—¶çš„æœŸåˆæ•°é‡
     */
    private int initial_count;
    /**
     * æ‰§è¡Œæ“ä½œåŽçš„æœŸæœ«æ•°é‡
     */
    private int end_count;
}
consum-base/src/main/java/com/consum/base/core/CheckWarehouseResult.java
@@ -30,4 +30,9 @@
     */
    private int end_count;
    /**
     * å‡ºå…¥åº“流水ID(仅限分发出库使用)
     */
    private Long wh_goods_detail_id;
}
consum-base/src/main/java/com/consum/base/core/WarehouseBusinessService.java
@@ -94,6 +94,7 @@
            CheckWarehouseParam param = new CheckWarehouseParam();
            param.setIsCheckIn(false);
            param.setWarehouseId(output.getWarehouseId());
            param.setModelId(goods.getBaseGoodsModelsId());
            param.setCount(goods.getCounts());
            List<CheckWarehouseResult> results =  coreService.unifyCheck(param);
@@ -565,11 +566,108 @@
        insertBatch(warningList);
    }
    public void doDepBack(DepFormBack back){
        String sql = "SELECT\n" +
                "    * \n" +
                "FROM\n" +
                "    DEP_FORM_BACK_GOODS A \n" +
                "WHERE\n" +
                "    A.DEP_FORM_BACK_ID = :BACK_ID \n";
        List<DepFormBackGoods>  goodsList = this.select(sql,new SqlParameter()
                .put("BACK_ID",back.getId()),new DepFormBackGoods());
        for (DepFormBackGoods goods : goodsList) {
            CheckUsingParam param = new CheckUsingParam();
            param.setIsCheckIn(false);
            param.setLending_id(back.getDepFormLendingId());
            param.setOutputCount(goods.getBackCounts());
            //型号
//            param.setModel_id(model.);
            //字表设计有问题,需要重新设计,参考报废表。
        }
    }
    /**
     * éƒ¨é—¨ç‰©å“åˆ†å‘
     */
    public void doDepLending(){
    public void doDepLending(DepFormLending lending){
        String sql = "SELECT\n" +
                "    * \n" +
                "FROM\n" +
                "    DEP_FORM_LENDING_GOODS A \n" +
                "WHERE\n" +
                "    A.DEP_FORM_LENDING_ID = :LENDING_ID";
        List<DepFormLendingGoods>  goodsList = this.select(sql,new SqlParameter()
                .put("LENDING_ID",lending.getId()),new DepFormLendingGoods());
        for (DepFormLendingGoods goods : goodsList){
            CheckWarehouseParam param = new CheckWarehouseParam();
            param.setIsCheckIn(false);
            param.setWarehouseId(lending.getWarehouseId());
            param.setModelId(goods.getBaseGoodsModelsId());
            param.setCount(goods.getCounts());
            //首先从机构仓库出库
            List<CheckWarehouseResult> results =  coreService.unifyCheck(param);
            for (CheckWarehouseResult result : results){
                WhGoodsDetails details = new WhGoodsDetails();
                details.setId(NumberGenerator.getLongSequenceNumber());
                details.setBusinessFormId(lending.getId());
                details.setBusinessFormCode(lending.getBusinessFormCode());
                details.setBusinessFormName("分发单:" + lending.getBusinessFormCode());
                details.setInitialCount(result.getInitial_count());
                details.setThisType(2);
                details.setThisCount(result.getInitial_count() - result.getEnd_count());
                details.setEndCount(result.getEnd_count());
                details.setWarehouseId(result.getWhGoods().getWarehouseId());
                details.setWarehouseName(result.getWhGoods().getWarehouseName());
                details.setClassification(11);
                details.setOperatorId(lending.getOperatorId());
                details.setOperatorName(lending.getOperatorName());
                details.setDealTime(lending.getDealTime());
                details.setWhGoodsId(result.getWhGoods().getId());
                this.insert(details);
                //回填出库流水ID,用于分发时使用
                result.setWh_goods_detail_id(details.getId());
            }
            CheckUsingParam usingParam = new CheckUsingParam();
            usingParam.setIsCheckIn(true);
            usingParam.setInput_type(1);
            usingParam.setOutputList(results);
            List<CheckUsingResult> usingResults = coreService.unifyUsingCheck(usingParam);
            for (CheckUsingResult usingResult : usingResults) {
                UsingGoodsHis his  = new UsingGoodsHis();
                his.setId(NumberGenerator.getLongSequenceNumber());
                his.setBusinessFormId(lending.getId());
                his.setBusinessFormCode(lending.getBusinessFormCode());
                his.setBusinessFormName("分发单:" + lending.getBusinessFormCode());
                his.setClassification(1);
                his.setOperatorId(lending.getOperatorId());
                his.setOperatorName(lending.getOperatorName());
                his.setDealTime(lending.getDealTime());
                his.setDepFormLendingModelId(usingResult.getLendingModel().getId());
                his.setDepFormLendingGoodsId(usingResult.getLendingModel().getDepFormLendingGoodsId());
                his.setDepFormLendingId(lending.getId());
                his.setWhGoodsId(usingResult.getLendingModel().getWhGoodsId());
                his.setInitialCount(usingResult.getInitial_count());
                his.setEndCount(usingResult.getEnd_count());
                his.setWarehouseId(lending.getWarehouseId());
                his.setWarehouseName(lending.getWarehouseName());
                his.setDepartmentId(lending.getDepartmentId());
                his.setDepartmentName(lending.getDepartmentName());
                insert(his);
            }
        }
    }
}
consum-base/src/main/java/com/consum/base/core/WarehouseCoreService.java
@@ -7,6 +7,7 @@
import com.walker.jdbc.service.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
@@ -30,6 +31,38 @@
        WhGoods_mapper mapper = new WhGoods_mapper(goods);
        System.out.println(mapper.getInsertSql_().getParameters());
        System.out.println(mapper.getInsertSql_().getSql());
    }
    /**
     * ç»Ÿä¸€å‡ºå…¥åº“
     */
    public List<CheckUsingResult> unifyUsingCheck(CheckUsingParam param) {
        // TODO: 10/10/2023 æ­¤å¤„加了唯一锁,会影响性能,思考是否有更合适的办法
        try {
            List<CheckUsingResult> results;
            String key = param.getLending_id();
            /**
             * æ­¤å¤„将同一个仓库下的同一个型号上锁,不同仓库、不同型号不受影响。
             */
            synchronized (key) {
                if (param.getIsCheckIn()) {
                    results = checkUsingIn(param);
                } else {
                    results = checkUsingOut(param);
                }
            }
            return results;
        } catch (Exception e) {
            log.error(e.getMessage());
            throw new RuntimeException(e.getMessage());
        }
    }
    /**
@@ -64,6 +97,121 @@
    }
    /**
     * åœ¨ç”¨ç‰©å“å‡ºåº“
     * @param param
     * @return
     */
    private List<CheckUsingResult> checkUsingOut(CheckUsingParam param){
        String sql = "SELECT\n" +
                "    * \n" +
                "FROM\n" +
                "    DEP_FORM_LENDING_MODEL a \n" +
                "WHERE\n" +
                "    a.BASE_GOODS_MODELS_ID =:MODEL_ID \n" +
                "    AND DEP_FORM_LENDING_ID =:LENDING_ID \n" +
                "    AND USING_COUNT > 0\n" +
                "ORDER BY\n" +
                "    PROCURE_DATE ASC PRICE DESC";
        List<DepFormLendingModel>  modelsList = this.select(sql,new SqlParameter("MODEL_ID", param.getModel_id())
                .put("LENDING_ID",param.getLending_id()),new DepFormLendingModel());
        List<CheckUsingResult> resultList = new ArrayList<>();
        int shengyu = param.getOutputCount();
        for (DepFormLendingModel model : modelsList) {
            CheckUsingResult result = new CheckUsingResult();
            DepFormLendingGoods goods = get(new DepFormLendingGoods(),"id=?",new Object[]{model.getDepFormLendingGoodsId()});
            //如果当前持有人持有物品数量大于出库数量,则直接减掉数量即可。
            if (model.getUsingCount() > shengyu){
                result.setInitial_count(model.getUsingCount());
                result.setLendingModel(model);
                model.setUsingCount(model.getCounts() - param.getOutputCount());
                result.setEnd_count(model.getUsingCount());
                update(model);
                resultList.add(result);
                goods.setUsingCount(goods.getUsingCount() - param.getOutputCount());
                update(goods);
                return resultList;
            }
            shengyu = shengyu - model.getUsingCount();
            goods.setUsingCount(goods.getUsingCount() - model.getUsingCount());
            result.setInitial_count(model.getUsingCount());
            result.setLendingModel(model);
            model.setUsingCount(0);
            result.setEnd_count(0);
            update(model);
            resultList.add(result);
            update(goods);
        }
        return resultList;
    }
    /**
     * åœ¨ç”¨ç‰©å“å…¥
     * @param param
     * @return
     */
    private List<CheckUsingResult> checkUsingIn(CheckUsingParam param){
        DepFormLending lending = get(new DepFormLending(),"id=?",new Object[]{param.getLending_id()});
        String sql = "SELECT\n" +
                "    * \n" +
                "FROM\n" +
                "    DEP_FORM_LENDING_GOODS A \n" +
                "WHERE\n" +
                "    A.DEP_FORM_LENDING_ID = :LENDING_ID";
        List<DepFormLendingGoods>  goodsList = this.select(sql,new SqlParameter()
                .put("LENDING_ID",lending.getId()),new DepFormLendingGoods());
        List<CheckUsingResult> resultList = new ArrayList<>();
        for (DepFormLendingGoods goods : goodsList) {
            for (CheckWarehouseResult output : param.getOutputList()) {
                //如果出库的型号与分发单里的型号相同
                if (goods.getBaseGoodsModelsId().longValue() == output.getWhGoods().getBaseGoodsModelsId().longValue()){
                    DepFormLendingModel model = new DepFormLendingModel();
                    model.setId(NumberGenerator.getLongSequenceNumber());
                    model.setCounts(goods.getCounts());
                    model.setDepFormLendingGoodsId(goods.getId());
                    model.setDepFormLendingId(goods.getDepFormLendingId());
                    model.setWhGoodsDetailsId(output.getWh_goods_detail_id());
                    model.setNowUserName(goods.getGoodsUserName());
                    model.setNowUserPhone(goods.getGoodsUserPhone());
                    model.setWhGoodsId(output.getWhGoods().getId());
                    //当前可使用数量
                    model.setUsingCount(model.getCounts());
                    model.setWarehouseId(output.getWhGoods().getWarehouseId());
                    model.setWarehouseName(output.getWhGoods().getWarehouseName());
                    model.setAgencyId(lending.getAgencyId());
                    model.setAgencyName(lending.getAgencyName());
                    model.setDepartmentId(lending.getDepartmentId());
                    model.setDepartmentName(lending.getDepartmentName());
                    insert(model);
                    CheckUsingResult result = new CheckUsingResult();
                    result.setLendingModel(model);
                    result.setInitial_count(0);
                    result.setEnd_count(output.getInitial_count()-output.getEnd_count());
                    resultList.add(result);
                }
            }
        }
        return resultList;
    }
    /**
     * å‡ºåº“
     */
    private List<CheckWarehouseResult> checkout(CheckWarehouseParam param) {
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBack.java
New file
@@ -0,0 +1,370 @@
package com.consum.model.po;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
/**
 * è¡¨å:DEP_FORM_BACK *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class DepFormBack extends BasePo<DepFormBack> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    // ä¸»é”®
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
    // å±žæ€§åˆ—表
    private String businessFormCode = null;
    @JsonIgnore
    protected boolean isset_businessFormCode = false;
    private Long warehouseId = null;
    @JsonIgnore
    protected boolean isset_warehouseId = false;
    private String warehouseName = null;
    @JsonIgnore
    protected boolean isset_warehouseName = false;
    private Long operatorId = null;
    @JsonIgnore
    protected boolean isset_operatorId = false;
    private String operatorName = null;
    @JsonIgnore
    protected boolean isset_operatorName = false;
    private Long dealTime = null;
    @JsonIgnore
    protected boolean isset_dealTime = false;
    private String departmentId = null;
    @JsonIgnore
    protected boolean isset_departmentId = false;
    private Long departmentName = null;
    @JsonIgnore
    protected boolean isset_departmentName = false;
    private Long agencyId = null;
    @JsonIgnore
    protected boolean isset_agencyId = false;
    private String agencyName = null;
    @JsonIgnore
    protected boolean isset_agencyName = false;
    private Integer states = null;
    @JsonIgnore
    protected boolean isset_states = false;
    private String beiz = null;
    @JsonIgnore
    protected boolean isset_beiz = false;
    private Long depFormLendingId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingId = false;
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormBack() {
    }
    /**
     * æ ¹æ®ä¸»é”®æž„造对象
     */
    public DepFormBack(Long id) {
        this.setId(id);
    }
    /**
     * è®¾ç½®ä¸»é”®å€¼
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
    public String getBusinessFormCode() {
        return this.businessFormCode;
    }
    public void setBusinessFormCode(String businessFormCode) {
        this.businessFormCode = businessFormCode;
        this.isset_businessFormCode = true;
    }
    @JsonIgnore
    public boolean isEmptyBusinessFormCode() {
        return this.businessFormCode == null || this.businessFormCode.length() == 0;
    }
    public Long getWarehouseId() {
        return this.warehouseId;
    }
    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
        this.isset_warehouseId = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseId() {
        return this.warehouseId == null;
    }
    public String getWarehouseName() {
        return this.warehouseName;
    }
    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
        this.isset_warehouseName = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseName() {
        return this.warehouseName == null || this.warehouseName.length() == 0;
    }
    public Long getOperatorId() {
        return this.operatorId;
    }
    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
        this.isset_operatorId = true;
    }
    @JsonIgnore
    public boolean isEmptyOperatorId() {
        return this.operatorId == null;
    }
    public String getOperatorName() {
        return this.operatorName;
    }
    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
        this.isset_operatorName = true;
    }
    @JsonIgnore
    public boolean isEmptyOperatorName() {
        return this.operatorName == null || this.operatorName.length() == 0;
    }
    public Long getDealTime() {
        return this.dealTime;
    }
    public void setDealTime(Long dealTime) {
        this.dealTime = dealTime;
        this.isset_dealTime = true;
    }
    @JsonIgnore
    public boolean isEmptyDealTime() {
        return this.dealTime == null;
    }
    public String getDepartmentId() {
        return this.departmentId;
    }
    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
        this.isset_departmentId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepartmentId() {
        return this.departmentId == null || this.departmentId.length() == 0;
    }
    public Long getDepartmentName() {
        return this.departmentName;
    }
    public void setDepartmentName(Long departmentName) {
        this.departmentName = departmentName;
        this.isset_departmentName = true;
    }
    @JsonIgnore
    public boolean isEmptyDepartmentName() {
        return this.departmentName == null;
    }
    public Long getAgencyId() {
        return this.agencyId;
    }
    public void setAgencyId(Long agencyId) {
        this.agencyId = agencyId;
        this.isset_agencyId = true;
    }
    @JsonIgnore
    public boolean isEmptyAgencyId() {
        return this.agencyId == null;
    }
    public String getAgencyName() {
        return this.agencyName;
    }
    public void setAgencyName(String agencyName) {
        this.agencyName = agencyName;
        this.isset_agencyName = true;
    }
    @JsonIgnore
    public boolean isEmptyAgencyName() {
        return this.agencyName == null || this.agencyName.length() == 0;
    }
    public Integer getStates() {
        return this.states;
    }
    public void setStates(Integer states) {
        this.states = states;
        this.isset_states = true;
    }
    @JsonIgnore
    public boolean isEmptyStates() {
        return this.states == null;
    }
    public String getBeiz() {
        return this.beiz;
    }
    public void setBeiz(String beiz) {
        this.beiz = beiz;
        this.isset_beiz = true;
    }
    @JsonIgnore
    public boolean isEmptyBeiz() {
        return this.beiz == null || this.beiz.length() == 0;
    }
    public Long getDepFormLendingId() {
        return this.depFormLendingId;
    }
    public void setDepFormLendingId(Long depFormLendingId) {
        this.depFormLendingId = depFormLendingId;
        this.isset_depFormLendingId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingId() {
        return this.depFormLendingId == null;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("businessFormCode=").append(this.businessFormCode)
                .append("warehouseId=").append(this.warehouseId)
                .append("warehouseName=").append(this.warehouseName)
                .append("operatorId=").append(this.operatorId)
                .append("operatorName=").append(this.operatorName)
                .append("dealTime=").append(this.dealTime)
                .append("departmentId=").append(this.departmentId)
                .append("departmentName=").append(this.departmentName)
                .append("agencyId=").append(this.agencyId)
                .append("agencyName=").append(this.agencyName)
                .append("states=").append(this.states)
                .append("beiz=").append(this.beiz)
                .append("depFormLendingId=").append(this.depFormLendingId)
                .toString();
    }
    /**
     * å…‹éš†
     */
    public DepFormBack $clone() {
        DepFormBack dep_form_back = new DepFormBack();
        // æ•°æ®åº“名称
        //dep_form_back.setDatabaseName_(this.getDatabaseName_());
        // ä¸»é”®
        if (this.isset_id) {
            dep_form_back.setId(this.getId());
        }
        // æ™®é€šå±žæ€§
        if (this.isset_businessFormCode) {
            dep_form_back.setBusinessFormCode(this.getBusinessFormCode());
        }
        if (this.isset_warehouseId) {
            dep_form_back.setWarehouseId(this.getWarehouseId());
        }
        if (this.isset_warehouseName) {
            dep_form_back.setWarehouseName(this.getWarehouseName());
        }
        if (this.isset_operatorId) {
            dep_form_back.setOperatorId(this.getOperatorId());
        }
        if (this.isset_operatorName) {
            dep_form_back.setOperatorName(this.getOperatorName());
        }
        if (this.isset_dealTime) {
            dep_form_back.setDealTime(this.getDealTime());
        }
        if (this.isset_departmentId) {
            dep_form_back.setDepartmentId(this.getDepartmentId());
        }
        if (this.isset_departmentName) {
            dep_form_back.setDepartmentName(this.getDepartmentName());
        }
        if (this.isset_agencyId) {
            dep_form_back.setAgencyId(this.getAgencyId());
        }
        if (this.isset_agencyName) {
            dep_form_back.setAgencyName(this.getAgencyName());
        }
        if (this.isset_states) {
            dep_form_back.setStates(this.getStates());
        }
        if (this.isset_beiz) {
            dep_form_back.setBeiz(this.getBeiz());
        }
        if (this.isset_depFormLendingId) {
            dep_form_back.setDepFormLendingId(this.getDepFormLendingId());
        }
        return dep_form_back;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackGoods.java
New file
@@ -0,0 +1,216 @@
package com.consum.model.po;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
/**
 * è¡¨å:DEP_FORM_BACK_GOODS *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class DepFormBackGoods extends BasePo<DepFormBackGoods> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    // ä¸»é”®
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
    // å±žæ€§åˆ—表
    private Long depFormBackId = null;
    @JsonIgnore
    protected boolean isset_depFormBackId = false;
    private String unit = null;
    @JsonIgnore
    protected boolean isset_unit = false;
    private Integer backCounts = null;
    @JsonIgnore
    protected boolean isset_backCounts = false;
    private Integer initCount = null;
    @JsonIgnore
    protected boolean isset_initCount = false;
    private Long depFormLendingGoodsId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingGoodsId = false;
    private Integer endCount = null;
    @JsonIgnore
    protected boolean isset_endCount = false;
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormBackGoods() {
    }
    /**
     * æ ¹æ®ä¸»é”®æž„造对象
     */
    public DepFormBackGoods(Long id) {
        this.setId(id);
    }
    /**
     * è®¾ç½®ä¸»é”®å€¼
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
    public Long getDepFormBackId() {
        return this.depFormBackId;
    }
    public void setDepFormBackId(Long depFormBackId) {
        this.depFormBackId = depFormBackId;
        this.isset_depFormBackId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormBackId() {
        return this.depFormBackId == null;
    }
    public String getUnit() {
        return this.unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
        this.isset_unit = true;
    }
    @JsonIgnore
    public boolean isEmptyUnit() {
        return this.unit == null || this.unit.length() == 0;
    }
    public Integer getBackCounts() {
        return this.backCounts;
    }
    public void setBackCounts(Integer backCounts) {
        this.backCounts = backCounts;
        this.isset_backCounts = true;
    }
    @JsonIgnore
    public boolean isEmptyBackCounts() {
        return this.backCounts == null;
    }
    public Integer getInitCount() {
        return this.initCount;
    }
    public void setInitCount(Integer initCount) {
        this.initCount = initCount;
        this.isset_initCount = true;
    }
    @JsonIgnore
    public boolean isEmptyInitCount() {
        return this.initCount == null;
    }
    public Long getDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId;
    }
    public void setDepFormLendingGoodsId(Long depFormLendingGoodsId) {
        this.depFormLendingGoodsId = depFormLendingGoodsId;
        this.isset_depFormLendingGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId == null;
    }
    public Integer getEndCount() {
        return this.endCount;
    }
    public void setEndCount(Integer endCount) {
        this.endCount = endCount;
        this.isset_endCount = true;
    }
    @JsonIgnore
    public boolean isEmptyEndCount() {
        return this.endCount == null;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("depFormBackId=").append(this.depFormBackId)
                .append("unit=").append(this.unit)
                .append("backCounts=").append(this.backCounts)
                .append("initCount=").append(this.initCount)
                .append("depFormLendingGoodsId=").append(this.depFormLendingGoodsId)
                .append("endCount=").append(this.endCount)
                .toString();
    }
    /**
     * å…‹éš†
     */
    public DepFormBackGoods $clone() {
        DepFormBackGoods dep_form_back_goods = new DepFormBackGoods();
        // æ•°æ®åº“名称
        //dep_form_back_goods.setDatabaseName_(this.getDatabaseName_());
        // ä¸»é”®
        if (this.isset_id) {
            dep_form_back_goods.setId(this.getId());
        }
        // æ™®é€šå±žæ€§
        if (this.isset_depFormBackId) {
            dep_form_back_goods.setDepFormBackId(this.getDepFormBackId());
        }
        if (this.isset_unit) {
            dep_form_back_goods.setUnit(this.getUnit());
        }
        if (this.isset_backCounts) {
            dep_form_back_goods.setBackCounts(this.getBackCounts());
        }
        if (this.isset_initCount) {
            dep_form_back_goods.setInitCount(this.getInitCount());
        }
        if (this.isset_depFormLendingGoodsId) {
            dep_form_back_goods.setDepFormLendingGoodsId(this.getDepFormLendingGoodsId());
        }
        if (this.isset_endCount) {
            dep_form_back_goods.setEndCount(this.getEndCount());
        }
        return dep_form_back_goods;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackGoods_mapper.java
New file
@@ -0,0 +1,301 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_BACK_GOODS *
 * @author genrator
 */
public class DepFormBackGoods_mapper extends DepFormBackGoods implements BaseMapper<DepFormBackGoods> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormBackGoods> ROW_MAPPER = new DepFormBackGoodsRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String DepFormBackId = "dep_form_back_id";
    public static final String Unit = "unit";
    public static final String BackCounts = "back_counts";
    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 DepFormBackGoods_mapper(DepFormBackGoods depFormBackGoods) {
        if (depFormBackGoods == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormBackGoods.isset_id) {
            this.setId(depFormBackGoods.getId());
        }
        //普通属性
        if (depFormBackGoods.isset_depFormBackId) {
            this.setDepFormBackId(depFormBackGoods.getDepFormBackId());
        }
        if (depFormBackGoods.isset_unit) {
            this.setUnit(depFormBackGoods.getUnit());
        }
        if (depFormBackGoods.isset_backCounts) {
            this.setBackCounts(depFormBackGoods.getBackCounts());
        }
        if (depFormBackGoods.isset_initCount) {
            this.setInitCount(depFormBackGoods.getInitCount());
        }
        if (depFormBackGoods.isset_depFormLendingGoodsId) {
            this.setDepFormLendingGoodsId(depFormBackGoods.getDepFormLendingGoodsId());
        }
        if (depFormBackGoods.isset_endCount) {
            this.setEndCount(depFormBackGoods.getEndCount());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_back_goods.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_back_goods";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(DepFormBackId, this.getDepFormBackId(), this.isset_depFormBackId);
        ib.set(Unit, this.getUnit(), this.isset_unit);
        ib.set(BackCounts, this.getBackCounts(), this.isset_backCounts);
        ib.set(InitCount, this.getInitCount(), this.isset_initCount);
        ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ib.set(EndCount, this.getEndCount(), this.isset_endCount);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(DepFormBackId, this.getDepFormBackId(), this.isset_depFormBackId);
        ub.set(Unit, this.getUnit(), this.isset_unit);
        ub.set(BackCounts, this.getBackCounts(), this.isset_backCounts);
        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.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(DepFormBackId, this.getDepFormBackId(), this.isset_depFormBackId);
        ub.set(Unit, this.getUnit(), this.isset_unit);
        ub.set(BackCounts, this.getBackCounts(), this.isset_backCounts);
        ub.set(InitCount, this.getInitCount(), this.isset_initCount);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(EndCount, this.getEndCount(), this.isset_endCount);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(DepFormBackId, this.getDepFormBackId(), this.isset_depFormBackId);
        ub.set(Unit, this.getUnit(), this.isset_unit);
        ub.set(BackCounts, this.getBackCounts(), this.isset_backCounts);
        ub.set(InitCount, this.getInitCount(), this.isset_initCount);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(EndCount, this.getEndCount(), this.isset_endCount);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormBackGoods mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormBackGoods toDepFormBackGoods() {
        return super.$clone();
    }
}
/**
 * dep_form_back_goods RowMapper
 *
 * @author genrator
 */
class DepFormBackGoodsRowMapper implements RowMapper<DepFormBackGoods> {
    @Override
    public DepFormBackGoods mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormBackGoods dep_form_back_goods = new DepFormBackGoods();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.Id);
        if (columnIndex > 0) {
            dep_form_back_goods.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.DepFormBackId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_goods.setDepFormBackId(null);
            } else {
                dep_form_back_goods.setDepFormBackId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.Unit);
        if (columnIndex > 0) {
            dep_form_back_goods.setUnit(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.BackCounts);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_goods.setBackCounts(null);
            } else {
                dep_form_back_goods.setBackCounts(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.InitCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_goods.setInitCount(null);
            } else {
                dep_form_back_goods.setInitCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.DepFormLendingGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_goods.setDepFormLendingGoodsId(null);
            } else {
                dep_form_back_goods.setDepFormLendingGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackGoods_mapper.EndCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_goods.setEndCount(null);
            } else {
                dep_form_back_goods.setEndCount(rs.getInt(columnIndex));
            }
        }
        return dep_form_back_goods;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackModel.java
New file
@@ -0,0 +1,282 @@
package com.consum.model.po;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
/**
 * è¡¨å:DEP_FORM_BACK_MODEL *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class DepFormBackModel extends BasePo<DepFormBackModel> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    // ä¸»é”®
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
    // å±žæ€§åˆ—表
    private Long depFormBackGoodsId = null;
    @JsonIgnore
    protected boolean isset_depFormBackGoodsId = false;
    private Long depFormBackId = null;
    @JsonIgnore
    protected boolean isset_depFormBackId = false;
    private Long whGoodsDetailsId = null;
    @JsonIgnore
    protected boolean isset_whGoodsDetailsId = false;
    private String usingGoodsHisId = null;
    @JsonIgnore
    protected boolean isset_usingGoodsHisId = false;
    private Long whGoodsId = null;
    @JsonIgnore
    protected boolean isset_whGoodsId = false;
    private Integer counts = null;
    @JsonIgnore
    protected boolean isset_counts = false;
    private Long depFormLendingModelId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingModelId = false;
    private Long depFormLendingGoodsId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingGoodsId = false;
    private Long depFormLendingId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingId = false;
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormBackModel() {
    }
    /**
     * æ ¹æ®ä¸»é”®æž„造对象
     */
    public DepFormBackModel(Long id) {
        this.setId(id);
    }
    /**
     * è®¾ç½®ä¸»é”®å€¼
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
    public Long getDepFormBackGoodsId() {
        return this.depFormBackGoodsId;
    }
    public void setDepFormBackGoodsId(Long depFormBackGoodsId) {
        this.depFormBackGoodsId = depFormBackGoodsId;
        this.isset_depFormBackGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormBackGoodsId() {
        return this.depFormBackGoodsId == null;
    }
    public Long getDepFormBackId() {
        return this.depFormBackId;
    }
    public void setDepFormBackId(Long depFormBackId) {
        this.depFormBackId = depFormBackId;
        this.isset_depFormBackId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormBackId() {
        return this.depFormBackId == null;
    }
    public Long getWhGoodsDetailsId() {
        return this.whGoodsDetailsId;
    }
    public void setWhGoodsDetailsId(Long whGoodsDetailsId) {
        this.whGoodsDetailsId = whGoodsDetailsId;
        this.isset_whGoodsDetailsId = true;
    }
    @JsonIgnore
    public boolean isEmptyWhGoodsDetailsId() {
        return this.whGoodsDetailsId == null;
    }
    public String getUsingGoodsHisId() {
        return this.usingGoodsHisId;
    }
    public void setUsingGoodsHisId(String usingGoodsHisId) {
        this.usingGoodsHisId = usingGoodsHisId;
        this.isset_usingGoodsHisId = true;
    }
    @JsonIgnore
    public boolean isEmptyUsingGoodsHisId() {
        return this.usingGoodsHisId == null || this.usingGoodsHisId.length() == 0;
    }
    public Long getWhGoodsId() {
        return this.whGoodsId;
    }
    public void setWhGoodsId(Long whGoodsId) {
        this.whGoodsId = whGoodsId;
        this.isset_whGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyWhGoodsId() {
        return this.whGoodsId == null;
    }
    public Integer getCounts() {
        return this.counts;
    }
    public void setCounts(Integer counts) {
        this.counts = counts;
        this.isset_counts = true;
    }
    @JsonIgnore
    public boolean isEmptyCounts() {
        return this.counts == null;
    }
    public Long getDepFormLendingModelId() {
        return this.depFormLendingModelId;
    }
    public void setDepFormLendingModelId(Long depFormLendingModelId) {
        this.depFormLendingModelId = depFormLendingModelId;
        this.isset_depFormLendingModelId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingModelId() {
        return this.depFormLendingModelId == null;
    }
    public Long getDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId;
    }
    public void setDepFormLendingGoodsId(Long depFormLendingGoodsId) {
        this.depFormLendingGoodsId = depFormLendingGoodsId;
        this.isset_depFormLendingGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId == null;
    }
    public Long getDepFormLendingId() {
        return this.depFormLendingId;
    }
    public void setDepFormLendingId(Long depFormLendingId) {
        this.depFormLendingId = depFormLendingId;
        this.isset_depFormLendingId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingId() {
        return this.depFormLendingId == null;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("depFormBackGoodsId=").append(this.depFormBackGoodsId)
                .append("depFormBackId=").append(this.depFormBackId)
                .append("whGoodsDetailsId=").append(this.whGoodsDetailsId)
                .append("usingGoodsHisId=").append(this.usingGoodsHisId)
                .append("whGoodsId=").append(this.whGoodsId)
                .append("counts=").append(this.counts)
                .append("depFormLendingModelId=").append(this.depFormLendingModelId)
                .append("depFormLendingGoodsId=").append(this.depFormLendingGoodsId)
                .append("depFormLendingId=").append(this.depFormLendingId)
                .toString();
    }
    /**
     * å…‹éš†
     */
    public DepFormBackModel $clone() {
        DepFormBackModel dep_form_back_model = new DepFormBackModel();
        // æ•°æ®åº“名称
        //dep_form_back_model.setDatabaseName_(this.getDatabaseName_());
        // ä¸»é”®
        if (this.isset_id) {
            dep_form_back_model.setId(this.getId());
        }
        // æ™®é€šå±žæ€§
        if (this.isset_depFormBackGoodsId) {
            dep_form_back_model.setDepFormBackGoodsId(this.getDepFormBackGoodsId());
        }
        if (this.isset_depFormBackId) {
            dep_form_back_model.setDepFormBackId(this.getDepFormBackId());
        }
        if (this.isset_whGoodsDetailsId) {
            dep_form_back_model.setWhGoodsDetailsId(this.getWhGoodsDetailsId());
        }
        if (this.isset_usingGoodsHisId) {
            dep_form_back_model.setUsingGoodsHisId(this.getUsingGoodsHisId());
        }
        if (this.isset_whGoodsId) {
            dep_form_back_model.setWhGoodsId(this.getWhGoodsId());
        }
        if (this.isset_counts) {
            dep_form_back_model.setCounts(this.getCounts());
        }
        if (this.isset_depFormLendingModelId) {
            dep_form_back_model.setDepFormLendingModelId(this.getDepFormLendingModelId());
        }
        if (this.isset_depFormLendingGoodsId) {
            dep_form_back_model.setDepFormLendingGoodsId(this.getDepFormLendingGoodsId());
        }
        if (this.isset_depFormLendingId) {
            dep_form_back_model.setDepFormLendingId(this.getDepFormLendingId());
        }
        return dep_form_back_model;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBackModel_mapper.java
New file
@@ -0,0 +1,349 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_BACK_MODEL *
 * @author genrator
 */
public class DepFormBackModel_mapper extends DepFormBackModel implements BaseMapper<DepFormBackModel> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormBackModel> ROW_MAPPER = new DepFormBackModelRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String DepFormBackGoodsId = "dep_form_back_goods_id";
    public static final String DepFormBackId = "dep_form_back_id";
    public static final String WhGoodsDetailsId = "wh_goods_details_id";
    public static final String UsingGoodsHisId = "using_goods_his_id";
    public static final String WhGoodsId = "wh_goods_id";
    public static final String Counts = "counts";
    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 DepFormBackModel_mapper(DepFormBackModel depFormBackModel) {
        if (depFormBackModel == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormBackModel.isset_id) {
            this.setId(depFormBackModel.getId());
        }
        //普通属性
        if (depFormBackModel.isset_depFormBackGoodsId) {
            this.setDepFormBackGoodsId(depFormBackModel.getDepFormBackGoodsId());
        }
        if (depFormBackModel.isset_depFormBackId) {
            this.setDepFormBackId(depFormBackModel.getDepFormBackId());
        }
        if (depFormBackModel.isset_whGoodsDetailsId) {
            this.setWhGoodsDetailsId(depFormBackModel.getWhGoodsDetailsId());
        }
        if (depFormBackModel.isset_usingGoodsHisId) {
            this.setUsingGoodsHisId(depFormBackModel.getUsingGoodsHisId());
        }
        if (depFormBackModel.isset_whGoodsId) {
            this.setWhGoodsId(depFormBackModel.getWhGoodsId());
        }
        if (depFormBackModel.isset_counts) {
            this.setCounts(depFormBackModel.getCounts());
        }
        if (depFormBackModel.isset_depFormLendingModelId) {
            this.setDepFormLendingModelId(depFormBackModel.getDepFormLendingModelId());
        }
        if (depFormBackModel.isset_depFormLendingGoodsId) {
            this.setDepFormLendingGoodsId(depFormBackModel.getDepFormLendingGoodsId());
        }
        if (depFormBackModel.isset_depFormLendingId) {
            this.setDepFormLendingId(depFormBackModel.getDepFormLendingId());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_back_model.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_back_model";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(DepFormBackGoodsId, this.getDepFormBackGoodsId(), this.isset_depFormBackGoodsId);
        ib.set(DepFormBackId, this.getDepFormBackId(), this.isset_depFormBackId);
        ib.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
        ib.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ib.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ib.set(Counts, this.getCounts(), this.isset_counts);
        ib.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId);
        ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(DepFormBackGoodsId, this.getDepFormBackGoodsId(), this.isset_depFormBackGoodsId);
        ub.set(DepFormBackId, this.getDepFormBackId(), this.isset_depFormBackId);
        ub.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
        ub.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(Counts, this.getCounts(), this.isset_counts);
        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.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(DepFormBackGoodsId, this.getDepFormBackGoodsId(), this.isset_depFormBackGoodsId);
        ub.set(DepFormBackId, this.getDepFormBackId(), this.isset_depFormBackId);
        ub.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
        ub.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(DepFormBackGoodsId, this.getDepFormBackGoodsId(), this.isset_depFormBackGoodsId);
        ub.set(DepFormBackId, this.getDepFormBackId(), this.isset_depFormBackId);
        ub.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
        ub.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormBackModel mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormBackModel toDepFormBackModel() {
        return super.$clone();
    }
}
/**
 * dep_form_back_model RowMapper
 *
 * @author genrator
 */
class DepFormBackModelRowMapper implements RowMapper<DepFormBackModel> {
    @Override
    public DepFormBackModel mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormBackModel dep_form_back_model = new DepFormBackModel();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.Id);
        if (columnIndex > 0) {
            dep_form_back_model.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.DepFormBackGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_model.setDepFormBackGoodsId(null);
            } else {
                dep_form_back_model.setDepFormBackGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.DepFormBackId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_model.setDepFormBackId(null);
            } else {
                dep_form_back_model.setDepFormBackId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.WhGoodsDetailsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_model.setWhGoodsDetailsId(null);
            } else {
                dep_form_back_model.setWhGoodsDetailsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.UsingGoodsHisId);
        if (columnIndex > 0) {
            dep_form_back_model.setUsingGoodsHisId(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.WhGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_model.setWhGoodsId(null);
            } else {
                dep_form_back_model.setWhGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.Counts);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_model.setCounts(null);
            } else {
                dep_form_back_model.setCounts(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.DepFormLendingModelId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_model.setDepFormLendingModelId(null);
            } else {
                dep_form_back_model.setDepFormLendingModelId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.DepFormLendingGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_model.setDepFormLendingGoodsId(null);
            } else {
                dep_form_back_model.setDepFormLendingGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBackModel_mapper.DepFormLendingId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back_model.setDepFormLendingId(null);
            } else {
                dep_form_back_model.setDepFormLendingId(rs.getLong(columnIndex));
            }
        }
        return dep_form_back_model;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormBack_mapper.java
New file
@@ -0,0 +1,393 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_BACK *
 * @author genrator
 */
public class DepFormBack_mapper extends DepFormBack implements BaseMapper<DepFormBack> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormBack> ROW_MAPPER = new DepFormBackRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String BusinessFormCode = "business_form_code";
    public static final String WarehouseId = "warehouse_id";
    public static final String WarehouseName = "warehouse_name";
    public static final String OperatorId = "operator_id";
    public static final String OperatorName = "operator_name";
    public static final String DealTime = "deal_time";
    public static final String DepartmentId = "department_id";
    public static final String DepartmentName = "department_name";
    public static final String AgencyId = "agency_id";
    public static final String AgencyName = "agency_name";
    public static final String States = "states";
    public static final String Beiz = "beiz";
    public static final String DepFormLendingId = "dep_form_lending_id";
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormBack_mapper(DepFormBack depFormBack) {
        if (depFormBack == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormBack.isset_id) {
            this.setId(depFormBack.getId());
        }
        //普通属性
        if (depFormBack.isset_businessFormCode) {
            this.setBusinessFormCode(depFormBack.getBusinessFormCode());
        }
        if (depFormBack.isset_warehouseId) {
            this.setWarehouseId(depFormBack.getWarehouseId());
        }
        if (depFormBack.isset_warehouseName) {
            this.setWarehouseName(depFormBack.getWarehouseName());
        }
        if (depFormBack.isset_operatorId) {
            this.setOperatorId(depFormBack.getOperatorId());
        }
        if (depFormBack.isset_operatorName) {
            this.setOperatorName(depFormBack.getOperatorName());
        }
        if (depFormBack.isset_dealTime) {
            this.setDealTime(depFormBack.getDealTime());
        }
        if (depFormBack.isset_departmentId) {
            this.setDepartmentId(depFormBack.getDepartmentId());
        }
        if (depFormBack.isset_departmentName) {
            this.setDepartmentName(depFormBack.getDepartmentName());
        }
        if (depFormBack.isset_agencyId) {
            this.setAgencyId(depFormBack.getAgencyId());
        }
        if (depFormBack.isset_agencyName) {
            this.setAgencyName(depFormBack.getAgencyName());
        }
        if (depFormBack.isset_states) {
            this.setStates(depFormBack.getStates());
        }
        if (depFormBack.isset_beiz) {
            this.setBeiz(depFormBack.getBeiz());
        }
        if (depFormBack.isset_depFormLendingId) {
            this.setDepFormLendingId(depFormBack.getDepFormLendingId());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_back.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_back";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ib.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ib.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ib.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ib.set(States, this.getStates(), this.isset_states);
        ib.set(Beiz, this.getBeiz(), this.isset_beiz);
        ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        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(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, business_form_code, warehouse_id, warehouse_name, operator_id, operator_name, deal_time, department_id, department_name, agency_id, agency_name, states, beiz, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, business_form_code, warehouse_id, warehouse_name, operator_id, operator_name, deal_time, department_id, department_name, agency_id, agency_name, states, beiz, dep_form_lending_id from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormBack mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormBack toDepFormBack() {
        return super.$clone();
    }
}
/**
 * dep_form_back RowMapper
 *
 * @author genrator
 */
class DepFormBackRowMapper implements RowMapper<DepFormBack> {
    @Override
    public DepFormBack mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormBack dep_form_back = new DepFormBack();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.Id);
        if (columnIndex > 0) {
            dep_form_back.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.BusinessFormCode);
        if (columnIndex > 0) {
            dep_form_back.setBusinessFormCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.WarehouseId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back.setWarehouseId(null);
            } else {
                dep_form_back.setWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.WarehouseName);
        if (columnIndex > 0) {
            dep_form_back.setWarehouseName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.OperatorId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back.setOperatorId(null);
            } else {
                dep_form_back.setOperatorId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.OperatorName);
        if (columnIndex > 0) {
            dep_form_back.setOperatorName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.DealTime);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back.setDealTime(null);
            } else {
                dep_form_back.setDealTime(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.DepartmentId);
        if (columnIndex > 0) {
            dep_form_back.setDepartmentId(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.DepartmentName);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back.setDepartmentName(null);
            } else {
                dep_form_back.setDepartmentName(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.AgencyId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back.setAgencyId(null);
            } else {
                dep_form_back.setAgencyId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.AgencyName);
        if (columnIndex > 0) {
            dep_form_back.setAgencyName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.States);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back.setStates(null);
            } else {
                dep_form_back.setStates(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.Beiz);
        if (columnIndex > 0) {
            dep_form_back.setBeiz(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormBack_mapper.DepFormLendingId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_back.setDepFormLendingId(null);
            } else {
                dep_form_back.setDepFormLendingId(rs.getLong(columnIndex));
            }
        }
        return dep_form_back;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLending.java
@@ -20,6 +20,10 @@
    protected boolean isset_id = false;
    // å±žæ€§åˆ—表
    private String businessFormName = null;
    @JsonIgnore
    protected boolean isset_businessFormName = false;
    private String businessFormCode = null;
    @JsonIgnore
    protected boolean isset_businessFormCode = false;
@@ -68,6 +72,10 @@
    @JsonIgnore
    protected boolean isset_uploadFiles = false;
    private Integer usingCount = null;
    @JsonIgnore
    protected boolean isset_usingCount = false;
    private Long warehouseId = null;
    @JsonIgnore
    protected boolean isset_warehouseId = false;
@@ -109,6 +117,20 @@
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
    public String getBusinessFormName() {
        return this.businessFormName;
    }
    public void setBusinessFormName(String businessFormName) {
        this.businessFormName = businessFormName;
        this.isset_businessFormName = true;
    }
    @JsonIgnore
    public boolean isEmptyBusinessFormName() {
        return this.businessFormName == null || this.businessFormName.length() == 0;
    }
    public String getBusinessFormCode() {
@@ -279,6 +301,20 @@
        return this.uploadFiles == null || this.uploadFiles.length() == 0;
    }
    public Integer getUsingCount() {
        return this.usingCount;
    }
    public void setUsingCount(Integer usingCount) {
        this.usingCount = usingCount;
        this.isset_usingCount = true;
    }
    @JsonIgnore
    public boolean isEmptyUsingCount() {
        return this.usingCount == null;
    }
    public Long getWarehouseId() {
        return this.warehouseId;
    }
@@ -314,6 +350,7 @@
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("businessFormName=").append(this.businessFormName)
                .append("businessFormCode=").append(this.businessFormCode)
                .append("operatorId=").append(this.operatorId)
                .append("operatorName=").append(this.operatorName)
@@ -326,6 +363,7 @@
                .append("departmentName=").append(this.departmentName)
                .append("beiz=").append(this.beiz)
                .append("uploadFiles=").append(this.uploadFiles)
                .append("usingCount=").append(this.usingCount)
                .append("warehouseId=").append(this.warehouseId)
                .append("warehouseName=").append(this.warehouseName)
                .toString();
@@ -345,6 +383,9 @@
            dep_form_lending.setId(this.getId());
        }
        // æ™®é€šå±žæ€§
        if (this.isset_businessFormName) {
            dep_form_lending.setBusinessFormName(this.getBusinessFormName());
        }
        if (this.isset_businessFormCode) {
            dep_form_lending.setBusinessFormCode(this.getBusinessFormCode());
        }
@@ -381,6 +422,9 @@
        if (this.isset_uploadFiles) {
            dep_form_lending.setUploadFiles(this.getUploadFiles());
        }
        if (this.isset_usingCount) {
            dep_form_lending.setUsingCount(this.getUsingCount());
        }
        if (this.isset_warehouseId) {
            dep_form_lending.setWarehouseId(this.getWarehouseId());
        }
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingGoods.java
@@ -64,6 +64,14 @@
    @JsonIgnore
    protected boolean isset_usingCount = false;
    private Long warehouseId = null;
    @JsonIgnore
    protected boolean isset_warehouseId = false;
    private String warehouseName = null;
    @JsonIgnore
    protected boolean isset_warehouseName = false;
    /**
     * é»˜è®¤æž„造函数
     */
@@ -253,6 +261,34 @@
        return this.usingCount == null;
    }
    public Long getWarehouseId() {
        return this.warehouseId;
    }
    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
        this.isset_warehouseId = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseId() {
        return this.warehouseId == null;
    }
    public String getWarehouseName() {
        return this.warehouseName;
    }
    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
        this.isset_warehouseName = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseName() {
        return this.warehouseName == null || this.warehouseName.length() == 0;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
@@ -271,6 +307,8 @@
                .append("goodsUserPhone=").append(this.goodsUserPhone)
                .append("goodsUserName=").append(this.goodsUserName)
                .append("usingCount=").append(this.usingCount)
                .append("warehouseId=").append(this.warehouseId)
                .append("warehouseName=").append(this.warehouseName)
                .toString();
    }
@@ -321,6 +359,12 @@
        if (this.isset_usingCount) {
            dep_form_lending_goods.setUsingCount(this.getUsingCount());
        }
        if (this.isset_warehouseId) {
            dep_form_lending_goods.setWarehouseId(this.getWarehouseId());
        }
        if (this.isset_warehouseName) {
            dep_form_lending_goods.setWarehouseName(this.getWarehouseName());
        }
        return dep_form_lending_goods;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingGoodsUser.java
New file
@@ -0,0 +1,260 @@
package com.consum.model.po;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
/**
 * è¡¨å:DEP_FORM_LENDING_GOODS_USER *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class DepFormLendingGoodsUser extends BasePo<DepFormLendingGoodsUser> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    // ä¸»é”®
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
    // å±žæ€§åˆ—表
    private Long goodsUserPhone = null;
    @JsonIgnore
    protected boolean isset_goodsUserPhone = false;
    private String goodsUserName = null;
    @JsonIgnore
    protected boolean isset_goodsUserName = false;
    private Long nowUserPhone = null;
    @JsonIgnore
    protected boolean isset_nowUserPhone = false;
    private String nowUserName = null;
    @JsonIgnore
    protected boolean isset_nowUserName = false;
    private Long operatorId = null;
    @JsonIgnore
    protected boolean isset_operatorId = false;
    private String operatorName = null;
    @JsonIgnore
    protected boolean isset_operatorName = false;
    private Long dealTime = null;
    @JsonIgnore
    protected boolean isset_dealTime = false;
    private Long depFormLendingGoodsId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingGoodsId = false;
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormLendingGoodsUser() {
    }
    /**
     * æ ¹æ®ä¸»é”®æž„造对象
     */
    public DepFormLendingGoodsUser(Long id) {
        this.setId(id);
    }
    /**
     * è®¾ç½®ä¸»é”®å€¼
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
    public Long getGoodsUserPhone() {
        return this.goodsUserPhone;
    }
    public void setGoodsUserPhone(Long goodsUserPhone) {
        this.goodsUserPhone = goodsUserPhone;
        this.isset_goodsUserPhone = true;
    }
    @JsonIgnore
    public boolean isEmptyGoodsUserPhone() {
        return this.goodsUserPhone == null;
    }
    public String getGoodsUserName() {
        return this.goodsUserName;
    }
    public void setGoodsUserName(String goodsUserName) {
        this.goodsUserName = goodsUserName;
        this.isset_goodsUserName = true;
    }
    @JsonIgnore
    public boolean isEmptyGoodsUserName() {
        return this.goodsUserName == null || this.goodsUserName.length() == 0;
    }
    public Long getNowUserPhone() {
        return this.nowUserPhone;
    }
    public void setNowUserPhone(Long nowUserPhone) {
        this.nowUserPhone = nowUserPhone;
        this.isset_nowUserPhone = true;
    }
    @JsonIgnore
    public boolean isEmptyNowUserPhone() {
        return this.nowUserPhone == null;
    }
    public String getNowUserName() {
        return this.nowUserName;
    }
    public void setNowUserName(String nowUserName) {
        this.nowUserName = nowUserName;
        this.isset_nowUserName = true;
    }
    @JsonIgnore
    public boolean isEmptyNowUserName() {
        return this.nowUserName == null || this.nowUserName.length() == 0;
    }
    public Long getOperatorId() {
        return this.operatorId;
    }
    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
        this.isset_operatorId = true;
    }
    @JsonIgnore
    public boolean isEmptyOperatorId() {
        return this.operatorId == null;
    }
    public String getOperatorName() {
        return this.operatorName;
    }
    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
        this.isset_operatorName = true;
    }
    @JsonIgnore
    public boolean isEmptyOperatorName() {
        return this.operatorName == null || this.operatorName.length() == 0;
    }
    public Long getDealTime() {
        return this.dealTime;
    }
    public void setDealTime(Long dealTime) {
        this.dealTime = dealTime;
        this.isset_dealTime = true;
    }
    @JsonIgnore
    public boolean isEmptyDealTime() {
        return this.dealTime == null;
    }
    public Long getDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId;
    }
    public void setDepFormLendingGoodsId(Long depFormLendingGoodsId) {
        this.depFormLendingGoodsId = depFormLendingGoodsId;
        this.isset_depFormLendingGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId == null;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("goodsUserPhone=").append(this.goodsUserPhone)
                .append("goodsUserName=").append(this.goodsUserName)
                .append("nowUserPhone=").append(this.nowUserPhone)
                .append("nowUserName=").append(this.nowUserName)
                .append("operatorId=").append(this.operatorId)
                .append("operatorName=").append(this.operatorName)
                .append("dealTime=").append(this.dealTime)
                .append("depFormLendingGoodsId=").append(this.depFormLendingGoodsId)
                .toString();
    }
    /**
     * å…‹éš†
     */
    public DepFormLendingGoodsUser $clone() {
        DepFormLendingGoodsUser dep_form_lending_goods_user = new DepFormLendingGoodsUser();
        // æ•°æ®åº“名称
        //dep_form_lending_goods_user.setDatabaseName_(this.getDatabaseName_());
        // ä¸»é”®
        if (this.isset_id) {
            dep_form_lending_goods_user.setId(this.getId());
        }
        // æ™®é€šå±žæ€§
        if (this.isset_goodsUserPhone) {
            dep_form_lending_goods_user.setGoodsUserPhone(this.getGoodsUserPhone());
        }
        if (this.isset_goodsUserName) {
            dep_form_lending_goods_user.setGoodsUserName(this.getGoodsUserName());
        }
        if (this.isset_nowUserPhone) {
            dep_form_lending_goods_user.setNowUserPhone(this.getNowUserPhone());
        }
        if (this.isset_nowUserName) {
            dep_form_lending_goods_user.setNowUserName(this.getNowUserName());
        }
        if (this.isset_operatorId) {
            dep_form_lending_goods_user.setOperatorId(this.getOperatorId());
        }
        if (this.isset_operatorName) {
            dep_form_lending_goods_user.setOperatorName(this.getOperatorName());
        }
        if (this.isset_dealTime) {
            dep_form_lending_goods_user.setDealTime(this.getDealTime());
        }
        if (this.isset_depFormLendingGoodsId) {
            dep_form_lending_goods_user.setDepFormLendingGoodsId(this.getDepFormLendingGoodsId());
        }
        return dep_form_lending_goods_user;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingGoodsUser_mapper.java
New file
@@ -0,0 +1,325 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_LENDING_GOODS_USER *
 * @author genrator
 */
public class DepFormLendingGoodsUser_mapper extends DepFormLendingGoodsUser implements BaseMapper<DepFormLendingGoodsUser> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormLendingGoodsUser> ROW_MAPPER = new DepFormLendingGoodsUserRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String GoodsUserPhone = "goods_user_phone";
    public static final String GoodsUserName = "goods_user_name";
    public static final String NowUserPhone = "now_user_phone";
    public static final String NowUserName = "now_user_name";
    public static final String OperatorId = "operator_id";
    public static final String OperatorName = "operator_name";
    public static final String DealTime = "deal_time";
    public static final String DepFormLendingGoodsId = "dep_form_lending_goods_id";
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormLendingGoodsUser_mapper(DepFormLendingGoodsUser depFormLendingGoodsUser) {
        if (depFormLendingGoodsUser == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormLendingGoodsUser.isset_id) {
            this.setId(depFormLendingGoodsUser.getId());
        }
        //普通属性
        if (depFormLendingGoodsUser.isset_goodsUserPhone) {
            this.setGoodsUserPhone(depFormLendingGoodsUser.getGoodsUserPhone());
        }
        if (depFormLendingGoodsUser.isset_goodsUserName) {
            this.setGoodsUserName(depFormLendingGoodsUser.getGoodsUserName());
        }
        if (depFormLendingGoodsUser.isset_nowUserPhone) {
            this.setNowUserPhone(depFormLendingGoodsUser.getNowUserPhone());
        }
        if (depFormLendingGoodsUser.isset_nowUserName) {
            this.setNowUserName(depFormLendingGoodsUser.getNowUserName());
        }
        if (depFormLendingGoodsUser.isset_operatorId) {
            this.setOperatorId(depFormLendingGoodsUser.getOperatorId());
        }
        if (depFormLendingGoodsUser.isset_operatorName) {
            this.setOperatorName(depFormLendingGoodsUser.getOperatorName());
        }
        if (depFormLendingGoodsUser.isset_dealTime) {
            this.setDealTime(depFormLendingGoodsUser.getDealTime());
        }
        if (depFormLendingGoodsUser.isset_depFormLendingGoodsId) {
            this.setDepFormLendingGoodsId(depFormLendingGoodsUser.getDepFormLendingGoodsId());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_lending_goods_user.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_lending_goods_user";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(GoodsUserPhone, this.getGoodsUserPhone(), this.isset_goodsUserPhone);
        ib.set(GoodsUserName, this.getGoodsUserName(), this.isset_goodsUserName);
        ib.set(NowUserPhone, this.getNowUserPhone(), this.isset_nowUserPhone);
        ib.set(NowUserName, this.getNowUserName(), this.isset_nowUserName);
        ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ib.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(GoodsUserPhone, this.getGoodsUserPhone(), this.isset_goodsUserPhone);
        ub.set(GoodsUserName, this.getGoodsUserName(), this.isset_goodsUserName);
        ub.set(NowUserPhone, this.getNowUserPhone(), this.isset_nowUserPhone);
        ub.set(NowUserName, this.getNowUserName(), this.isset_nowUserName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        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(GoodsUserPhone, this.getGoodsUserPhone(), this.isset_goodsUserPhone);
        ub.set(GoodsUserName, this.getGoodsUserName(), this.isset_goodsUserName);
        ub.set(NowUserPhone, this.getNowUserPhone(), this.isset_nowUserPhone);
        ub.set(NowUserName, this.getNowUserName(), this.isset_nowUserName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(GoodsUserPhone, this.getGoodsUserPhone(), this.isset_goodsUserPhone);
        ub.set(GoodsUserName, this.getGoodsUserName(), this.isset_goodsUserName);
        ub.set(NowUserPhone, this.getNowUserPhone(), this.isset_nowUserPhone);
        ub.set(NowUserName, this.getNowUserName(), this.isset_nowUserName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, goods_user_phone, goods_user_name, now_user_phone, now_user_name, operator_id, operator_name, deal_time, dep_form_lending_goods_id from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, goods_user_phone, goods_user_name, now_user_phone, now_user_name, operator_id, operator_name, deal_time, dep_form_lending_goods_id from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormLendingGoodsUser mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormLendingGoodsUser toDepFormLendingGoodsUser() {
        return super.$clone();
    }
}
/**
 * dep_form_lending_goods_user RowMapper
 *
 * @author genrator
 */
class DepFormLendingGoodsUserRowMapper implements RowMapper<DepFormLendingGoodsUser> {
    @Override
    public DepFormLendingGoodsUser mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormLendingGoodsUser dep_form_lending_goods_user = new DepFormLendingGoodsUser();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoodsUser_mapper.Id);
        if (columnIndex > 0) {
            dep_form_lending_goods_user.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoodsUser_mapper.GoodsUserPhone);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods_user.setGoodsUserPhone(null);
            } else {
                dep_form_lending_goods_user.setGoodsUserPhone(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoodsUser_mapper.GoodsUserName);
        if (columnIndex > 0) {
            dep_form_lending_goods_user.setGoodsUserName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoodsUser_mapper.NowUserPhone);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods_user.setNowUserPhone(null);
            } else {
                dep_form_lending_goods_user.setNowUserPhone(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoodsUser_mapper.NowUserName);
        if (columnIndex > 0) {
            dep_form_lending_goods_user.setNowUserName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoodsUser_mapper.OperatorId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods_user.setOperatorId(null);
            } else {
                dep_form_lending_goods_user.setOperatorId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoodsUser_mapper.OperatorName);
        if (columnIndex > 0) {
            dep_form_lending_goods_user.setOperatorName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoodsUser_mapper.DealTime);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods_user.setDealTime(null);
            } else {
                dep_form_lending_goods_user.setDealTime(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoodsUser_mapper.DepFormLendingGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods_user.setDepFormLendingGoodsId(null);
            } else {
                dep_form_lending_goods_user.setDepFormLendingGoodsId(rs.getLong(columnIndex));
            }
        }
        return dep_form_lending_goods_user;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingGoods_mapper.java
New file
@@ -0,0 +1,393 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_LENDING_GOODS *
 * @author genrator
 */
public class DepFormLendingGoods_mapper extends DepFormLendingGoods implements BaseMapper<DepFormLendingGoods> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormLendingGoods> ROW_MAPPER = new DepFormLendingGoodsRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String Classification = "classification";
    public static final String BaseGoodsTemplateId = "base_goods_template_id";
    public static final String BaseGoodsTemplateName = "base_goods_template_name";
    public static final String DepFormLendingId = "dep_form_lending_id";
    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 Counts = "counts";
    public static final String GoodsUserPhone = "goods_user_phone";
    public static final String GoodsUserName = "goods_user_name";
    public static final String UsingCount = "using_count";
    public static final String WarehouseId = "warehouse_id";
    public static final String WarehouseName = "warehouse_name";
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormLendingGoods_mapper(DepFormLendingGoods depFormLendingGoods) {
        if (depFormLendingGoods == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormLendingGoods.isset_id) {
            this.setId(depFormLendingGoods.getId());
        }
        //普通属性
        if (depFormLendingGoods.isset_classification) {
            this.setClassification(depFormLendingGoods.getClassification());
        }
        if (depFormLendingGoods.isset_baseGoodsTemplateId) {
            this.setBaseGoodsTemplateId(depFormLendingGoods.getBaseGoodsTemplateId());
        }
        if (depFormLendingGoods.isset_baseGoodsTemplateName) {
            this.setBaseGoodsTemplateName(depFormLendingGoods.getBaseGoodsTemplateName());
        }
        if (depFormLendingGoods.isset_depFormLendingId) {
            this.setDepFormLendingId(depFormLendingGoods.getDepFormLendingId());
        }
        if (depFormLendingGoods.isset_unit) {
            this.setUnit(depFormLendingGoods.getUnit());
        }
        if (depFormLendingGoods.isset_baseGoodsModelsId) {
            this.setBaseGoodsModelsId(depFormLendingGoods.getBaseGoodsModelsId());
        }
        if (depFormLendingGoods.isset_baseGoodsModelsName) {
            this.setBaseGoodsModelsName(depFormLendingGoods.getBaseGoodsModelsName());
        }
        if (depFormLendingGoods.isset_counts) {
            this.setCounts(depFormLendingGoods.getCounts());
        }
        if (depFormLendingGoods.isset_goodsUserPhone) {
            this.setGoodsUserPhone(depFormLendingGoods.getGoodsUserPhone());
        }
        if (depFormLendingGoods.isset_goodsUserName) {
            this.setGoodsUserName(depFormLendingGoods.getGoodsUserName());
        }
        if (depFormLendingGoods.isset_usingCount) {
            this.setUsingCount(depFormLendingGoods.getUsingCount());
        }
        if (depFormLendingGoods.isset_warehouseId) {
            this.setWarehouseId(depFormLendingGoods.getWarehouseId());
        }
        if (depFormLendingGoods.isset_warehouseName) {
            this.setWarehouseName(depFormLendingGoods.getWarehouseName());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_lending_goods.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_lending_goods";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(Classification, this.getClassification(), this.isset_classification);
        ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ib.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        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(Counts, this.getCounts(), this.isset_counts);
        ib.set(GoodsUserPhone, this.getGoodsUserPhone(), this.isset_goodsUserPhone);
        ib.set(GoodsUserName, this.getGoodsUserName(), this.isset_goodsUserName);
        ib.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(Classification, this.getClassification(), this.isset_classification);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        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(Counts, this.getCounts(), this.isset_counts);
        ub.set(GoodsUserPhone, this.getGoodsUserPhone(), this.isset_goodsUserPhone);
        ub.set(GoodsUserName, this.getGoodsUserName(), this.isset_goodsUserName);
        ub.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        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();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(Classification, this.getClassification(), this.isset_classification);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        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(Counts, this.getCounts(), this.isset_counts);
        ub.set(GoodsUserPhone, this.getGoodsUserPhone(), this.isset_goodsUserPhone);
        ub.set(GoodsUserName, this.getGoodsUserName(), this.isset_goodsUserName);
        ub.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(Classification, this.getClassification(), this.isset_classification);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        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(Counts, this.getCounts(), this.isset_counts);
        ub.set(GoodsUserPhone, this.getGoodsUserPhone(), this.isset_goodsUserPhone);
        ub.set(GoodsUserName, this.getGoodsUserName(), this.isset_goodsUserName);
        ub.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        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>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, classification, base_goods_template_id, base_goods_template_name, dep_form_lending_id, unit, base_goods_models_id, base_goods_models_name, counts, goods_user_phone, goods_user_name, using_count, warehouse_id, warehouse_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, classification, base_goods_template_id, base_goods_template_name, dep_form_lending_id, unit, base_goods_models_id, base_goods_models_name, counts, goods_user_phone, goods_user_name, using_count, warehouse_id, warehouse_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormLendingGoods mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormLendingGoods toDepFormLendingGoods() {
        return super.$clone();
    }
}
/**
 * dep_form_lending_goods RowMapper
 *
 * @author genrator
 */
class DepFormLendingGoodsRowMapper implements RowMapper<DepFormLendingGoods> {
    @Override
    public DepFormLendingGoods mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormLendingGoods dep_form_lending_goods = new DepFormLendingGoods();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.Id);
        if (columnIndex > 0) {
            dep_form_lending_goods.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.Classification);
        if (columnIndex > 0) {
            dep_form_lending_goods.setClassification(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.BaseGoodsTemplateId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods.setBaseGoodsTemplateId(null);
            } else {
                dep_form_lending_goods.setBaseGoodsTemplateId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.BaseGoodsTemplateName);
        if (columnIndex > 0) {
            dep_form_lending_goods.setBaseGoodsTemplateName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.DepFormLendingId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods.setDepFormLendingId(null);
            } else {
                dep_form_lending_goods.setDepFormLendingId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.Unit);
        if (columnIndex > 0) {
            dep_form_lending_goods.setUnit(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.BaseGoodsModelsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods.setBaseGoodsModelsId(null);
            } else {
                dep_form_lending_goods.setBaseGoodsModelsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.BaseGoodsModelsName);
        if (columnIndex > 0) {
            dep_form_lending_goods.setBaseGoodsModelsName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.Counts);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods.setCounts(null);
            } else {
                dep_form_lending_goods.setCounts(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.GoodsUserPhone);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods.setGoodsUserPhone(null);
            } else {
                dep_form_lending_goods.setGoodsUserPhone(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.GoodsUserName);
        if (columnIndex > 0) {
            dep_form_lending_goods.setGoodsUserName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.UsingCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods.setUsingCount(null);
            } else {
                dep_form_lending_goods.setUsingCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.WarehouseId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_goods.setWarehouseId(null);
            } else {
                dep_form_lending_goods.setWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingGoods_mapper.WarehouseName);
        if (columnIndex > 0) {
            dep_form_lending_goods.setWarehouseName(rs.getString(columnIndex));
        }
        return dep_form_lending_goods;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingModel.java
@@ -32,17 +32,13 @@
    @JsonIgnore
    protected boolean isset_depFormLendingId = false;
    private Long depGoodsDetailsId = null;
    private Long whGoodsDetailsId = null;
    @JsonIgnore
    protected boolean isset_depGoodsDetailsId = false;
    protected boolean isset_whGoodsDetailsId = false;
    private Long goodsUserPhone = null;
    private Long usingGoodsHisId = null;
    @JsonIgnore
    protected boolean isset_goodsUserPhone = false;
    private String goodsUserName = null;
    @JsonIgnore
    protected boolean isset_goodsUserName = false;
    protected boolean isset_usingGoodsHisId = false;
    private Long nowUserPhone = null;
    @JsonIgnore
@@ -59,6 +55,62 @@
    private Long whGoodsId = null;
    @JsonIgnore
    protected boolean isset_whGoodsId = false;
    private Integer usingCount = null;
    @JsonIgnore
    protected boolean isset_usingCount = false;
    private Long warehouseId = null;
    @JsonIgnore
    protected boolean isset_warehouseId = false;
    private String warehouseName = null;
    @JsonIgnore
    protected boolean isset_warehouseName = false;
    private Long agencyId = null;
    @JsonIgnore
    protected boolean isset_agencyId = false;
    private String agencyName = null;
    @JsonIgnore
    protected boolean isset_agencyName = false;
    private String departmentId = null;
    @JsonIgnore
    protected boolean isset_departmentId = false;
    private Long departmentName = null;
    @JsonIgnore
    protected boolean isset_departmentName = false;
    private Long baseGoodsTemplateId = null;
    @JsonIgnore
    protected boolean isset_baseGoodsTemplateId = false;
    private String baseGoodsTemplateName = null;
    @JsonIgnore
    protected boolean isset_baseGoodsTemplateName = false;
    private String unit = null;
    @JsonIgnore
    protected boolean isset_unit = false;
    private Long baseGoodsModelsId = null;
    @JsonIgnore
    protected boolean isset_baseGoodsModelsId = false;
    private String baseGoodsModelsName = null;
    @JsonIgnore
    protected boolean isset_baseGoodsModelsName = false;
    private Double price = null;
    @JsonIgnore
    protected boolean isset_price = false;
    private Long procureDate = null;
    @JsonIgnore
    protected boolean isset_procureDate = false;
    /**
     * é»˜è®¤æž„造函数
@@ -137,46 +189,32 @@
        return this.depFormLendingId == null;
    }
    public Long getDepGoodsDetailsId() {
        return this.depGoodsDetailsId;
    public Long getWhGoodsDetailsId() {
        return this.whGoodsDetailsId;
    }
    public void setDepGoodsDetailsId(Long depGoodsDetailsId) {
        this.depGoodsDetailsId = depGoodsDetailsId;
        this.isset_depGoodsDetailsId = true;
    public void setWhGoodsDetailsId(Long whGoodsDetailsId) {
        this.whGoodsDetailsId = whGoodsDetailsId;
        this.isset_whGoodsDetailsId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepGoodsDetailsId() {
        return this.depGoodsDetailsId == null;
    public boolean isEmptyWhGoodsDetailsId() {
        return this.whGoodsDetailsId == null;
    }
    public Long getGoodsUserPhone() {
        return this.goodsUserPhone;
    public Long getUsingGoodsHisId() {
        return this.usingGoodsHisId;
    }
    public void setGoodsUserPhone(Long goodsUserPhone) {
        this.goodsUserPhone = goodsUserPhone;
        this.isset_goodsUserPhone = true;
    public void setUsingGoodsHisId(Long usingGoodsHisId) {
        this.usingGoodsHisId = usingGoodsHisId;
        this.isset_usingGoodsHisId = true;
    }
    @JsonIgnore
    public boolean isEmptyGoodsUserPhone() {
        return this.goodsUserPhone == null;
    }
    public String getGoodsUserName() {
        return this.goodsUserName;
    }
    public void setGoodsUserName(String goodsUserName) {
        this.goodsUserName = goodsUserName;
        this.isset_goodsUserName = true;
    }
    @JsonIgnore
    public boolean isEmptyGoodsUserName() {
        return this.goodsUserName == null || this.goodsUserName.length() == 0;
    public boolean isEmptyUsingGoodsHisId() {
        return this.usingGoodsHisId == null;
    }
    public Long getNowUserPhone() {
@@ -235,6 +273,202 @@
        return this.whGoodsId == null;
    }
    public Integer getUsingCount() {
        return this.usingCount;
    }
    public void setUsingCount(Integer usingCount) {
        this.usingCount = usingCount;
        this.isset_usingCount = true;
    }
    @JsonIgnore
    public boolean isEmptyUsingCount() {
        return this.usingCount == null;
    }
    public Long getWarehouseId() {
        return this.warehouseId;
    }
    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
        this.isset_warehouseId = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseId() {
        return this.warehouseId == null;
    }
    public String getWarehouseName() {
        return this.warehouseName;
    }
    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
        this.isset_warehouseName = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseName() {
        return this.warehouseName == null || this.warehouseName.length() == 0;
    }
    public Long getAgencyId() {
        return this.agencyId;
    }
    public void setAgencyId(Long agencyId) {
        this.agencyId = agencyId;
        this.isset_agencyId = true;
    }
    @JsonIgnore
    public boolean isEmptyAgencyId() {
        return this.agencyId == null;
    }
    public String getAgencyName() {
        return this.agencyName;
    }
    public void setAgencyName(String agencyName) {
        this.agencyName = agencyName;
        this.isset_agencyName = true;
    }
    @JsonIgnore
    public boolean isEmptyAgencyName() {
        return this.agencyName == null || this.agencyName.length() == 0;
    }
    public String getDepartmentId() {
        return this.departmentId;
    }
    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
        this.isset_departmentId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepartmentId() {
        return this.departmentId == null || this.departmentId.length() == 0;
    }
    public Long getDepartmentName() {
        return this.departmentName;
    }
    public void setDepartmentName(Long departmentName) {
        this.departmentName = departmentName;
        this.isset_departmentName = true;
    }
    @JsonIgnore
    public boolean isEmptyDepartmentName() {
        return this.departmentName == null;
    }
    public Long getBaseGoodsTemplateId() {
        return this.baseGoodsTemplateId;
    }
    public void setBaseGoodsTemplateId(Long baseGoodsTemplateId) {
        this.baseGoodsTemplateId = baseGoodsTemplateId;
        this.isset_baseGoodsTemplateId = true;
    }
    @JsonIgnore
    public boolean isEmptyBaseGoodsTemplateId() {
        return this.baseGoodsTemplateId == null;
    }
    public String getBaseGoodsTemplateName() {
        return this.baseGoodsTemplateName;
    }
    public void setBaseGoodsTemplateName(String baseGoodsTemplateName) {
        this.baseGoodsTemplateName = baseGoodsTemplateName;
        this.isset_baseGoodsTemplateName = true;
    }
    @JsonIgnore
    public boolean isEmptyBaseGoodsTemplateName() {
        return this.baseGoodsTemplateName == null || this.baseGoodsTemplateName.length() == 0;
    }
    public String getUnit() {
        return this.unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
        this.isset_unit = true;
    }
    @JsonIgnore
    public boolean isEmptyUnit() {
        return this.unit == null || this.unit.length() == 0;
    }
    public Long getBaseGoodsModelsId() {
        return this.baseGoodsModelsId;
    }
    public void setBaseGoodsModelsId(Long baseGoodsModelsId) {
        this.baseGoodsModelsId = baseGoodsModelsId;
        this.isset_baseGoodsModelsId = true;
    }
    @JsonIgnore
    public boolean isEmptyBaseGoodsModelsId() {
        return this.baseGoodsModelsId == null;
    }
    public String getBaseGoodsModelsName() {
        return this.baseGoodsModelsName;
    }
    public void setBaseGoodsModelsName(String baseGoodsModelsName) {
        this.baseGoodsModelsName = baseGoodsModelsName;
        this.isset_baseGoodsModelsName = true;
    }
    @JsonIgnore
    public boolean isEmptyBaseGoodsModelsName() {
        return this.baseGoodsModelsName == null || this.baseGoodsModelsName.length() == 0;
    }
    public Double getPrice() {
        return this.price;
    }
    public void setPrice(Double price) {
        this.price = price;
        this.isset_price = true;
    }
    @JsonIgnore
    public boolean isEmptyPrice() {
        return this.price == null;
    }
    public Long getProcureDate() {
        return this.procureDate;
    }
    public void setProcureDate(Long procureDate) {
        this.procureDate = procureDate;
        this.isset_procureDate = true;
    }
    @JsonIgnore
    public boolean isEmptyProcureDate() {
        return this.procureDate == null;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
@@ -245,13 +479,26 @@
                .append("counts=").append(this.counts)
                .append("depFormLendingGoodsId=").append(this.depFormLendingGoodsId)
                .append("depFormLendingId=").append(this.depFormLendingId)
                .append("depGoodsDetailsId=").append(this.depGoodsDetailsId)
                .append("goodsUserPhone=").append(this.goodsUserPhone)
                .append("goodsUserName=").append(this.goodsUserName)
                .append("whGoodsDetailsId=").append(this.whGoodsDetailsId)
                .append("usingGoodsHisId=").append(this.usingGoodsHisId)
                .append("nowUserPhone=").append(this.nowUserPhone)
                .append("nowUserName=").append(this.nowUserName)
                .append("beiz=").append(this.beiz)
                .append("whGoodsId=").append(this.whGoodsId)
                .append("usingCount=").append(this.usingCount)
                .append("warehouseId=").append(this.warehouseId)
                .append("warehouseName=").append(this.warehouseName)
                .append("agencyId=").append(this.agencyId)
                .append("agencyName=").append(this.agencyName)
                .append("departmentId=").append(this.departmentId)
                .append("departmentName=").append(this.departmentName)
                .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId)
                .append("baseGoodsTemplateName=").append(this.baseGoodsTemplateName)
                .append("unit=").append(this.unit)
                .append("baseGoodsModelsId=").append(this.baseGoodsModelsId)
                .append("baseGoodsModelsName=").append(this.baseGoodsModelsName)
                .append("price=").append(this.price)
                .append("procureDate=").append(this.procureDate)
                .toString();
    }
@@ -278,14 +525,11 @@
        if (this.isset_depFormLendingId) {
            dep_form_lending_model.setDepFormLendingId(this.getDepFormLendingId());
        }
        if (this.isset_depGoodsDetailsId) {
            dep_form_lending_model.setDepGoodsDetailsId(this.getDepGoodsDetailsId());
        if (this.isset_whGoodsDetailsId) {
            dep_form_lending_model.setWhGoodsDetailsId(this.getWhGoodsDetailsId());
        }
        if (this.isset_goodsUserPhone) {
            dep_form_lending_model.setGoodsUserPhone(this.getGoodsUserPhone());
        }
        if (this.isset_goodsUserName) {
            dep_form_lending_model.setGoodsUserName(this.getGoodsUserName());
        if (this.isset_usingGoodsHisId) {
            dep_form_lending_model.setUsingGoodsHisId(this.getUsingGoodsHisId());
        }
        if (this.isset_nowUserPhone) {
            dep_form_lending_model.setNowUserPhone(this.getNowUserPhone());
@@ -299,6 +543,48 @@
        if (this.isset_whGoodsId) {
            dep_form_lending_model.setWhGoodsId(this.getWhGoodsId());
        }
        if (this.isset_usingCount) {
            dep_form_lending_model.setUsingCount(this.getUsingCount());
        }
        if (this.isset_warehouseId) {
            dep_form_lending_model.setWarehouseId(this.getWarehouseId());
        }
        if (this.isset_warehouseName) {
            dep_form_lending_model.setWarehouseName(this.getWarehouseName());
        }
        if (this.isset_agencyId) {
            dep_form_lending_model.setAgencyId(this.getAgencyId());
        }
        if (this.isset_agencyName) {
            dep_form_lending_model.setAgencyName(this.getAgencyName());
        }
        if (this.isset_departmentId) {
            dep_form_lending_model.setDepartmentId(this.getDepartmentId());
        }
        if (this.isset_departmentName) {
            dep_form_lending_model.setDepartmentName(this.getDepartmentName());
        }
        if (this.isset_baseGoodsTemplateId) {
            dep_form_lending_model.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
        }
        if (this.isset_baseGoodsTemplateName) {
            dep_form_lending_model.setBaseGoodsTemplateName(this.getBaseGoodsTemplateName());
        }
        if (this.isset_unit) {
            dep_form_lending_model.setUnit(this.getUnit());
        }
        if (this.isset_baseGoodsModelsId) {
            dep_form_lending_model.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
        }
        if (this.isset_baseGoodsModelsName) {
            dep_form_lending_model.setBaseGoodsModelsName(this.getBaseGoodsModelsName());
        }
        if (this.isset_price) {
            dep_form_lending_model.setPrice(this.getPrice());
        }
        if (this.isset_procureDate) {
            dep_form_lending_model.setProcureDate(this.getProcureDate());
        }
        return dep_form_lending_model;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLendingModel_mapper.java
New file
@@ -0,0 +1,545 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_LENDING_MODEL *
 * @author genrator
 */
public class DepFormLendingModel_mapper extends DepFormLendingModel implements BaseMapper<DepFormLendingModel> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormLendingModel> ROW_MAPPER = new DepFormLendingModelRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String Counts = "counts";
    public static final String DepFormLendingGoodsId = "dep_form_lending_goods_id";
    public static final String DepFormLendingId = "dep_form_lending_id";
    public static final String WhGoodsDetailsId = "wh_goods_details_id";
    public static final String UsingGoodsHisId = "using_goods_his_id";
    public static final String NowUserPhone = "now_user_phone";
    public static final String NowUserName = "now_user_name";
    public static final String Beiz = "beiz";
    public static final String WhGoodsId = "wh_goods_id";
    public static final String UsingCount = "using_count";
    public static final String WarehouseId = "warehouse_id";
    public static final String WarehouseName = "warehouse_name";
    public static final String AgencyId = "agency_id";
    public static final String AgencyName = "agency_name";
    public static final String DepartmentId = "department_id";
    public static final String DepartmentName = "department_name";
    public static final String BaseGoodsTemplateId = "base_goods_template_id";
    public static final String BaseGoodsTemplateName = "base_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 Price = "price";
    public static final String ProcureDate = "procure_date";
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormLendingModel_mapper(DepFormLendingModel depFormLendingModel) {
        if (depFormLendingModel == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormLendingModel.isset_id) {
            this.setId(depFormLendingModel.getId());
        }
        //普通属性
        if (depFormLendingModel.isset_counts) {
            this.setCounts(depFormLendingModel.getCounts());
        }
        if (depFormLendingModel.isset_depFormLendingGoodsId) {
            this.setDepFormLendingGoodsId(depFormLendingModel.getDepFormLendingGoodsId());
        }
        if (depFormLendingModel.isset_depFormLendingId) {
            this.setDepFormLendingId(depFormLendingModel.getDepFormLendingId());
        }
        if (depFormLendingModel.isset_whGoodsDetailsId) {
            this.setWhGoodsDetailsId(depFormLendingModel.getWhGoodsDetailsId());
        }
        if (depFormLendingModel.isset_usingGoodsHisId) {
            this.setUsingGoodsHisId(depFormLendingModel.getUsingGoodsHisId());
        }
        if (depFormLendingModel.isset_nowUserPhone) {
            this.setNowUserPhone(depFormLendingModel.getNowUserPhone());
        }
        if (depFormLendingModel.isset_nowUserName) {
            this.setNowUserName(depFormLendingModel.getNowUserName());
        }
        if (depFormLendingModel.isset_beiz) {
            this.setBeiz(depFormLendingModel.getBeiz());
        }
        if (depFormLendingModel.isset_whGoodsId) {
            this.setWhGoodsId(depFormLendingModel.getWhGoodsId());
        }
        if (depFormLendingModel.isset_usingCount) {
            this.setUsingCount(depFormLendingModel.getUsingCount());
        }
        if (depFormLendingModel.isset_warehouseId) {
            this.setWarehouseId(depFormLendingModel.getWarehouseId());
        }
        if (depFormLendingModel.isset_warehouseName) {
            this.setWarehouseName(depFormLendingModel.getWarehouseName());
        }
        if (depFormLendingModel.isset_agencyId) {
            this.setAgencyId(depFormLendingModel.getAgencyId());
        }
        if (depFormLendingModel.isset_agencyName) {
            this.setAgencyName(depFormLendingModel.getAgencyName());
        }
        if (depFormLendingModel.isset_departmentId) {
            this.setDepartmentId(depFormLendingModel.getDepartmentId());
        }
        if (depFormLendingModel.isset_departmentName) {
            this.setDepartmentName(depFormLendingModel.getDepartmentName());
        }
        if (depFormLendingModel.isset_baseGoodsTemplateId) {
            this.setBaseGoodsTemplateId(depFormLendingModel.getBaseGoodsTemplateId());
        }
        if (depFormLendingModel.isset_baseGoodsTemplateName) {
            this.setBaseGoodsTemplateName(depFormLendingModel.getBaseGoodsTemplateName());
        }
        if (depFormLendingModel.isset_unit) {
            this.setUnit(depFormLendingModel.getUnit());
        }
        if (depFormLendingModel.isset_baseGoodsModelsId) {
            this.setBaseGoodsModelsId(depFormLendingModel.getBaseGoodsModelsId());
        }
        if (depFormLendingModel.isset_baseGoodsModelsName) {
            this.setBaseGoodsModelsName(depFormLendingModel.getBaseGoodsModelsName());
        }
        if (depFormLendingModel.isset_price) {
            this.setPrice(depFormLendingModel.getPrice());
        }
        if (depFormLendingModel.isset_procureDate) {
            this.setProcureDate(depFormLendingModel.getProcureDate());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_lending_model.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_lending_model";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(Counts, this.getCounts(), this.isset_counts);
        ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        ib.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
        ib.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ib.set(NowUserPhone, this.getNowUserPhone(), this.isset_nowUserPhone);
        ib.set(NowUserName, this.getNowUserName(), this.isset_nowUserName);
        ib.set(Beiz, this.getBeiz(), this.isset_beiz);
        ib.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ib.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ib.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ib.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ib.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        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(Price, this.getPrice(), this.isset_price);
        ib.set(ProcureDate, this.getProcureDate(), this.isset_procureDate);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        ub.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
        ub.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ub.set(NowUserPhone, this.getNowUserPhone(), this.isset_nowUserPhone);
        ub.set(NowUserName, this.getNowUserName(), this.isset_nowUserName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        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(Price, this.getPrice(), this.isset_price);
        ub.set(ProcureDate, this.getProcureDate(), this.isset_procureDate);
        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(Counts, this.getCounts(), this.isset_counts);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        ub.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
        ub.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ub.set(NowUserPhone, this.getNowUserPhone(), this.isset_nowUserPhone);
        ub.set(NowUserName, this.getNowUserName(), this.isset_nowUserName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        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(Price, this.getPrice(), this.isset_price);
        ub.set(ProcureDate, this.getProcureDate(), this.isset_procureDate);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        ub.set(WhGoodsDetailsId, this.getWhGoodsDetailsId(), this.isset_whGoodsDetailsId);
        ub.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ub.set(NowUserPhone, this.getNowUserPhone(), this.isset_nowUserPhone);
        ub.set(NowUserName, this.getNowUserName(), this.isset_nowUserName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        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(Price, this.getPrice(), this.isset_price);
        ub.set(ProcureDate, this.getProcureDate(), this.isset_procureDate);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, counts, dep_form_lending_goods_id, dep_form_lending_id, wh_goods_details_id, using_goods_his_id, now_user_phone, now_user_name, beiz, wh_goods_id, using_count, warehouse_id, warehouse_name, agency_id, agency_name, department_id, department_name, base_goods_template_id, base_goods_template_name, unit, base_goods_models_id, base_goods_models_name, price, procure_date from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, counts, dep_form_lending_goods_id, dep_form_lending_id, wh_goods_details_id, using_goods_his_id, now_user_phone, now_user_name, beiz, wh_goods_id, using_count, warehouse_id, warehouse_name, agency_id, agency_name, department_id, department_name, base_goods_template_id, base_goods_template_name, unit, base_goods_models_id, base_goods_models_name, price, procure_date from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormLendingModel mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormLendingModel toDepFormLendingModel() {
        return super.$clone();
    }
}
/**
 * dep_form_lending_model RowMapper
 *
 * @author genrator
 */
class DepFormLendingModelRowMapper implements RowMapper<DepFormLendingModel> {
    @Override
    public DepFormLendingModel mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormLendingModel dep_form_lending_model = new DepFormLendingModel();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.Id);
        if (columnIndex > 0) {
            dep_form_lending_model.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.Counts);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setCounts(null);
            } else {
                dep_form_lending_model.setCounts(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.DepFormLendingGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setDepFormLendingGoodsId(null);
            } else {
                dep_form_lending_model.setDepFormLendingGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.DepFormLendingId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setDepFormLendingId(null);
            } else {
                dep_form_lending_model.setDepFormLendingId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.WhGoodsDetailsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setWhGoodsDetailsId(null);
            } else {
                dep_form_lending_model.setWhGoodsDetailsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.UsingGoodsHisId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setUsingGoodsHisId(null);
            } else {
                dep_form_lending_model.setUsingGoodsHisId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.NowUserPhone);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setNowUserPhone(null);
            } else {
                dep_form_lending_model.setNowUserPhone(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.NowUserName);
        if (columnIndex > 0) {
            dep_form_lending_model.setNowUserName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.Beiz);
        if (columnIndex > 0) {
            dep_form_lending_model.setBeiz(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.WhGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setWhGoodsId(null);
            } else {
                dep_form_lending_model.setWhGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.UsingCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setUsingCount(null);
            } else {
                dep_form_lending_model.setUsingCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.WarehouseId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setWarehouseId(null);
            } else {
                dep_form_lending_model.setWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.WarehouseName);
        if (columnIndex > 0) {
            dep_form_lending_model.setWarehouseName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.AgencyId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setAgencyId(null);
            } else {
                dep_form_lending_model.setAgencyId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.AgencyName);
        if (columnIndex > 0) {
            dep_form_lending_model.setAgencyName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.DepartmentId);
        if (columnIndex > 0) {
            dep_form_lending_model.setDepartmentId(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.DepartmentName);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setDepartmentName(null);
            } else {
                dep_form_lending_model.setDepartmentName(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.BaseGoodsTemplateId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setBaseGoodsTemplateId(null);
            } else {
                dep_form_lending_model.setBaseGoodsTemplateId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.BaseGoodsTemplateName);
        if (columnIndex > 0) {
            dep_form_lending_model.setBaseGoodsTemplateName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.Unit);
        if (columnIndex > 0) {
            dep_form_lending_model.setUnit(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.BaseGoodsModelsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setBaseGoodsModelsId(null);
            } else {
                dep_form_lending_model.setBaseGoodsModelsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.BaseGoodsModelsName);
        if (columnIndex > 0) {
            dep_form_lending_model.setBaseGoodsModelsName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.Price);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setPrice(null);
            } else {
                dep_form_lending_model.setPrice(rs.getDouble(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLendingModel_mapper.ProcureDate);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending_model.setProcureDate(null);
            } else {
                dep_form_lending_model.setProcureDate(rs.getLong(columnIndex));
            }
        }
        return dep_form_lending_model;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormLending_mapper.java
New file
@@ -0,0 +1,425 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_LENDING *
 * @author genrator
 */
public class DepFormLending_mapper extends DepFormLending implements BaseMapper<DepFormLending> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormLending> ROW_MAPPER = new DepFormLendingRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String BusinessFormName = "business_form_name";
    public static final String BusinessFormCode = "business_form_code";
    public static final String OperatorId = "operator_id";
    public static final String OperatorName = "operator_name";
    public static final String ReceiverName = "receiver_name";
    public static final String ReceiverPhone = "receiver_phone";
    public static final String DealTime = "deal_time";
    public static final String AgencyId = "agency_id";
    public static final String AgencyName = "agency_name";
    public static final String DepartmentId = "department_id";
    public static final String DepartmentName = "department_name";
    public static final String Beiz = "beiz";
    public static final String UploadFiles = "upload_files";
    public static final String UsingCount = "using_count";
    public static final String WarehouseId = "warehouse_id";
    public static final String WarehouseName = "warehouse_name";
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormLending_mapper(DepFormLending depFormLending) {
        if (depFormLending == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormLending.isset_id) {
            this.setId(depFormLending.getId());
        }
        //普通属性
        if (depFormLending.isset_businessFormName) {
            this.setBusinessFormName(depFormLending.getBusinessFormName());
        }
        if (depFormLending.isset_businessFormCode) {
            this.setBusinessFormCode(depFormLending.getBusinessFormCode());
        }
        if (depFormLending.isset_operatorId) {
            this.setOperatorId(depFormLending.getOperatorId());
        }
        if (depFormLending.isset_operatorName) {
            this.setOperatorName(depFormLending.getOperatorName());
        }
        if (depFormLending.isset_receiverName) {
            this.setReceiverName(depFormLending.getReceiverName());
        }
        if (depFormLending.isset_receiverPhone) {
            this.setReceiverPhone(depFormLending.getReceiverPhone());
        }
        if (depFormLending.isset_dealTime) {
            this.setDealTime(depFormLending.getDealTime());
        }
        if (depFormLending.isset_agencyId) {
            this.setAgencyId(depFormLending.getAgencyId());
        }
        if (depFormLending.isset_agencyName) {
            this.setAgencyName(depFormLending.getAgencyName());
        }
        if (depFormLending.isset_departmentId) {
            this.setDepartmentId(depFormLending.getDepartmentId());
        }
        if (depFormLending.isset_departmentName) {
            this.setDepartmentName(depFormLending.getDepartmentName());
        }
        if (depFormLending.isset_beiz) {
            this.setBeiz(depFormLending.getBeiz());
        }
        if (depFormLending.isset_uploadFiles) {
            this.setUploadFiles(depFormLending.getUploadFiles());
        }
        if (depFormLending.isset_usingCount) {
            this.setUsingCount(depFormLending.getUsingCount());
        }
        if (depFormLending.isset_warehouseId) {
            this.setWarehouseId(depFormLending.getWarehouseId());
        }
        if (depFormLending.isset_warehouseName) {
            this.setWarehouseName(depFormLending.getWarehouseName());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_lending.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_lending";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
        ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ib.set(ReceiverName, this.getReceiverName(), this.isset_receiverName);
        ib.set(ReceiverPhone, this.getReceiverPhone(), this.isset_receiverPhone);
        ib.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ib.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ib.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ib.set(Beiz, this.getBeiz(), this.isset_beiz);
        ib.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        ib.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(ReceiverName, this.getReceiverName(), this.isset_receiverName);
        ub.set(ReceiverPhone, this.getReceiverPhone(), this.isset_receiverPhone);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        ub.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        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();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_(String where, Map<String, Object> parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(ReceiverName, this.getReceiverName(), this.isset_receiverName);
        ub.set(ReceiverPhone, this.getReceiverPhone(), this.isset_receiverPhone);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        ub.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(ReceiverName, this.getReceiverName(), this.isset_receiverName);
        ub.set(ReceiverPhone, this.getReceiverPhone(), this.isset_receiverPhone);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        ub.set(UsingCount, this.getUsingCount(), this.isset_usingCount);
        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>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, business_form_name, business_form_code, operator_id, operator_name, receiver_name, receiver_phone, deal_time, agency_id, agency_name, department_id, department_name, beiz, upload_files, using_count, 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_name, business_form_code, operator_id, operator_name, receiver_name, receiver_phone, deal_time, agency_id, agency_name, department_id, department_name, beiz, upload_files, using_count, warehouse_id, warehouse_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormLending mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormLending toDepFormLending() {
        return super.$clone();
    }
}
/**
 * dep_form_lending RowMapper
 *
 * @author genrator
 */
class DepFormLendingRowMapper implements RowMapper<DepFormLending> {
    @Override
    public DepFormLending mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormLending dep_form_lending = new DepFormLending();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.Id);
        if (columnIndex > 0) {
            dep_form_lending.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.BusinessFormName);
        if (columnIndex > 0) {
            dep_form_lending.setBusinessFormName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.BusinessFormCode);
        if (columnIndex > 0) {
            dep_form_lending.setBusinessFormCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.OperatorId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending.setOperatorId(null);
            } else {
                dep_form_lending.setOperatorId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.OperatorName);
        if (columnIndex > 0) {
            dep_form_lending.setOperatorName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.ReceiverName);
        if (columnIndex > 0) {
            dep_form_lending.setReceiverName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.ReceiverPhone);
        if (columnIndex > 0) {
            dep_form_lending.setReceiverPhone(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.DealTime);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending.setDealTime(null);
            } else {
                dep_form_lending.setDealTime(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.AgencyId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending.setAgencyId(null);
            } else {
                dep_form_lending.setAgencyId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.AgencyName);
        if (columnIndex > 0) {
            dep_form_lending.setAgencyName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.DepartmentId);
        if (columnIndex > 0) {
            dep_form_lending.setDepartmentId(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.DepartmentName);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending.setDepartmentName(null);
            } else {
                dep_form_lending.setDepartmentName(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.Beiz);
        if (columnIndex > 0) {
            dep_form_lending.setBeiz(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.UploadFiles);
        if (columnIndex > 0) {
            dep_form_lending.setUploadFiles(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.UsingCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending.setUsingCount(null);
            } else {
                dep_form_lending.setUsingCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.WarehouseId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_lending.setWarehouseId(null);
            } else {
                dep_form_lending.setWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormLending_mapper.WarehouseName);
        if (columnIndex > 0) {
            dep_form_lending.setWarehouseName(rs.getString(columnIndex));
        }
        return dep_form_lending;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped.java
New file
@@ -0,0 +1,414 @@
package com.consum.model.po;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
/**
 * è¡¨å:DEP_FORM_SCRAPPED *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class DepFormScrapped extends BasePo<DepFormScrapped> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    // ä¸»é”®
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
    // å±žæ€§åˆ—表
    private String businessFormCode = null;
    @JsonIgnore
    protected boolean isset_businessFormCode = false;
    private Long agencyId = null;
    @JsonIgnore
    protected boolean isset_agencyId = false;
    private String agencyName = null;
    @JsonIgnore
    protected boolean isset_agencyName = false;
    private Long operatorId = null;
    @JsonIgnore
    protected boolean isset_operatorId = false;
    private String operatorName = null;
    @JsonIgnore
    protected boolean isset_operatorName = false;
    private Long dealTime = null;
    @JsonIgnore
    protected boolean isset_dealTime = false;
    private String departmentId = null;
    @JsonIgnore
    protected boolean isset_departmentId = false;
    private Long departmentName = null;
    @JsonIgnore
    protected boolean isset_departmentName = false;
    private Long reviewerId = null;
    @JsonIgnore
    protected boolean isset_reviewerId = false;
    private String reviewerName = null;
    @JsonIgnore
    protected boolean isset_reviewerName = false;
    private Long reviewDate = null;
    @JsonIgnore
    protected boolean isset_reviewDate = false;
    private Integer reviewStates = null;
    @JsonIgnore
    protected boolean isset_reviewStates = false;
    private String beiz = null;
    @JsonIgnore
    protected boolean isset_beiz = false;
    private String beiz2 = null;
    @JsonIgnore
    protected boolean isset_beiz2 = false;
    private String uploadFiles = null;
    @JsonIgnore
    protected boolean isset_uploadFiles = false;
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormScrapped() {
    }
    /**
     * æ ¹æ®ä¸»é”®æž„造对象
     */
    public DepFormScrapped(Long id) {
        this.setId(id);
    }
    /**
     * è®¾ç½®ä¸»é”®å€¼
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
    public String getBusinessFormCode() {
        return this.businessFormCode;
    }
    public void setBusinessFormCode(String businessFormCode) {
        this.businessFormCode = businessFormCode;
        this.isset_businessFormCode = true;
    }
    @JsonIgnore
    public boolean isEmptyBusinessFormCode() {
        return this.businessFormCode == null || this.businessFormCode.length() == 0;
    }
    public Long getAgencyId() {
        return this.agencyId;
    }
    public void setAgencyId(Long agencyId) {
        this.agencyId = agencyId;
        this.isset_agencyId = true;
    }
    @JsonIgnore
    public boolean isEmptyAgencyId() {
        return this.agencyId == null;
    }
    public String getAgencyName() {
        return this.agencyName;
    }
    public void setAgencyName(String agencyName) {
        this.agencyName = agencyName;
        this.isset_agencyName = true;
    }
    @JsonIgnore
    public boolean isEmptyAgencyName() {
        return this.agencyName == null || this.agencyName.length() == 0;
    }
    public Long getOperatorId() {
        return this.operatorId;
    }
    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
        this.isset_operatorId = true;
    }
    @JsonIgnore
    public boolean isEmptyOperatorId() {
        return this.operatorId == null;
    }
    public String getOperatorName() {
        return this.operatorName;
    }
    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
        this.isset_operatorName = true;
    }
    @JsonIgnore
    public boolean isEmptyOperatorName() {
        return this.operatorName == null || this.operatorName.length() == 0;
    }
    public Long getDealTime() {
        return this.dealTime;
    }
    public void setDealTime(Long dealTime) {
        this.dealTime = dealTime;
        this.isset_dealTime = true;
    }
    @JsonIgnore
    public boolean isEmptyDealTime() {
        return this.dealTime == null;
    }
    public String getDepartmentId() {
        return this.departmentId;
    }
    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
        this.isset_departmentId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepartmentId() {
        return this.departmentId == null || this.departmentId.length() == 0;
    }
    public Long getDepartmentName() {
        return this.departmentName;
    }
    public void setDepartmentName(Long departmentName) {
        this.departmentName = departmentName;
        this.isset_departmentName = true;
    }
    @JsonIgnore
    public boolean isEmptyDepartmentName() {
        return this.departmentName == null;
    }
    public Long getReviewerId() {
        return this.reviewerId;
    }
    public void setReviewerId(Long reviewerId) {
        this.reviewerId = reviewerId;
        this.isset_reviewerId = true;
    }
    @JsonIgnore
    public boolean isEmptyReviewerId() {
        return this.reviewerId == null;
    }
    public String getReviewerName() {
        return this.reviewerName;
    }
    public void setReviewerName(String reviewerName) {
        this.reviewerName = reviewerName;
        this.isset_reviewerName = true;
    }
    @JsonIgnore
    public boolean isEmptyReviewerName() {
        return this.reviewerName == null || this.reviewerName.length() == 0;
    }
    public Long getReviewDate() {
        return this.reviewDate;
    }
    public void setReviewDate(Long reviewDate) {
        this.reviewDate = reviewDate;
        this.isset_reviewDate = true;
    }
    @JsonIgnore
    public boolean isEmptyReviewDate() {
        return this.reviewDate == null;
    }
    public Integer getReviewStates() {
        return this.reviewStates;
    }
    public void setReviewStates(Integer reviewStates) {
        this.reviewStates = reviewStates;
        this.isset_reviewStates = true;
    }
    @JsonIgnore
    public boolean isEmptyReviewStates() {
        return this.reviewStates == null;
    }
    public String getBeiz() {
        return this.beiz;
    }
    public void setBeiz(String beiz) {
        this.beiz = beiz;
        this.isset_beiz = true;
    }
    @JsonIgnore
    public boolean isEmptyBeiz() {
        return this.beiz == null || this.beiz.length() == 0;
    }
    public String getBeiz2() {
        return this.beiz2;
    }
    public void setBeiz2(String beiz2) {
        this.beiz2 = beiz2;
        this.isset_beiz2 = true;
    }
    @JsonIgnore
    public boolean isEmptyBeiz2() {
        return this.beiz2 == null || this.beiz2.length() == 0;
    }
    public String getUploadFiles() {
        return this.uploadFiles;
    }
    public void setUploadFiles(String uploadFiles) {
        this.uploadFiles = uploadFiles;
        this.isset_uploadFiles = true;
    }
    @JsonIgnore
    public boolean isEmptyUploadFiles() {
        return this.uploadFiles == null || this.uploadFiles.length() == 0;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("businessFormCode=").append(this.businessFormCode)
                .append("agencyId=").append(this.agencyId)
                .append("agencyName=").append(this.agencyName)
                .append("operatorId=").append(this.operatorId)
                .append("operatorName=").append(this.operatorName)
                .append("dealTime=").append(this.dealTime)
                .append("departmentId=").append(this.departmentId)
                .append("departmentName=").append(this.departmentName)
                .append("reviewerId=").append(this.reviewerId)
                .append("reviewerName=").append(this.reviewerName)
                .append("reviewDate=").append(this.reviewDate)
                .append("reviewStates=").append(this.reviewStates)
                .append("beiz=").append(this.beiz)
                .append("beiz2=").append(this.beiz2)
                .append("uploadFiles=").append(this.uploadFiles)
                .toString();
    }
    /**
     * å…‹éš†
     */
    public DepFormScrapped $clone() {
        DepFormScrapped dep_form_scrapped = new DepFormScrapped();
        // æ•°æ®åº“名称
        //dep_form_scrapped.setDatabaseName_(this.getDatabaseName_());
        // ä¸»é”®
        if (this.isset_id) {
            dep_form_scrapped.setId(this.getId());
        }
        // æ™®é€šå±žæ€§
        if (this.isset_businessFormCode) {
            dep_form_scrapped.setBusinessFormCode(this.getBusinessFormCode());
        }
        if (this.isset_agencyId) {
            dep_form_scrapped.setAgencyId(this.getAgencyId());
        }
        if (this.isset_agencyName) {
            dep_form_scrapped.setAgencyName(this.getAgencyName());
        }
        if (this.isset_operatorId) {
            dep_form_scrapped.setOperatorId(this.getOperatorId());
        }
        if (this.isset_operatorName) {
            dep_form_scrapped.setOperatorName(this.getOperatorName());
        }
        if (this.isset_dealTime) {
            dep_form_scrapped.setDealTime(this.getDealTime());
        }
        if (this.isset_departmentId) {
            dep_form_scrapped.setDepartmentId(this.getDepartmentId());
        }
        if (this.isset_departmentName) {
            dep_form_scrapped.setDepartmentName(this.getDepartmentName());
        }
        if (this.isset_reviewerId) {
            dep_form_scrapped.setReviewerId(this.getReviewerId());
        }
        if (this.isset_reviewerName) {
            dep_form_scrapped.setReviewerName(this.getReviewerName());
        }
        if (this.isset_reviewDate) {
            dep_form_scrapped.setReviewDate(this.getReviewDate());
        }
        if (this.isset_reviewStates) {
            dep_form_scrapped.setReviewStates(this.getReviewStates());
        }
        if (this.isset_beiz) {
            dep_form_scrapped.setBeiz(this.getBeiz());
        }
        if (this.isset_beiz2) {
            dep_form_scrapped.setBeiz2(this.getBeiz2());
        }
        if (this.isset_uploadFiles) {
            dep_form_scrapped.setUploadFiles(this.getUploadFiles());
        }
        return dep_form_scrapped;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedGoods.java
New file
@@ -0,0 +1,370 @@
package com.consum.model.po;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
/**
 * è¡¨å:DEP_FORM_SCRAPPED_GOODS *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class DepFormScrappedGoods extends BasePo<DepFormScrappedGoods> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    // ä¸»é”®
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
    // å±žæ€§åˆ—表
    private Long baseGoodsTemplateId = null;
    @JsonIgnore
    protected boolean isset_baseGoodsTemplateId = false;
    private String goodsTemplateName = null;
    @JsonIgnore
    protected boolean isset_goodsTemplateName = false;
    private String unit = null;
    @JsonIgnore
    protected boolean isset_unit = false;
    private Long baseGoodsModelsId = null;
    @JsonIgnore
    protected boolean isset_baseGoodsModelsId = false;
    private String baseGoodsModelsName = null;
    @JsonIgnore
    protected boolean isset_baseGoodsModelsName = false;
    private Integer scrappedCounts = null;
    @JsonIgnore
    protected boolean isset_scrappedCounts = false;
    private Integer initCount = null;
    @JsonIgnore
    protected boolean isset_initCount = false;
    private Long depFormScrappedId = null;
    @JsonIgnore
    protected boolean isset_depFormScrappedId = false;
    private String beiz = null;
    @JsonIgnore
    protected boolean isset_beiz = false;
    private String scrappedCode = null;
    @JsonIgnore
    protected boolean isset_scrappedCode = false;
    private String scrappedName = null;
    @JsonIgnore
    protected boolean isset_scrappedName = false;
    private Long depFormLendingGoodsId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingGoodsId = false;
    private Long depFormLendingId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingId = false;
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormScrappedGoods() {
    }
    /**
     * æ ¹æ®ä¸»é”®æž„造对象
     */
    public DepFormScrappedGoods(Long id) {
        this.setId(id);
    }
    /**
     * è®¾ç½®ä¸»é”®å€¼
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
    public Long getBaseGoodsTemplateId() {
        return this.baseGoodsTemplateId;
    }
    public void setBaseGoodsTemplateId(Long baseGoodsTemplateId) {
        this.baseGoodsTemplateId = baseGoodsTemplateId;
        this.isset_baseGoodsTemplateId = true;
    }
    @JsonIgnore
    public boolean isEmptyBaseGoodsTemplateId() {
        return this.baseGoodsTemplateId == null;
    }
    public String getGoodsTemplateName() {
        return this.goodsTemplateName;
    }
    public void setGoodsTemplateName(String goodsTemplateName) {
        this.goodsTemplateName = goodsTemplateName;
        this.isset_goodsTemplateName = true;
    }
    @JsonIgnore
    public boolean isEmptyGoodsTemplateName() {
        return this.goodsTemplateName == null || this.goodsTemplateName.length() == 0;
    }
    public String getUnit() {
        return this.unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
        this.isset_unit = true;
    }
    @JsonIgnore
    public boolean isEmptyUnit() {
        return this.unit == null || this.unit.length() == 0;
    }
    public Long getBaseGoodsModelsId() {
        return this.baseGoodsModelsId;
    }
    public void setBaseGoodsModelsId(Long baseGoodsModelsId) {
        this.baseGoodsModelsId = baseGoodsModelsId;
        this.isset_baseGoodsModelsId = true;
    }
    @JsonIgnore
    public boolean isEmptyBaseGoodsModelsId() {
        return this.baseGoodsModelsId == null;
    }
    public String getBaseGoodsModelsName() {
        return this.baseGoodsModelsName;
    }
    public void setBaseGoodsModelsName(String baseGoodsModelsName) {
        this.baseGoodsModelsName = baseGoodsModelsName;
        this.isset_baseGoodsModelsName = true;
    }
    @JsonIgnore
    public boolean isEmptyBaseGoodsModelsName() {
        return this.baseGoodsModelsName == null || this.baseGoodsModelsName.length() == 0;
    }
    public Integer getScrappedCounts() {
        return this.scrappedCounts;
    }
    public void setScrappedCounts(Integer scrappedCounts) {
        this.scrappedCounts = scrappedCounts;
        this.isset_scrappedCounts = true;
    }
    @JsonIgnore
    public boolean isEmptyScrappedCounts() {
        return this.scrappedCounts == null;
    }
    public Integer getInitCount() {
        return this.initCount;
    }
    public void setInitCount(Integer initCount) {
        this.initCount = initCount;
        this.isset_initCount = true;
    }
    @JsonIgnore
    public boolean isEmptyInitCount() {
        return this.initCount == null;
    }
    public Long getDepFormScrappedId() {
        return this.depFormScrappedId;
    }
    public void setDepFormScrappedId(Long depFormScrappedId) {
        this.depFormScrappedId = depFormScrappedId;
        this.isset_depFormScrappedId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormScrappedId() {
        return this.depFormScrappedId == null;
    }
    public String getBeiz() {
        return this.beiz;
    }
    public void setBeiz(String beiz) {
        this.beiz = beiz;
        this.isset_beiz = true;
    }
    @JsonIgnore
    public boolean isEmptyBeiz() {
        return this.beiz == null || this.beiz.length() == 0;
    }
    public String getScrappedCode() {
        return this.scrappedCode;
    }
    public void setScrappedCode(String scrappedCode) {
        this.scrappedCode = scrappedCode;
        this.isset_scrappedCode = true;
    }
    @JsonIgnore
    public boolean isEmptyScrappedCode() {
        return this.scrappedCode == null || this.scrappedCode.length() == 0;
    }
    public String getScrappedName() {
        return this.scrappedName;
    }
    public void setScrappedName(String scrappedName) {
        this.scrappedName = scrappedName;
        this.isset_scrappedName = true;
    }
    @JsonIgnore
    public boolean isEmptyScrappedName() {
        return this.scrappedName == null || this.scrappedName.length() == 0;
    }
    public Long getDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId;
    }
    public void setDepFormLendingGoodsId(Long depFormLendingGoodsId) {
        this.depFormLendingGoodsId = depFormLendingGoodsId;
        this.isset_depFormLendingGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId == null;
    }
    public Long getDepFormLendingId() {
        return this.depFormLendingId;
    }
    public void setDepFormLendingId(Long depFormLendingId) {
        this.depFormLendingId = depFormLendingId;
        this.isset_depFormLendingId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingId() {
        return this.depFormLendingId == null;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId)
                .append("goodsTemplateName=").append(this.goodsTemplateName)
                .append("unit=").append(this.unit)
                .append("baseGoodsModelsId=").append(this.baseGoodsModelsId)
                .append("baseGoodsModelsName=").append(this.baseGoodsModelsName)
                .append("scrappedCounts=").append(this.scrappedCounts)
                .append("initCount=").append(this.initCount)
                .append("depFormScrappedId=").append(this.depFormScrappedId)
                .append("beiz=").append(this.beiz)
                .append("scrappedCode=").append(this.scrappedCode)
                .append("scrappedName=").append(this.scrappedName)
                .append("depFormLendingGoodsId=").append(this.depFormLendingGoodsId)
                .append("depFormLendingId=").append(this.depFormLendingId)
                .toString();
    }
    /**
     * å…‹éš†
     */
    public DepFormScrappedGoods $clone() {
        DepFormScrappedGoods dep_form_scrapped_goods = new DepFormScrappedGoods();
        // æ•°æ®åº“名称
        //dep_form_scrapped_goods.setDatabaseName_(this.getDatabaseName_());
        // ä¸»é”®
        if (this.isset_id) {
            dep_form_scrapped_goods.setId(this.getId());
        }
        // æ™®é€šå±žæ€§
        if (this.isset_baseGoodsTemplateId) {
            dep_form_scrapped_goods.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
        }
        if (this.isset_goodsTemplateName) {
            dep_form_scrapped_goods.setGoodsTemplateName(this.getGoodsTemplateName());
        }
        if (this.isset_unit) {
            dep_form_scrapped_goods.setUnit(this.getUnit());
        }
        if (this.isset_baseGoodsModelsId) {
            dep_form_scrapped_goods.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
        }
        if (this.isset_baseGoodsModelsName) {
            dep_form_scrapped_goods.setBaseGoodsModelsName(this.getBaseGoodsModelsName());
        }
        if (this.isset_scrappedCounts) {
            dep_form_scrapped_goods.setScrappedCounts(this.getScrappedCounts());
        }
        if (this.isset_initCount) {
            dep_form_scrapped_goods.setInitCount(this.getInitCount());
        }
        if (this.isset_depFormScrappedId) {
            dep_form_scrapped_goods.setDepFormScrappedId(this.getDepFormScrappedId());
        }
        if (this.isset_beiz) {
            dep_form_scrapped_goods.setBeiz(this.getBeiz());
        }
        if (this.isset_scrappedCode) {
            dep_form_scrapped_goods.setScrappedCode(this.getScrappedCode());
        }
        if (this.isset_scrappedName) {
            dep_form_scrapped_goods.setScrappedName(this.getScrappedName());
        }
        if (this.isset_depFormLendingGoodsId) {
            dep_form_scrapped_goods.setDepFormLendingGoodsId(this.getDepFormLendingGoodsId());
        }
        if (this.isset_depFormLendingId) {
            dep_form_scrapped_goods.setDepFormLendingId(this.getDepFormLendingId());
        }
        return dep_form_scrapped_goods;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedGoods_mapper.java
New file
@@ -0,0 +1,393 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_SCRAPPED_GOODS *
 * @author genrator
 */
public class DepFormScrappedGoods_mapper extends DepFormScrappedGoods implements BaseMapper<DepFormScrappedGoods> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormScrappedGoods> ROW_MAPPER = new DepFormScrappedGoodsRowMapper();
    // ä¸»é”®
    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 Beiz = "beiz";
    public static final String ScrappedCode = "scrapped_code";
    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 DepFormScrappedGoods_mapper(DepFormScrappedGoods depFormScrappedGoods) {
        if (depFormScrappedGoods == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormScrappedGoods.isset_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_initCount) {
            this.setInitCount(depFormScrappedGoods.getInitCount());
        }
        if (depFormScrappedGoods.isset_depFormScrappedId) {
            this.setDepFormScrappedId(depFormScrappedGoods.getDepFormScrappedId());
        }
        if (depFormScrappedGoods.isset_beiz) {
            this.setBeiz(depFormScrappedGoods.getBeiz());
        }
        if (depFormScrappedGoods.isset_scrappedCode) {
            this.setScrappedCode(depFormScrappedGoods.getScrappedCode());
        }
        if (depFormScrappedGoods.isset_scrappedName) {
            this.setScrappedName(depFormScrappedGoods.getScrappedName());
        }
        if (depFormScrappedGoods.isset_depFormLendingGoodsId) {
            this.setDepFormLendingGoodsId(depFormScrappedGoods.getDepFormLendingGoodsId());
        }
        if (depFormScrappedGoods.isset_depFormLendingId) {
            this.setDepFormLendingId(depFormScrappedGoods.getDepFormLendingId());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_scrapped_goods.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_scrapped_goods";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    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(Beiz, this.getBeiz(), this.isset_beiz);
        ib.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ib.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        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(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        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.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(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        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(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormScrappedGoods mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormScrappedGoods toDepFormScrappedGoods() {
        return super.$clone();
    }
}
/**
 * dep_form_scrapped_goods RowMapper
 *
 * @author genrator
 */
class DepFormScrappedGoodsRowMapper implements RowMapper<DepFormScrappedGoods> {
    @Override
    public DepFormScrappedGoods mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormScrappedGoods dep_form_scrapped_goods = new DepFormScrappedGoods();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.Id);
        if (columnIndex > 0) {
            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.setScrappedCounts(null);
            } else {
                dep_form_scrapped_goods.setScrappedCounts(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.InitCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_goods.setInitCount(null);
            } else {
                dep_form_scrapped_goods.setInitCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.DepFormScrappedId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_goods.setDepFormScrappedId(null);
            } else {
                dep_form_scrapped_goods.setDepFormScrappedId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.Beiz);
        if (columnIndex > 0) {
            dep_form_scrapped_goods.setBeiz(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.ScrappedCode);
        if (columnIndex > 0) {
            dep_form_scrapped_goods.setScrappedCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.ScrappedName);
        if (columnIndex > 0) {
            dep_form_scrapped_goods.setScrappedName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.DepFormLendingGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_goods.setDepFormLendingGoodsId(null);
            } else {
                dep_form_scrapped_goods.setDepFormLendingGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedGoods_mapper.DepFormLendingId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_goods.setDepFormLendingId(null);
            } else {
                dep_form_scrapped_goods.setDepFormLendingId(rs.getLong(columnIndex));
            }
        }
        return dep_form_scrapped_goods;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedModel.java
New file
@@ -0,0 +1,348 @@
package com.consum.model.po;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
/**
 * è¡¨å:DEP_FORM_SCRAPPED_MODEL *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class DepFormScrappedModel extends BasePo<DepFormScrappedModel> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    // ä¸»é”®
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
    // å±žæ€§åˆ—表
    private Long depFormScrappedGoodsId = null;
    @JsonIgnore
    protected boolean isset_depFormScrappedGoodsId = false;
    private String scrappedCode = null;
    @JsonIgnore
    protected boolean isset_scrappedCode = false;
    private String scrappedName = null;
    @JsonIgnore
    protected boolean isset_scrappedName = false;
    private String beiz = null;
    @JsonIgnore
    protected boolean isset_beiz = false;
    private Long usingGoodsHisId = null;
    @JsonIgnore
    protected boolean isset_usingGoodsHisId = false;
    private Long depFormScrappedId = null;
    @JsonIgnore
    protected boolean isset_depFormScrappedId = false;
    private Long whGoodsId = null;
    @JsonIgnore
    protected boolean isset_whGoodsId = false;
    private Integer scrappedCounts = null;
    @JsonIgnore
    protected boolean isset_scrappedCounts = false;
    private Integer initCount = null;
    @JsonIgnore
    protected boolean isset_initCount = false;
    private Long depFormLendingModelId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingModelId = false;
    private Long depFormLendingGoodsId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingGoodsId = false;
    private Long depFormLendingId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingId = false;
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormScrappedModel() {
    }
    /**
     * æ ¹æ®ä¸»é”®æž„造对象
     */
    public DepFormScrappedModel(Long id) {
        this.setId(id);
    }
    /**
     * è®¾ç½®ä¸»é”®å€¼
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
    public Long getDepFormScrappedGoodsId() {
        return this.depFormScrappedGoodsId;
    }
    public void setDepFormScrappedGoodsId(Long depFormScrappedGoodsId) {
        this.depFormScrappedGoodsId = depFormScrappedGoodsId;
        this.isset_depFormScrappedGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormScrappedGoodsId() {
        return this.depFormScrappedGoodsId == null;
    }
    public String getScrappedCode() {
        return this.scrappedCode;
    }
    public void setScrappedCode(String scrappedCode) {
        this.scrappedCode = scrappedCode;
        this.isset_scrappedCode = true;
    }
    @JsonIgnore
    public boolean isEmptyScrappedCode() {
        return this.scrappedCode == null || this.scrappedCode.length() == 0;
    }
    public String getScrappedName() {
        return this.scrappedName;
    }
    public void setScrappedName(String scrappedName) {
        this.scrappedName = scrappedName;
        this.isset_scrappedName = true;
    }
    @JsonIgnore
    public boolean isEmptyScrappedName() {
        return this.scrappedName == null || this.scrappedName.length() == 0;
    }
    public String getBeiz() {
        return this.beiz;
    }
    public void setBeiz(String beiz) {
        this.beiz = beiz;
        this.isset_beiz = true;
    }
    @JsonIgnore
    public boolean isEmptyBeiz() {
        return this.beiz == null || this.beiz.length() == 0;
    }
    public Long getUsingGoodsHisId() {
        return this.usingGoodsHisId;
    }
    public void setUsingGoodsHisId(Long usingGoodsHisId) {
        this.usingGoodsHisId = usingGoodsHisId;
        this.isset_usingGoodsHisId = true;
    }
    @JsonIgnore
    public boolean isEmptyUsingGoodsHisId() {
        return this.usingGoodsHisId == null;
    }
    public Long getDepFormScrappedId() {
        return this.depFormScrappedId;
    }
    public void setDepFormScrappedId(Long depFormScrappedId) {
        this.depFormScrappedId = depFormScrappedId;
        this.isset_depFormScrappedId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormScrappedId() {
        return this.depFormScrappedId == null;
    }
    public Long getWhGoodsId() {
        return this.whGoodsId;
    }
    public void setWhGoodsId(Long whGoodsId) {
        this.whGoodsId = whGoodsId;
        this.isset_whGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyWhGoodsId() {
        return this.whGoodsId == null;
    }
    public Integer getScrappedCounts() {
        return this.scrappedCounts;
    }
    public void setScrappedCounts(Integer scrappedCounts) {
        this.scrappedCounts = scrappedCounts;
        this.isset_scrappedCounts = true;
    }
    @JsonIgnore
    public boolean isEmptyScrappedCounts() {
        return this.scrappedCounts == null;
    }
    public Integer getInitCount() {
        return this.initCount;
    }
    public void setInitCount(Integer initCount) {
        this.initCount = initCount;
        this.isset_initCount = true;
    }
    @JsonIgnore
    public boolean isEmptyInitCount() {
        return this.initCount == null;
    }
    public Long getDepFormLendingModelId() {
        return this.depFormLendingModelId;
    }
    public void setDepFormLendingModelId(Long depFormLendingModelId) {
        this.depFormLendingModelId = depFormLendingModelId;
        this.isset_depFormLendingModelId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingModelId() {
        return this.depFormLendingModelId == null;
    }
    public Long getDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId;
    }
    public void setDepFormLendingGoodsId(Long depFormLendingGoodsId) {
        this.depFormLendingGoodsId = depFormLendingGoodsId;
        this.isset_depFormLendingGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId == null;
    }
    public Long getDepFormLendingId() {
        return this.depFormLendingId;
    }
    public void setDepFormLendingId(Long depFormLendingId) {
        this.depFormLendingId = depFormLendingId;
        this.isset_depFormLendingId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingId() {
        return this.depFormLendingId == null;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("depFormScrappedGoodsId=").append(this.depFormScrappedGoodsId)
                .append("scrappedCode=").append(this.scrappedCode)
                .append("scrappedName=").append(this.scrappedName)
                .append("beiz=").append(this.beiz)
                .append("usingGoodsHisId=").append(this.usingGoodsHisId)
                .append("depFormScrappedId=").append(this.depFormScrappedId)
                .append("whGoodsId=").append(this.whGoodsId)
                .append("scrappedCounts=").append(this.scrappedCounts)
                .append("initCount=").append(this.initCount)
                .append("depFormLendingModelId=").append(this.depFormLendingModelId)
                .append("depFormLendingGoodsId=").append(this.depFormLendingGoodsId)
                .append("depFormLendingId=").append(this.depFormLendingId)
                .toString();
    }
    /**
     * å…‹éš†
     */
    public DepFormScrappedModel $clone() {
        DepFormScrappedModel dep_form_scrapped_model = new DepFormScrappedModel();
        // æ•°æ®åº“名称
        //dep_form_scrapped_model.setDatabaseName_(this.getDatabaseName_());
        // ä¸»é”®
        if (this.isset_id) {
            dep_form_scrapped_model.setId(this.getId());
        }
        // æ™®é€šå±žæ€§
        if (this.isset_depFormScrappedGoodsId) {
            dep_form_scrapped_model.setDepFormScrappedGoodsId(this.getDepFormScrappedGoodsId());
        }
        if (this.isset_scrappedCode) {
            dep_form_scrapped_model.setScrappedCode(this.getScrappedCode());
        }
        if (this.isset_scrappedName) {
            dep_form_scrapped_model.setScrappedName(this.getScrappedName());
        }
        if (this.isset_beiz) {
            dep_form_scrapped_model.setBeiz(this.getBeiz());
        }
        if (this.isset_usingGoodsHisId) {
            dep_form_scrapped_model.setUsingGoodsHisId(this.getUsingGoodsHisId());
        }
        if (this.isset_depFormScrappedId) {
            dep_form_scrapped_model.setDepFormScrappedId(this.getDepFormScrappedId());
        }
        if (this.isset_whGoodsId) {
            dep_form_scrapped_model.setWhGoodsId(this.getWhGoodsId());
        }
        if (this.isset_scrappedCounts) {
            dep_form_scrapped_model.setScrappedCounts(this.getScrappedCounts());
        }
        if (this.isset_initCount) {
            dep_form_scrapped_model.setInitCount(this.getInitCount());
        }
        if (this.isset_depFormLendingModelId) {
            dep_form_scrapped_model.setDepFormLendingModelId(this.getDepFormLendingModelId());
        }
        if (this.isset_depFormLendingGoodsId) {
            dep_form_scrapped_model.setDepFormLendingGoodsId(this.getDepFormLendingGoodsId());
        }
        if (this.isset_depFormLendingId) {
            dep_form_scrapped_model.setDepFormLendingId(this.getDepFormLendingId());
        }
        return dep_form_scrapped_model;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrappedModel_mapper.java
New file
@@ -0,0 +1,389 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_SCRAPPED_MODEL *
 * @author genrator
 */
public class DepFormScrappedModel_mapper extends DepFormScrappedModel implements BaseMapper<DepFormScrappedModel> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormScrappedModel> ROW_MAPPER = new DepFormScrappedModelRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String DepFormScrappedGoodsId = "dep_form_scrapped_goods_id";
    public static final String ScrappedCode = "scrapped_code";
    public static final String ScrappedName = "scrapped_name";
    public static final String Beiz = "beiz";
    public static final String UsingGoodsHisId = "using_goods_his_id";
    public static final String DepFormScrappedId = "dep_form_scrapped_id";
    public static final String WhGoodsId = "wh_goods_id";
    public static final String ScrappedCounts = "scrapped_counts";
    public static final String InitCount = "init_count";
    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 DepFormScrappedModel_mapper(DepFormScrappedModel depFormScrappedModel) {
        if (depFormScrappedModel == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormScrappedModel.isset_id) {
            this.setId(depFormScrappedModel.getId());
        }
        //普通属性
        if (depFormScrappedModel.isset_depFormScrappedGoodsId) {
            this.setDepFormScrappedGoodsId(depFormScrappedModel.getDepFormScrappedGoodsId());
        }
        if (depFormScrappedModel.isset_scrappedCode) {
            this.setScrappedCode(depFormScrappedModel.getScrappedCode());
        }
        if (depFormScrappedModel.isset_scrappedName) {
            this.setScrappedName(depFormScrappedModel.getScrappedName());
        }
        if (depFormScrappedModel.isset_beiz) {
            this.setBeiz(depFormScrappedModel.getBeiz());
        }
        if (depFormScrappedModel.isset_usingGoodsHisId) {
            this.setUsingGoodsHisId(depFormScrappedModel.getUsingGoodsHisId());
        }
        if (depFormScrappedModel.isset_depFormScrappedId) {
            this.setDepFormScrappedId(depFormScrappedModel.getDepFormScrappedId());
        }
        if (depFormScrappedModel.isset_whGoodsId) {
            this.setWhGoodsId(depFormScrappedModel.getWhGoodsId());
        }
        if (depFormScrappedModel.isset_scrappedCounts) {
            this.setScrappedCounts(depFormScrappedModel.getScrappedCounts());
        }
        if (depFormScrappedModel.isset_initCount) {
            this.setInitCount(depFormScrappedModel.getInitCount());
        }
        if (depFormScrappedModel.isset_depFormLendingModelId) {
            this.setDepFormLendingModelId(depFormScrappedModel.getDepFormLendingModelId());
        }
        if (depFormScrappedModel.isset_depFormLendingGoodsId) {
            this.setDepFormLendingGoodsId(depFormScrappedModel.getDepFormLendingGoodsId());
        }
        if (depFormScrappedModel.isset_depFormLendingId) {
            this.setDepFormLendingId(depFormScrappedModel.getDepFormLendingId());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_scrapped_model.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_scrapped_model";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(DepFormScrappedGoodsId, this.getDepFormScrappedGoodsId(), this.isset_depFormScrappedGoodsId);
        ib.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ib.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ib.set(Beiz, this.getBeiz(), this.isset_beiz);
        ib.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ib.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
        ib.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ib.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts);
        ib.set(InitCount, this.getInitCount(), this.isset_initCount);
        ib.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId);
        ib.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ib.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(DepFormScrappedGoodsId, this.getDepFormScrappedGoodsId(), this.isset_depFormScrappedGoodsId);
        ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts);
        ub.set(InitCount, this.getInitCount(), this.isset_initCount);
        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.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(DepFormScrappedGoodsId, this.getDepFormScrappedGoodsId(), this.isset_depFormScrappedGoodsId);
        ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts);
        ub.set(InitCount, this.getInitCount(), this.isset_initCount);
        ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(DepFormScrappedGoodsId, this.getDepFormScrappedGoodsId(), this.isset_depFormScrappedGoodsId);
        ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(UsingGoodsHisId, this.getUsingGoodsHisId(), this.isset_usingGoodsHisId);
        ub.set(DepFormScrappedId, this.getDepFormScrappedId(), this.isset_depFormScrappedId);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(ScrappedCounts, this.getScrappedCounts(), this.isset_scrappedCounts);
        ub.set(InitCount, this.getInitCount(), this.isset_initCount);
        ub.set(DepFormLendingModelId, this.getDepFormLendingModelId(), this.isset_depFormLendingModelId);
        ub.set(DepFormLendingGoodsId, this.getDepFormLendingGoodsId(), this.isset_depFormLendingGoodsId);
        ub.set(DepFormLendingId, this.getDepFormLendingId(), this.isset_depFormLendingId);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormScrappedModel mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormScrappedModel toDepFormScrappedModel() {
        return super.$clone();
    }
}
/**
 * dep_form_scrapped_model RowMapper
 *
 * @author genrator
 */
class DepFormScrappedModelRowMapper implements RowMapper<DepFormScrappedModel> {
    @Override
    public DepFormScrappedModel mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormScrappedModel dep_form_scrapped_model = new DepFormScrappedModel();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.Id);
        if (columnIndex > 0) {
            dep_form_scrapped_model.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.DepFormScrappedGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_model.setDepFormScrappedGoodsId(null);
            } else {
                dep_form_scrapped_model.setDepFormScrappedGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.ScrappedCode);
        if (columnIndex > 0) {
            dep_form_scrapped_model.setScrappedCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.ScrappedName);
        if (columnIndex > 0) {
            dep_form_scrapped_model.setScrappedName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.Beiz);
        if (columnIndex > 0) {
            dep_form_scrapped_model.setBeiz(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.UsingGoodsHisId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_model.setUsingGoodsHisId(null);
            } else {
                dep_form_scrapped_model.setUsingGoodsHisId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.DepFormScrappedId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_model.setDepFormScrappedId(null);
            } else {
                dep_form_scrapped_model.setDepFormScrappedId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.WhGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_model.setWhGoodsId(null);
            } else {
                dep_form_scrapped_model.setWhGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.ScrappedCounts);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_model.setScrappedCounts(null);
            } else {
                dep_form_scrapped_model.setScrappedCounts(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.InitCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_model.setInitCount(null);
            } else {
                dep_form_scrapped_model.setInitCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.DepFormLendingModelId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_model.setDepFormLendingModelId(null);
            } else {
                dep_form_scrapped_model.setDepFormLendingModelId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.DepFormLendingGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_model.setDepFormLendingGoodsId(null);
            } else {
                dep_form_scrapped_model.setDepFormLendingGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrappedModel_mapper.DepFormLendingId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped_model.setDepFormLendingId(null);
            } else {
                dep_form_scrapped_model.setDepFormLendingId(rs.getLong(columnIndex));
            }
        }
        return dep_form_scrapped_model;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped_mapper.java
New file
@@ -0,0 +1,417 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:DEP_FORM_SCRAPPED *
 * @author genrator
 */
public class DepFormScrapped_mapper extends DepFormScrapped implements BaseMapper<DepFormScrapped> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<DepFormScrapped> ROW_MAPPER = new DepFormScrappedRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String BusinessFormCode = "business_form_code";
    public static final String AgencyId = "agency_id";
    public static final String AgencyName = "agency_name";
    public static final String OperatorId = "operator_id";
    public static final String OperatorName = "operator_name";
    public static final String DealTime = "deal_time";
    public static final String DepartmentId = "department_id";
    public static final String DepartmentName = "department_name";
    public static final String ReviewerId = "reviewer_id";
    public static final String ReviewerName = "reviewer_name";
    public static final String ReviewDate = "review_date";
    public static final String ReviewStates = "review_states";
    public static final String Beiz = "beiz";
    public static final String Beiz2 = "beiz2";
    public static final String UploadFiles = "upload_files";
    /**
     * é»˜è®¤æž„造函数
     */
    public DepFormScrapped_mapper(DepFormScrapped depFormScrapped) {
        if (depFormScrapped == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (depFormScrapped.isset_id) {
            this.setId(depFormScrapped.getId());
        }
        //普通属性
        if (depFormScrapped.isset_businessFormCode) {
            this.setBusinessFormCode(depFormScrapped.getBusinessFormCode());
        }
        if (depFormScrapped.isset_agencyId) {
            this.setAgencyId(depFormScrapped.getAgencyId());
        }
        if (depFormScrapped.isset_agencyName) {
            this.setAgencyName(depFormScrapped.getAgencyName());
        }
        if (depFormScrapped.isset_operatorId) {
            this.setOperatorId(depFormScrapped.getOperatorId());
        }
        if (depFormScrapped.isset_operatorName) {
            this.setOperatorName(depFormScrapped.getOperatorName());
        }
        if (depFormScrapped.isset_dealTime) {
            this.setDealTime(depFormScrapped.getDealTime());
        }
        if (depFormScrapped.isset_departmentId) {
            this.setDepartmentId(depFormScrapped.getDepartmentId());
        }
        if (depFormScrapped.isset_departmentName) {
            this.setDepartmentName(depFormScrapped.getDepartmentName());
        }
        if (depFormScrapped.isset_reviewerId) {
            this.setReviewerId(depFormScrapped.getReviewerId());
        }
        if (depFormScrapped.isset_reviewerName) {
            this.setReviewerName(depFormScrapped.getReviewerName());
        }
        if (depFormScrapped.isset_reviewDate) {
            this.setReviewDate(depFormScrapped.getReviewDate());
        }
        if (depFormScrapped.isset_reviewStates) {
            this.setReviewStates(depFormScrapped.getReviewStates());
        }
        if (depFormScrapped.isset_beiz) {
            this.setBeiz(depFormScrapped.getBeiz());
        }
        if (depFormScrapped.isset_beiz2) {
            this.setBeiz2(depFormScrapped.getBeiz2());
        }
        if (depFormScrapped.isset_uploadFiles) {
            this.setUploadFiles(depFormScrapped.getUploadFiles());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(dep_form_scrapped.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "dep_form_scrapped";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ib.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ib.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ib.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ib.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
        ib.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
        ib.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
        ib.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
        ib.set(Beiz, this.getBeiz(), this.isset_beiz);
        ib.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ib.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
        ub.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
        ub.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
        ub.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
        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.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(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
        ub.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
        ub.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
        ub.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        ub.set(ReviewerId, this.getReviewerId(), this.isset_reviewerId);
        ub.set(ReviewerName, this.getReviewerName(), this.isset_reviewerName);
        ub.set(ReviewDate, this.getReviewDate(), this.isset_reviewDate);
        ub.set(ReviewStates, this.getReviewStates(), this.isset_reviewStates);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @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);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public DepFormScrapped mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public DepFormScrapped toDepFormScrapped() {
        return super.$clone();
    }
}
/**
 * dep_form_scrapped RowMapper
 *
 * @author genrator
 */
class DepFormScrappedRowMapper implements RowMapper<DepFormScrapped> {
    @Override
    public DepFormScrapped mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormScrapped dep_form_scrapped = new DepFormScrapped();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.Id);
        if (columnIndex > 0) {
            dep_form_scrapped.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.BusinessFormCode);
        if (columnIndex > 0) {
            dep_form_scrapped.setBusinessFormCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.AgencyId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setAgencyId(null);
            } else {
                dep_form_scrapped.setAgencyId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.AgencyName);
        if (columnIndex > 0) {
            dep_form_scrapped.setAgencyName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OperatorId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setOperatorId(null);
            } else {
                dep_form_scrapped.setOperatorId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OperatorName);
        if (columnIndex > 0) {
            dep_form_scrapped.setOperatorName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.DealTime);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setDealTime(null);
            } else {
                dep_form_scrapped.setDealTime(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.DepartmentId);
        if (columnIndex > 0) {
            dep_form_scrapped.setDepartmentId(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.DepartmentName);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setDepartmentName(null);
            } else {
                dep_form_scrapped.setDepartmentName(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ReviewerId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setReviewerId(null);
            } else {
                dep_form_scrapped.setReviewerId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ReviewerName);
        if (columnIndex > 0) {
            dep_form_scrapped.setReviewerName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ReviewDate);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setReviewDate(null);
            } else {
                dep_form_scrapped.setReviewDate(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ReviewStates);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setReviewStates(null);
            } else {
                dep_form_scrapped.setReviewStates(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.Beiz);
        if (columnIndex > 0) {
            dep_form_scrapped.setBeiz(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.Beiz2);
        if (columnIndex > 0) {
            dep_form_scrapped.setBeiz2(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.UploadFiles);
        if (columnIndex > 0) {
            dep_form_scrapped.setUploadFiles(rs.getString(columnIndex));
        }
        return dep_form_scrapped;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/UsingGoodsHis.java
@@ -20,29 +20,25 @@
    protected boolean isset_id = false;
    // å±žæ€§åˆ—表
    private Long goodsUserPhone = null;
    private Long businessFormId = null;
    @JsonIgnore
    protected boolean isset_goodsUserPhone = false;
    protected boolean isset_businessFormId = false;
    private String goodsUserName = null;
    private String businessFormCode = null;
    @JsonIgnore
    protected boolean isset_goodsUserName = false;
    protected boolean isset_businessFormCode = false;
    private Long nowUserPhone = null;
    private String businessFormName = null;
    @JsonIgnore
    protected boolean isset_nowUserPhone = false;
    private String nowUserName = null;
    @JsonIgnore
    protected boolean isset_nowUserName = false;
    protected boolean isset_businessFormName = false;
    private String beiz = null;
    @JsonIgnore
    protected boolean isset_beiz = false;
    private Long depFormLendingModelId = null;
    private Integer classification = null;
    @JsonIgnore
    protected boolean isset_depFormLendingModelId = false;
    protected boolean isset_classification = false;
    private Long operatorId = null;
    @JsonIgnore
@@ -55,6 +51,58 @@
    private Long dealTime = null;
    @JsonIgnore
    protected boolean isset_dealTime = false;
    private Long depFormLendingModelId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingModelId = false;
    private Long depFormLendingGoodsId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingGoodsId = false;
    private Long depFormLendingId = null;
    @JsonIgnore
    protected boolean isset_depFormLendingId = false;
    private Long whGoodsId = null;
    @JsonIgnore
    protected boolean isset_whGoodsId = false;
    private Integer initialCount = null;
    @JsonIgnore
    protected boolean isset_initialCount = false;
    private Integer thisCount = null;
    @JsonIgnore
    protected boolean isset_thisCount = false;
    private Integer endCount = null;
    @JsonIgnore
    protected boolean isset_endCount = false;
    private String scrappedCode = null;
    @JsonIgnore
    protected boolean isset_scrappedCode = false;
    private String scrappedName = null;
    @JsonIgnore
    protected boolean isset_scrappedName = false;
    private Long warehouseId = null;
    @JsonIgnore
    protected boolean isset_warehouseId = false;
    private String warehouseName = null;
    @JsonIgnore
    protected boolean isset_warehouseName = false;
    private String departmentId = null;
    @JsonIgnore
    protected boolean isset_departmentId = false;
    private Long departmentName = null;
    @JsonIgnore
    protected boolean isset_departmentName = false;
    /**
     * é»˜è®¤æž„造函数
@@ -91,60 +139,46 @@
        return this.id == null;
    }
    public Long getGoodsUserPhone() {
        return this.goodsUserPhone;
    public Long getBusinessFormId() {
        return this.businessFormId;
    }
    public void setGoodsUserPhone(Long goodsUserPhone) {
        this.goodsUserPhone = goodsUserPhone;
        this.isset_goodsUserPhone = true;
    public void setBusinessFormId(Long businessFormId) {
        this.businessFormId = businessFormId;
        this.isset_businessFormId = true;
    }
    @JsonIgnore
    public boolean isEmptyGoodsUserPhone() {
        return this.goodsUserPhone == null;
    public boolean isEmptyBusinessFormId() {
        return this.businessFormId == null;
    }
    public String getGoodsUserName() {
        return this.goodsUserName;
    public String getBusinessFormCode() {
        return this.businessFormCode;
    }
    public void setGoodsUserName(String goodsUserName) {
        this.goodsUserName = goodsUserName;
        this.isset_goodsUserName = true;
    public void setBusinessFormCode(String businessFormCode) {
        this.businessFormCode = businessFormCode;
        this.isset_businessFormCode = true;
    }
    @JsonIgnore
    public boolean isEmptyGoodsUserName() {
        return this.goodsUserName == null || this.goodsUserName.length() == 0;
    public boolean isEmptyBusinessFormCode() {
        return this.businessFormCode == null || this.businessFormCode.length() == 0;
    }
    public Long getNowUserPhone() {
        return this.nowUserPhone;
    public String getBusinessFormName() {
        return this.businessFormName;
    }
    public void setNowUserPhone(Long nowUserPhone) {
        this.nowUserPhone = nowUserPhone;
        this.isset_nowUserPhone = true;
    public void setBusinessFormName(String businessFormName) {
        this.businessFormName = businessFormName;
        this.isset_businessFormName = true;
    }
    @JsonIgnore
    public boolean isEmptyNowUserPhone() {
        return this.nowUserPhone == null;
    }
    public String getNowUserName() {
        return this.nowUserName;
    }
    public void setNowUserName(String nowUserName) {
        this.nowUserName = nowUserName;
        this.isset_nowUserName = true;
    }
    @JsonIgnore
    public boolean isEmptyNowUserName() {
        return this.nowUserName == null || this.nowUserName.length() == 0;
    public boolean isEmptyBusinessFormName() {
        return this.businessFormName == null || this.businessFormName.length() == 0;
    }
    public String getBeiz() {
@@ -161,18 +195,18 @@
        return this.beiz == null || this.beiz.length() == 0;
    }
    public Long getDepFormLendingModelId() {
        return this.depFormLendingModelId;
    public Integer getClassification() {
        return this.classification;
    }
    public void setDepFormLendingModelId(Long depFormLendingModelId) {
        this.depFormLendingModelId = depFormLendingModelId;
        this.isset_depFormLendingModelId = true;
    public void setClassification(Integer classification) {
        this.classification = classification;
        this.isset_classification = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingModelId() {
        return this.depFormLendingModelId == null;
    public boolean isEmptyClassification() {
        return this.classification == null;
    }
    public Long getOperatorId() {
@@ -217,6 +251,188 @@
        return this.dealTime == null;
    }
    public Long getDepFormLendingModelId() {
        return this.depFormLendingModelId;
    }
    public void setDepFormLendingModelId(Long depFormLendingModelId) {
        this.depFormLendingModelId = depFormLendingModelId;
        this.isset_depFormLendingModelId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingModelId() {
        return this.depFormLendingModelId == null;
    }
    public Long getDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId;
    }
    public void setDepFormLendingGoodsId(Long depFormLendingGoodsId) {
        this.depFormLendingGoodsId = depFormLendingGoodsId;
        this.isset_depFormLendingGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingGoodsId() {
        return this.depFormLendingGoodsId == null;
    }
    public Long getDepFormLendingId() {
        return this.depFormLendingId;
    }
    public void setDepFormLendingId(Long depFormLendingId) {
        this.depFormLendingId = depFormLendingId;
        this.isset_depFormLendingId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepFormLendingId() {
        return this.depFormLendingId == null;
    }
    public Long getWhGoodsId() {
        return this.whGoodsId;
    }
    public void setWhGoodsId(Long whGoodsId) {
        this.whGoodsId = whGoodsId;
        this.isset_whGoodsId = true;
    }
    @JsonIgnore
    public boolean isEmptyWhGoodsId() {
        return this.whGoodsId == null;
    }
    public Integer getInitialCount() {
        return this.initialCount;
    }
    public void setInitialCount(Integer initialCount) {
        this.initialCount = initialCount;
        this.isset_initialCount = true;
    }
    @JsonIgnore
    public boolean isEmptyInitialCount() {
        return this.initialCount == null;
    }
    public Integer getThisCount() {
        return this.thisCount;
    }
    public void setThisCount(Integer thisCount) {
        this.thisCount = thisCount;
        this.isset_thisCount = true;
    }
    @JsonIgnore
    public boolean isEmptyThisCount() {
        return this.thisCount == null;
    }
    public Integer getEndCount() {
        return this.endCount;
    }
    public void setEndCount(Integer endCount) {
        this.endCount = endCount;
        this.isset_endCount = true;
    }
    @JsonIgnore
    public boolean isEmptyEndCount() {
        return this.endCount == null;
    }
    public String getScrappedCode() {
        return this.scrappedCode;
    }
    public void setScrappedCode(String scrappedCode) {
        this.scrappedCode = scrappedCode;
        this.isset_scrappedCode = true;
    }
    @JsonIgnore
    public boolean isEmptyScrappedCode() {
        return this.scrappedCode == null || this.scrappedCode.length() == 0;
    }
    public String getScrappedName() {
        return this.scrappedName;
    }
    public void setScrappedName(String scrappedName) {
        this.scrappedName = scrappedName;
        this.isset_scrappedName = true;
    }
    @JsonIgnore
    public boolean isEmptyScrappedName() {
        return this.scrappedName == null || this.scrappedName.length() == 0;
    }
    public Long getWarehouseId() {
        return this.warehouseId;
    }
    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
        this.isset_warehouseId = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseId() {
        return this.warehouseId == null;
    }
    public String getWarehouseName() {
        return this.warehouseName;
    }
    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
        this.isset_warehouseName = true;
    }
    @JsonIgnore
    public boolean isEmptyWarehouseName() {
        return this.warehouseName == null || this.warehouseName.length() == 0;
    }
    public String getDepartmentId() {
        return this.departmentId;
    }
    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
        this.isset_departmentId = true;
    }
    @JsonIgnore
    public boolean isEmptyDepartmentId() {
        return this.departmentId == null || this.departmentId.length() == 0;
    }
    public Long getDepartmentName() {
        return this.departmentName;
    }
    public void setDepartmentName(Long departmentName) {
        this.departmentName = departmentName;
        this.isset_departmentName = true;
    }
    @JsonIgnore
    public boolean isEmptyDepartmentName() {
        return this.departmentName == null;
    }
    /**
     * é‡å†™ toString() æ–¹æ³•
     */
@@ -224,15 +440,27 @@
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("goodsUserPhone=").append(this.goodsUserPhone)
                .append("goodsUserName=").append(this.goodsUserName)
                .append("nowUserPhone=").append(this.nowUserPhone)
                .append("nowUserName=").append(this.nowUserName)
                .append("businessFormId=").append(this.businessFormId)
                .append("businessFormCode=").append(this.businessFormCode)
                .append("businessFormName=").append(this.businessFormName)
                .append("beiz=").append(this.beiz)
                .append("depFormLendingModelId=").append(this.depFormLendingModelId)
                .append("classification=").append(this.classification)
                .append("operatorId=").append(this.operatorId)
                .append("operatorName=").append(this.operatorName)
                .append("dealTime=").append(this.dealTime)
                .append("depFormLendingModelId=").append(this.depFormLendingModelId)
                .append("depFormLendingGoodsId=").append(this.depFormLendingGoodsId)
                .append("depFormLendingId=").append(this.depFormLendingId)
                .append("whGoodsId=").append(this.whGoodsId)
                .append("initialCount=").append(this.initialCount)
                .append("thisCount=").append(this.thisCount)
                .append("endCount=").append(this.endCount)
                .append("scrappedCode=").append(this.scrappedCode)
                .append("scrappedName=").append(this.scrappedName)
                .append("warehouseId=").append(this.warehouseId)
                .append("warehouseName=").append(this.warehouseName)
                .append("departmentId=").append(this.departmentId)
                .append("departmentName=").append(this.departmentName)
                .toString();
    }
@@ -250,23 +478,20 @@
            using_goods_his.setId(this.getId());
        }
        // æ™®é€šå±žæ€§
        if (this.isset_goodsUserPhone) {
            using_goods_his.setGoodsUserPhone(this.getGoodsUserPhone());
        if (this.isset_businessFormId) {
            using_goods_his.setBusinessFormId(this.getBusinessFormId());
        }
        if (this.isset_goodsUserName) {
            using_goods_his.setGoodsUserName(this.getGoodsUserName());
        if (this.isset_businessFormCode) {
            using_goods_his.setBusinessFormCode(this.getBusinessFormCode());
        }
        if (this.isset_nowUserPhone) {
            using_goods_his.setNowUserPhone(this.getNowUserPhone());
        }
        if (this.isset_nowUserName) {
            using_goods_his.setNowUserName(this.getNowUserName());
        if (this.isset_businessFormName) {
            using_goods_his.setBusinessFormName(this.getBusinessFormName());
        }
        if (this.isset_beiz) {
            using_goods_his.setBeiz(this.getBeiz());
        }
        if (this.isset_depFormLendingModelId) {
            using_goods_his.setDepFormLendingModelId(this.getDepFormLendingModelId());
        if (this.isset_classification) {
            using_goods_his.setClassification(this.getClassification());
        }
        if (this.isset_operatorId) {
            using_goods_his.setOperatorId(this.getOperatorId());
@@ -277,6 +502,45 @@
        if (this.isset_dealTime) {
            using_goods_his.setDealTime(this.getDealTime());
        }
        if (this.isset_depFormLendingModelId) {
            using_goods_his.setDepFormLendingModelId(this.getDepFormLendingModelId());
        }
        if (this.isset_depFormLendingGoodsId) {
            using_goods_his.setDepFormLendingGoodsId(this.getDepFormLendingGoodsId());
        }
        if (this.isset_depFormLendingId) {
            using_goods_his.setDepFormLendingId(this.getDepFormLendingId());
        }
        if (this.isset_whGoodsId) {
            using_goods_his.setWhGoodsId(this.getWhGoodsId());
        }
        if (this.isset_initialCount) {
            using_goods_his.setInitialCount(this.getInitialCount());
        }
        if (this.isset_thisCount) {
            using_goods_his.setThisCount(this.getThisCount());
        }
        if (this.isset_endCount) {
            using_goods_his.setEndCount(this.getEndCount());
        }
        if (this.isset_scrappedCode) {
            using_goods_his.setScrappedCode(this.getScrappedCode());
        }
        if (this.isset_scrappedName) {
            using_goods_his.setScrappedName(this.getScrappedName());
        }
        if (this.isset_warehouseId) {
            using_goods_his.setWarehouseId(this.getWarehouseId());
        }
        if (this.isset_warehouseName) {
            using_goods_his.setWarehouseName(this.getWarehouseName());
        }
        if (this.isset_departmentId) {
            using_goods_his.setDepartmentId(this.getDepartmentId());
        }
        if (this.isset_departmentName) {
            using_goods_his.setDepartmentName(this.getDepartmentName());
        }
        return using_goods_his;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/UsingGoodsHis_mapper.java
New file
@@ -0,0 +1,513 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:USING_GOODS_HIS *
 * @author genrator
 */
public class UsingGoodsHis_mapper extends UsingGoodsHis implements BaseMapper<UsingGoodsHis> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<UsingGoodsHis> ROW_MAPPER = new UsingGoodsHisRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String BusinessFormId = "business_form_id";
    public static final String BusinessFormCode = "business_form_code";
    public static final String BusinessFormName = "business_form_name";
    public static final String Beiz = "beiz";
    public static final String Classification = "classification";
    public static final String OperatorId = "operator_id";
    public static final String OperatorName = "operator_name";
    public static final String DealTime = "deal_time";
    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 WhGoodsId = "wh_goods_id";
    public static final String InitialCount = "initial_count";
    public static final String ThisCount = "this_count";
    public static final String EndCount = "end_count";
    public static final String ScrappedCode = "scrapped_code";
    public static final String ScrappedName = "scrapped_name";
    public static final String WarehouseId = "warehouse_id";
    public static final String WarehouseName = "warehouse_name";
    public static final String DepartmentId = "department_id";
    public static final String DepartmentName = "department_name";
    /**
     * é»˜è®¤æž„造函数
     */
    public UsingGoodsHis_mapper(UsingGoodsHis usingGoodsHis) {
        if (usingGoodsHis == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (usingGoodsHis.isset_id) {
            this.setId(usingGoodsHis.getId());
        }
        //普通属性
        if (usingGoodsHis.isset_businessFormId) {
            this.setBusinessFormId(usingGoodsHis.getBusinessFormId());
        }
        if (usingGoodsHis.isset_businessFormCode) {
            this.setBusinessFormCode(usingGoodsHis.getBusinessFormCode());
        }
        if (usingGoodsHis.isset_businessFormName) {
            this.setBusinessFormName(usingGoodsHis.getBusinessFormName());
        }
        if (usingGoodsHis.isset_beiz) {
            this.setBeiz(usingGoodsHis.getBeiz());
        }
        if (usingGoodsHis.isset_classification) {
            this.setClassification(usingGoodsHis.getClassification());
        }
        if (usingGoodsHis.isset_operatorId) {
            this.setOperatorId(usingGoodsHis.getOperatorId());
        }
        if (usingGoodsHis.isset_operatorName) {
            this.setOperatorName(usingGoodsHis.getOperatorName());
        }
        if (usingGoodsHis.isset_dealTime) {
            this.setDealTime(usingGoodsHis.getDealTime());
        }
        if (usingGoodsHis.isset_depFormLendingModelId) {
            this.setDepFormLendingModelId(usingGoodsHis.getDepFormLendingModelId());
        }
        if (usingGoodsHis.isset_depFormLendingGoodsId) {
            this.setDepFormLendingGoodsId(usingGoodsHis.getDepFormLendingGoodsId());
        }
        if (usingGoodsHis.isset_depFormLendingId) {
            this.setDepFormLendingId(usingGoodsHis.getDepFormLendingId());
        }
        if (usingGoodsHis.isset_whGoodsId) {
            this.setWhGoodsId(usingGoodsHis.getWhGoodsId());
        }
        if (usingGoodsHis.isset_initialCount) {
            this.setInitialCount(usingGoodsHis.getInitialCount());
        }
        if (usingGoodsHis.isset_thisCount) {
            this.setThisCount(usingGoodsHis.getThisCount());
        }
        if (usingGoodsHis.isset_endCount) {
            this.setEndCount(usingGoodsHis.getEndCount());
        }
        if (usingGoodsHis.isset_scrappedCode) {
            this.setScrappedCode(usingGoodsHis.getScrappedCode());
        }
        if (usingGoodsHis.isset_scrappedName) {
            this.setScrappedName(usingGoodsHis.getScrappedName());
        }
        if (usingGoodsHis.isset_warehouseId) {
            this.setWarehouseId(usingGoodsHis.getWarehouseId());
        }
        if (usingGoodsHis.isset_warehouseName) {
            this.setWarehouseName(usingGoodsHis.getWarehouseName());
        }
        if (usingGoodsHis.isset_departmentId) {
            this.setDepartmentId(usingGoodsHis.getDepartmentId());
        }
        if (usingGoodsHis.isset_departmentName) {
            this.setDepartmentName(usingGoodsHis.getDepartmentName());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(using_goods_his.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "using_goods_his";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(BusinessFormId, this.getBusinessFormId(), this.isset_businessFormId);
        ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ib.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
        ib.set(Beiz, this.getBeiz(), this.isset_beiz);
        ib.set(Classification, this.getClassification(), this.isset_classification);
        ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ib.set(DealTime, this.getDealTime(), this.isset_dealTime);
        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(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ib.set(InitialCount, this.getInitialCount(), this.isset_initialCount);
        ib.set(ThisCount, this.getThisCount(), this.isset_thisCount);
        ib.set(EndCount, this.getEndCount(), this.isset_endCount);
        ib.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ib.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ib.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ib.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormId, this.getBusinessFormId(), this.isset_businessFormId);
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(Classification, this.getClassification(), this.isset_classification);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        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(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(InitialCount, this.getInitialCount(), this.isset_initialCount);
        ub.set(ThisCount, this.getThisCount(), this.isset_thisCount);
        ub.set(EndCount, this.getEndCount(), this.isset_endCount);
        ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        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(BusinessFormId, this.getBusinessFormId(), this.isset_businessFormId);
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(Classification, this.getClassification(), this.isset_classification);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        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(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(InitialCount, this.getInitialCount(), this.isset_initialCount);
        ub.set(ThisCount, this.getThisCount(), this.isset_thisCount);
        ub.set(EndCount, this.getEndCount(), this.isset_endCount);
        ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormId, this.getBusinessFormId(), this.isset_businessFormId);
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(Classification, this.getClassification(), this.isset_classification);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        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(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(InitialCount, this.getInitialCount(), this.isset_initialCount);
        ub.set(ThisCount, this.getThisCount(), this.isset_thisCount);
        ub.set(EndCount, this.getEndCount(), this.isset_endCount);
        ub.set(ScrappedCode, this.getScrappedCode(), this.isset_scrappedCode);
        ub.set(ScrappedName, this.getScrappedName(), this.isset_scrappedName);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(DepartmentId, this.getDepartmentId(), this.isset_departmentId);
        ub.set(DepartmentName, this.getDepartmentName(), this.isset_departmentName);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, business_form_id, business_form_code, business_form_name, beiz, classification, operator_id, operator_name, deal_time, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, wh_goods_id, initial_count, this_count, end_count, scrapped_code, scrapped_name, warehouse_id, warehouse_name, department_id, department_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, business_form_id, business_form_code, business_form_name, beiz, classification, operator_id, operator_name, deal_time, dep_form_lending_model_id, dep_form_lending_goods_id, dep_form_lending_id, wh_goods_id, initial_count, this_count, end_count, scrapped_code, scrapped_name, warehouse_id, warehouse_name, department_id, department_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public UsingGoodsHis mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public UsingGoodsHis toUsingGoodsHis() {
        return super.$clone();
    }
}
/**
 * using_goods_his RowMapper
 *
 * @author genrator
 */
class UsingGoodsHisRowMapper implements RowMapper<UsingGoodsHis> {
    @Override
    public UsingGoodsHis mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        UsingGoodsHis using_goods_his = new UsingGoodsHis();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.Id);
        if (columnIndex > 0) {
            using_goods_his.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.BusinessFormId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setBusinessFormId(null);
            } else {
                using_goods_his.setBusinessFormId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.BusinessFormCode);
        if (columnIndex > 0) {
            using_goods_his.setBusinessFormCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.BusinessFormName);
        if (columnIndex > 0) {
            using_goods_his.setBusinessFormName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.Beiz);
        if (columnIndex > 0) {
            using_goods_his.setBeiz(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.Classification);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setClassification(null);
            } else {
                using_goods_his.setClassification(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.OperatorId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setOperatorId(null);
            } else {
                using_goods_his.setOperatorId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.OperatorName);
        if (columnIndex > 0) {
            using_goods_his.setOperatorName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.DealTime);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setDealTime(null);
            } else {
                using_goods_his.setDealTime(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.DepFormLendingModelId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setDepFormLendingModelId(null);
            } else {
                using_goods_his.setDepFormLendingModelId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.DepFormLendingGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setDepFormLendingGoodsId(null);
            } else {
                using_goods_his.setDepFormLendingGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.DepFormLendingId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setDepFormLendingId(null);
            } else {
                using_goods_his.setDepFormLendingId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.WhGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setWhGoodsId(null);
            } else {
                using_goods_his.setWhGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.InitialCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setInitialCount(null);
            } else {
                using_goods_his.setInitialCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.ThisCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setThisCount(null);
            } else {
                using_goods_his.setThisCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.EndCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setEndCount(null);
            } else {
                using_goods_his.setEndCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.ScrappedCode);
        if (columnIndex > 0) {
            using_goods_his.setScrappedCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.ScrappedName);
        if (columnIndex > 0) {
            using_goods_his.setScrappedName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.WarehouseId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setWarehouseId(null);
            } else {
                using_goods_his.setWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.WarehouseName);
        if (columnIndex > 0) {
            using_goods_his.setWarehouseName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.DepartmentId);
        if (columnIndex > 0) {
            using_goods_his.setDepartmentId(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, UsingGoodsHis_mapper.DepartmentName);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                using_goods_his.setDepartmentName(null);
            } else {
                using_goods_his.setDepartmentName(rs.getLong(columnIndex));
            }
        }
        return using_goods_his;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/WhFormOutputGoods_mapper.java
New file
@@ -0,0 +1,309 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:WH_FORM_OUTPUT_GOODS *
 * @author genrator
 */
public class WhFormOutputGoods_mapper extends WhFormOutputGoods implements BaseMapper<WhFormOutputGoods> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<WhFormOutputGoods> ROW_MAPPER = new WhFormOutputGoodsRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String Counts = "counts";
    public static final String WhFormOutputId = "wh_form_output_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 WhFormOutputGoods_mapper(WhFormOutputGoods whFormOutputGoods) {
        if (whFormOutputGoods == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (whFormOutputGoods.isset_id) {
            this.setId(whFormOutputGoods.getId());
        }
        //普通属性
        if (whFormOutputGoods.isset_counts) {
            this.setCounts(whFormOutputGoods.getCounts());
        }
        if (whFormOutputGoods.isset_whFormOutputId) {
            this.setWhFormOutputId(whFormOutputGoods.getWhFormOutputId());
        }
        if (whFormOutputGoods.isset_baseGoodsTemplateId) {
            this.setBaseGoodsTemplateId(whFormOutputGoods.getBaseGoodsTemplateId());
        }
        if (whFormOutputGoods.isset_goodsTemplateName) {
            this.setGoodsTemplateName(whFormOutputGoods.getGoodsTemplateName());
        }
        if (whFormOutputGoods.isset_unit) {
            this.setUnit(whFormOutputGoods.getUnit());
        }
        if (whFormOutputGoods.isset_baseGoodsModelsId) {
            this.setBaseGoodsModelsId(whFormOutputGoods.getBaseGoodsModelsId());
        }
        if (whFormOutputGoods.isset_baseGoodsModelsName) {
            this.setBaseGoodsModelsName(whFormOutputGoods.getBaseGoodsModelsName());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(wh_form_output_goods.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "wh_form_output_goods";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(Counts, this.getCounts(), this.isset_counts);
        ib.set(WhFormOutputId, this.getWhFormOutputId(), this.isset_whFormOutputId);
        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);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(WhFormOutputId, this.getWhFormOutputId(), this.isset_whFormOutputId);
        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.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(Counts, this.getCounts(), this.isset_counts);
        ub.set(WhFormOutputId, this.getWhFormOutputId(), this.isset_whFormOutputId);
        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);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(WhFormOutputId, this.getWhFormOutputId(), this.isset_whFormOutputId);
        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);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, counts, wh_form_output_id, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, counts, wh_form_output_id, base_goods_template_id, goods_template_name, unit, base_goods_models_id, base_goods_models_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public WhFormOutputGoods mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public WhFormOutputGoods toWhFormOutputGoods() {
        return super.$clone();
    }
}
/**
 * wh_form_output_goods RowMapper
 *
 * @author genrator
 */
class WhFormOutputGoodsRowMapper implements RowMapper<WhFormOutputGoods> {
    @Override
    public WhFormOutputGoods mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        WhFormOutputGoods wh_form_output_goods = new WhFormOutputGoods();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputGoods_mapper.Id);
        if (columnIndex > 0) {
            wh_form_output_goods.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputGoods_mapper.Counts);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output_goods.setCounts(null);
            } else {
                wh_form_output_goods.setCounts(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputGoods_mapper.WhFormOutputId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output_goods.setWhFormOutputId(null);
            } else {
                wh_form_output_goods.setWhFormOutputId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputGoods_mapper.BaseGoodsTemplateId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output_goods.setBaseGoodsTemplateId(null);
            } else {
                wh_form_output_goods.setBaseGoodsTemplateId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputGoods_mapper.GoodsTemplateName);
        if (columnIndex > 0) {
            wh_form_output_goods.setGoodsTemplateName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputGoods_mapper.Unit);
        if (columnIndex > 0) {
            wh_form_output_goods.setUnit(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputGoods_mapper.BaseGoodsModelsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output_goods.setBaseGoodsModelsId(null);
            } else {
                wh_form_output_goods.setBaseGoodsModelsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputGoods_mapper.BaseGoodsModelsName);
        if (columnIndex > 0) {
            wh_form_output_goods.setBaseGoodsModelsName(rs.getString(columnIndex));
        }
        return wh_form_output_goods;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/WhFormOutputModel_mapper.java
New file
@@ -0,0 +1,289 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:WH_FORM_OUTPUT_MODEL *
 * @author genrator
 */
public class WhFormOutputModel_mapper extends WhFormOutputModel implements BaseMapper<WhFormOutputModel> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<WhFormOutputModel> ROW_MAPPER = new WhFormOutputModelRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String Counts = "counts";
    public static final String OutWhGoodsDetailsId = "out_wh_goods_details_id";
    public static final String WhGoodsId = "wh_goods_id";
    public static final String WhFormOutputId = "wh_form_output_id";
    public static final String WhFormOutputGoodsId = "wh_form_output_goods_id";
    /**
     * é»˜è®¤æž„造函数
     */
    public WhFormOutputModel_mapper(WhFormOutputModel whFormOutputModel) {
        if (whFormOutputModel == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (whFormOutputModel.isset_id) {
            this.setId(whFormOutputModel.getId());
        }
        //普通属性
        if (whFormOutputModel.isset_counts) {
            this.setCounts(whFormOutputModel.getCounts());
        }
        if (whFormOutputModel.isset_outWhGoodsDetailsId) {
            this.setOutWhGoodsDetailsId(whFormOutputModel.getOutWhGoodsDetailsId());
        }
        if (whFormOutputModel.isset_whGoodsId) {
            this.setWhGoodsId(whFormOutputModel.getWhGoodsId());
        }
        if (whFormOutputModel.isset_whFormOutputId) {
            this.setWhFormOutputId(whFormOutputModel.getWhFormOutputId());
        }
        if (whFormOutputModel.isset_whFormOutputGoodsId) {
            this.setWhFormOutputGoodsId(whFormOutputModel.getWhFormOutputGoodsId());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(wh_form_output_model.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "wh_form_output_model";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(Counts, this.getCounts(), this.isset_counts);
        ib.set(OutWhGoodsDetailsId, this.getOutWhGoodsDetailsId(), this.isset_outWhGoodsDetailsId);
        ib.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ib.set(WhFormOutputId, this.getWhFormOutputId(), this.isset_whFormOutputId);
        ib.set(WhFormOutputGoodsId, this.getWhFormOutputGoodsId(), this.isset_whFormOutputGoodsId);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(OutWhGoodsDetailsId, this.getOutWhGoodsDetailsId(), this.isset_outWhGoodsDetailsId);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(WhFormOutputId, this.getWhFormOutputId(), this.isset_whFormOutputId);
        ub.set(WhFormOutputGoodsId, this.getWhFormOutputGoodsId(), this.isset_whFormOutputGoodsId);
        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(Counts, this.getCounts(), this.isset_counts);
        ub.set(OutWhGoodsDetailsId, this.getOutWhGoodsDetailsId(), this.isset_outWhGoodsDetailsId);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(WhFormOutputId, this.getWhFormOutputId(), this.isset_whFormOutputId);
        ub.set(WhFormOutputGoodsId, this.getWhFormOutputGoodsId(), this.isset_whFormOutputGoodsId);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(OutWhGoodsDetailsId, this.getOutWhGoodsDetailsId(), this.isset_outWhGoodsDetailsId);
        ub.set(WhGoodsId, this.getWhGoodsId(), this.isset_whGoodsId);
        ub.set(WhFormOutputId, this.getWhFormOutputId(), this.isset_whFormOutputId);
        ub.set(WhFormOutputGoodsId, this.getWhFormOutputGoodsId(), this.isset_whFormOutputGoodsId);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, counts, out_wh_goods_details_id, wh_goods_id, wh_form_output_id, wh_form_output_goods_id from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, counts, out_wh_goods_details_id, wh_goods_id, wh_form_output_id, wh_form_output_goods_id from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public WhFormOutputModel mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public WhFormOutputModel toWhFormOutputModel() {
        return super.$clone();
    }
}
/**
 * wh_form_output_model RowMapper
 *
 * @author genrator
 */
class WhFormOutputModelRowMapper implements RowMapper<WhFormOutputModel> {
    @Override
    public WhFormOutputModel mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        WhFormOutputModel wh_form_output_model = new WhFormOutputModel();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputModel_mapper.Id);
        if (columnIndex > 0) {
            wh_form_output_model.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputModel_mapper.Counts);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output_model.setCounts(null);
            } else {
                wh_form_output_model.setCounts(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputModel_mapper.OutWhGoodsDetailsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output_model.setOutWhGoodsDetailsId(null);
            } else {
                wh_form_output_model.setOutWhGoodsDetailsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputModel_mapper.WhGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output_model.setWhGoodsId(null);
            } else {
                wh_form_output_model.setWhGoodsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputModel_mapper.WhFormOutputId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output_model.setWhFormOutputId(null);
            } else {
                wh_form_output_model.setWhFormOutputId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutputModel_mapper.WhFormOutputGoodsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output_model.setWhFormOutputGoodsId(null);
            } else {
                wh_form_output_model.setWhFormOutputGoodsId(rs.getLong(columnIndex));
            }
        }
        return wh_form_output_model;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/WhFormOutput_mapper.java
New file
@@ -0,0 +1,373 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:WH_FORM_OUTPUT *
 * @author genrator
 */
public class WhFormOutput_mapper extends WhFormOutput implements BaseMapper<WhFormOutput> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<WhFormOutput> ROW_MAPPER = new WhFormOutputRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String BusinessFormCode = "business_form_code";
    public static final String WarehouseId = "warehouse_id";
    public static final String WarehouseName = "warehouse_name";
    public static final String AgencyId = "agency_id";
    public static final String AgencyName = "agency_name";
    public static final String OperatorId = "operator_id";
    public static final String OperatorName = "operator_name";
    public static final String DealTime = "deal_time";
    public static final String States = "states";
    public static final String Beiz = "beiz";
    public static final String OutputCode = "output_code";
    public static final String OutputName = "output_name";
    /**
     * é»˜è®¤æž„造函数
     */
    public WhFormOutput_mapper(WhFormOutput whFormOutput) {
        if (whFormOutput == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (whFormOutput.isset_id) {
            this.setId(whFormOutput.getId());
        }
        //普通属性
        if (whFormOutput.isset_businessFormCode) {
            this.setBusinessFormCode(whFormOutput.getBusinessFormCode());
        }
        if (whFormOutput.isset_warehouseId) {
            this.setWarehouseId(whFormOutput.getWarehouseId());
        }
        if (whFormOutput.isset_warehouseName) {
            this.setWarehouseName(whFormOutput.getWarehouseName());
        }
        if (whFormOutput.isset_agencyId) {
            this.setAgencyId(whFormOutput.getAgencyId());
        }
        if (whFormOutput.isset_agencyName) {
            this.setAgencyName(whFormOutput.getAgencyName());
        }
        if (whFormOutput.isset_operatorId) {
            this.setOperatorId(whFormOutput.getOperatorId());
        }
        if (whFormOutput.isset_operatorName) {
            this.setOperatorName(whFormOutput.getOperatorName());
        }
        if (whFormOutput.isset_dealTime) {
            this.setDealTime(whFormOutput.getDealTime());
        }
        if (whFormOutput.isset_states) {
            this.setStates(whFormOutput.getStates());
        }
        if (whFormOutput.isset_beiz) {
            this.setBeiz(whFormOutput.getBeiz());
        }
        if (whFormOutput.isset_outputCode) {
            this.setOutputCode(whFormOutput.getOutputCode());
        }
        if (whFormOutput.isset_outputName) {
            this.setOutputName(whFormOutput.getOutputName());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(wh_form_output.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "wh_form_output";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ib.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ib.set(States, this.getStates(), this.isset_states);
        ib.set(Beiz, this.getBeiz(), this.isset_beiz);
        ib.set(OutputCode, this.getOutputCode(), this.isset_outputCode);
        ib.set(OutputName, this.getOutputName(), this.isset_outputName);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(OutputCode, this.getOutputCode(), this.isset_outputCode);
        ub.set(OutputName, this.getOutputName(), this.isset_outputName);
        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(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(OutputCode, this.getOutputCode(), this.isset_outputCode);
        ub.set(OutputName, this.getOutputName(), this.isset_outputName);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(OutputCode, this.getOutputCode(), this.isset_outputCode);
        ub.set(OutputName, this.getOutputName(), this.isset_outputName);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, business_form_code, warehouse_id, warehouse_name, agency_id, agency_name, operator_id, operator_name, deal_time, states, beiz, output_code, output_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, business_form_code, warehouse_id, warehouse_name, agency_id, agency_name, operator_id, operator_name, deal_time, states, beiz, output_code, output_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public WhFormOutput mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public WhFormOutput toWhFormOutput() {
        return super.$clone();
    }
}
/**
 * wh_form_output RowMapper
 *
 * @author genrator
 */
class WhFormOutputRowMapper implements RowMapper<WhFormOutput> {
    @Override
    public WhFormOutput mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        WhFormOutput wh_form_output = new WhFormOutput();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.Id);
        if (columnIndex > 0) {
            wh_form_output.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.BusinessFormCode);
        if (columnIndex > 0) {
            wh_form_output.setBusinessFormCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.WarehouseId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output.setWarehouseId(null);
            } else {
                wh_form_output.setWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.WarehouseName);
        if (columnIndex > 0) {
            wh_form_output.setWarehouseName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.AgencyId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output.setAgencyId(null);
            } else {
                wh_form_output.setAgencyId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.AgencyName);
        if (columnIndex > 0) {
            wh_form_output.setAgencyName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.OperatorId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output.setOperatorId(null);
            } else {
                wh_form_output.setOperatorId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.OperatorName);
        if (columnIndex > 0) {
            wh_form_output.setOperatorName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.DealTime);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output.setDealTime(null);
            } else {
                wh_form_output.setDealTime(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.States);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_form_output.setStates(null);
            } else {
                wh_form_output.setStates(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.Beiz);
        if (columnIndex > 0) {
            wh_form_output.setBeiz(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.OutputCode);
        if (columnIndex > 0) {
            wh_form_output.setOutputCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhFormOutput_mapper.OutputName);
        if (columnIndex > 0) {
            wh_form_output.setOutputName(rs.getString(columnIndex));
        }
        return wh_form_output;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/WhGoods_mapper.java
@@ -33,8 +33,6 @@
    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";
@@ -289,7 +287,7 @@
     */
    @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);
    }
    /**
@@ -297,7 +295,7 @@
     */
    @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);
    }
    /**
@@ -364,18 +362,6 @@
                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) {
            } else {
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhGoods_mapper.AllCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
            } else {
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhGoods_mapper.FirstInputCode);
consum-model-pojo/src/main/java/com/consum/model/po/WhWarningConfig_mapper.java
New file
@@ -0,0 +1,305 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:WH_WARNING_CONFIG *
 * @author genrator
 */
public class WhWarningConfig_mapper extends WhWarningConfig implements BaseMapper<WhWarningConfig> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<WhWarningConfig> ROW_MAPPER = new WhWarningConfigRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String BaseWarehouseId = "base_warehouse_id";
    public static final String BaseGoodsTemplateId = "base_goods_template_id";
    public static final String BaseGoodsModelsId = "base_goods_models_id";
    public static final String GoodsType = "goods_type";
    public static final String UpperLimit = "upper_limit";
    public static final String LowerLimit = "lower_limit";
    /**
     * é»˜è®¤æž„造函数
     */
    public WhWarningConfig_mapper(WhWarningConfig whWarningConfig) {
        if (whWarningConfig == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (whWarningConfig.isset_id) {
            this.setId(whWarningConfig.getId());
        }
        //普通属性
        if (whWarningConfig.isset_baseWarehouseId) {
            this.setBaseWarehouseId(whWarningConfig.getBaseWarehouseId());
        }
        if (whWarningConfig.isset_baseGoodsTemplateId) {
            this.setBaseGoodsTemplateId(whWarningConfig.getBaseGoodsTemplateId());
        }
        if (whWarningConfig.isset_baseGoodsModelsId) {
            this.setBaseGoodsModelsId(whWarningConfig.getBaseGoodsModelsId());
        }
        if (whWarningConfig.isset_goodsType) {
            this.setGoodsType(whWarningConfig.getGoodsType());
        }
        if (whWarningConfig.isset_upperLimit) {
            this.setUpperLimit(whWarningConfig.getUpperLimit());
        }
        if (whWarningConfig.isset_lowerLimit) {
            this.setLowerLimit(whWarningConfig.getLowerLimit());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(wh_warning_config.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "wh_warning_config";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(BaseWarehouseId, this.getBaseWarehouseId(), this.isset_baseWarehouseId);
        ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
        ib.set(GoodsType, this.getGoodsType(), this.isset_goodsType);
        ib.set(UpperLimit, this.getUpperLimit(), this.isset_upperLimit);
        ib.set(LowerLimit, this.getLowerLimit(), this.isset_lowerLimit);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BaseWarehouseId, this.getBaseWarehouseId(), this.isset_baseWarehouseId);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
        ub.set(GoodsType, this.getGoodsType(), this.isset_goodsType);
        ub.set(UpperLimit, this.getUpperLimit(), this.isset_upperLimit);
        ub.set(LowerLimit, this.getLowerLimit(), this.isset_lowerLimit);
        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(BaseWarehouseId, this.getBaseWarehouseId(), this.isset_baseWarehouseId);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
        ub.set(GoodsType, this.getGoodsType(), this.isset_goodsType);
        ub.set(UpperLimit, this.getUpperLimit(), this.isset_upperLimit);
        ub.set(LowerLimit, this.getLowerLimit(), this.isset_lowerLimit);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BaseWarehouseId, this.getBaseWarehouseId(), this.isset_baseWarehouseId);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
        ub.set(GoodsType, this.getGoodsType(), this.isset_goodsType);
        ub.set(UpperLimit, this.getUpperLimit(), this.isset_upperLimit);
        ub.set(LowerLimit, this.getLowerLimit(), this.isset_lowerLimit);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, base_warehouse_id, base_goods_template_id, base_goods_models_id, goods_type, upper_limit, lower_limit from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, base_warehouse_id, base_goods_template_id, base_goods_models_id, goods_type, upper_limit, lower_limit from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public WhWarningConfig mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public WhWarningConfig toWhWarningConfig() {
        return super.$clone();
    }
}
/**
 * wh_warning_config RowMapper
 *
 * @author genrator
 */
class WhWarningConfigRowMapper implements RowMapper<WhWarningConfig> {
    @Override
    public WhWarningConfig mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        WhWarningConfig wh_warning_config = new WhWarningConfig();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, WhWarningConfig_mapper.Id);
        if (columnIndex > 0) {
            wh_warning_config.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, WhWarningConfig_mapper.BaseWarehouseId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning_config.setBaseWarehouseId(null);
            } else {
                wh_warning_config.setBaseWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarningConfig_mapper.BaseGoodsTemplateId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning_config.setBaseGoodsTemplateId(null);
            } else {
                wh_warning_config.setBaseGoodsTemplateId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarningConfig_mapper.BaseGoodsModelsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning_config.setBaseGoodsModelsId(null);
            } else {
                wh_warning_config.setBaseGoodsModelsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarningConfig_mapper.GoodsType);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning_config.setGoodsType(null);
            } else {
                wh_warning_config.setGoodsType(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarningConfig_mapper.UpperLimit);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning_config.setUpperLimit(null);
            } else {
                wh_warning_config.setUpperLimit(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarningConfig_mapper.LowerLimit);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning_config.setLowerLimit(null);
            } else {
                wh_warning_config.setLowerLimit(rs.getInt(columnIndex));
            }
        }
        return wh_warning_config;
    }
}
consum-model-pojo/src/main/java/com/consum/model/po/WhWarning_mapper.java
New file
@@ -0,0 +1,477 @@
package com.consum.model.po;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
import com.walker.jdbc.sqlgen.DeleteBuilder;
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;
import java.sql.SQLException;
import java.util.Map;
/**
 * è¡¨å:WH_WARNING *
 * @author genrator
 */
public class WhWarning_mapper extends WhWarning implements BaseMapper<WhWarning> {
    // åºåˆ—化版本号
    private static final long serialVersionUID = 1L;
    public static final RowMapper<WhWarning> ROW_MAPPER = new WhWarningRowMapper();
    // ä¸»é”®
    public static final String Id = "id";
    // æ™®é€šå±žæ€§
    public static final String BaseWarehouseId = "base_warehouse_id";
    public static final String BaseWarehouseName = "base_warehouse_name";
    public static final String BaseGoodsTemplateId = "base_goods_template_id";
    public static final String BaseGoodsTemplateName = "base_goods_template_name";
    public static final String BaseGoodsModelsId = "base_goods_models_id";
    public static final String BaseGoodsModelsName = "base_goods_models_name";
    public static final String GoodsType = "goods_type";
    public static final String WarningType = "warning_type";
    public static final String UpperLimit = "upper_limit";
    public static final String LowerLimit = "lower_limit";
    public static final String WarehouseCount = "warehouse_count";
    public static final String WarningTime = "warning_time";
    public static final String States = "states";
    public static final String OperatorId = "operator_id";
    public static final String OperatorName = "operator_name";
    public static final String DealTime = "deal_time";
    public static final String AgencyId = "agency_id";
    public static final String AgencyName = "agency_name";
    /**
     * é»˜è®¤æž„造函数
     */
    public WhWarning_mapper(WhWarning whWarning) {
        if (whWarning == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        if (whWarning.isset_id) {
            this.setId(whWarning.getId());
        }
        //普通属性
        if (whWarning.isset_baseWarehouseId) {
            this.setBaseWarehouseId(whWarning.getBaseWarehouseId());
        }
        if (whWarning.isset_baseWarehouseName) {
            this.setBaseWarehouseName(whWarning.getBaseWarehouseName());
        }
        if (whWarning.isset_baseGoodsTemplateId) {
            this.setBaseGoodsTemplateId(whWarning.getBaseGoodsTemplateId());
        }
        if (whWarning.isset_baseGoodsTemplateName) {
            this.setBaseGoodsTemplateName(whWarning.getBaseGoodsTemplateName());
        }
        if (whWarning.isset_baseGoodsModelsId) {
            this.setBaseGoodsModelsId(whWarning.getBaseGoodsModelsId());
        }
        if (whWarning.isset_baseGoodsModelsName) {
            this.setBaseGoodsModelsName(whWarning.getBaseGoodsModelsName());
        }
        if (whWarning.isset_goodsType) {
            this.setGoodsType(whWarning.getGoodsType());
        }
        if (whWarning.isset_warningType) {
            this.setWarningType(whWarning.getWarningType());
        }
        if (whWarning.isset_upperLimit) {
            this.setUpperLimit(whWarning.getUpperLimit());
        }
        if (whWarning.isset_lowerLimit) {
            this.setLowerLimit(whWarning.getLowerLimit());
        }
        if (whWarning.isset_warehouseCount) {
            this.setWarehouseCount(whWarning.getWarehouseCount());
        }
        if (whWarning.isset_warningTime) {
            this.setWarningTime(whWarning.getWarningTime());
        }
        if (whWarning.isset_states) {
            this.setStates(whWarning.getStates());
        }
        if (whWarning.isset_operatorId) {
            this.setOperatorId(whWarning.getOperatorId());
        }
        if (whWarning.isset_operatorName) {
            this.setOperatorName(whWarning.getOperatorName());
        }
        if (whWarning.isset_dealTime) {
            this.setDealTime(whWarning.getDealTime());
        }
        if (whWarning.isset_agencyId) {
            this.setAgencyId(whWarning.getAgencyId());
        }
        if (whWarning.isset_agencyName) {
            this.setAgencyName(whWarning.getAgencyName());
        }
        // åŽ»æŽ‰ï¼Œ2022-09-07
        // this.setDatabaseName_(wh_warning.getDatabaseName_());
    }
    /**
     * èŽ·å–è¡¨å
     */
    @Override
    public String getTableName_() {
        String tableName = "wh_warning";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
        return tableName;
    }
    /**
     * èŽ·å–ä¸»é”®åç§°
     */
    @Override
    public String getPkName_() {
        return Id;
    }
    /**
     * èŽ·å–ä¸»é”®å€¼
     */
    @Override
    public Object getPkValue_() {
        return this.getId();
    }
    /**
     * èŽ·å–æ’å…¥è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getInsertSql_() {
        InsertBuilder ib = new InsertBuilder(this.getTableName_());
        ib.set(Id, this.getId());
        ib.set(BaseWarehouseId, this.getBaseWarehouseId(), this.isset_baseWarehouseId);
        ib.set(BaseWarehouseName, this.getBaseWarehouseName(), this.isset_baseWarehouseName);
        ib.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ib.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        ib.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
        ib.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
        ib.set(GoodsType, this.getGoodsType(), this.isset_goodsType);
        ib.set(WarningType, this.getWarningType(), this.isset_warningType);
        ib.set(UpperLimit, this.getUpperLimit(), this.isset_upperLimit);
        ib.set(LowerLimit, this.getLowerLimit(), this.isset_lowerLimit);
        ib.set(WarehouseCount, this.getWarehouseCount(), this.isset_warehouseCount);
        ib.set(WarningTime, this.getWarningTime(), this.isset_warningTime);
        ib.set(States, this.getStates(), this.isset_states);
        ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ib.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        return ib.genMapSql();
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BaseWarehouseId, this.getBaseWarehouseId(), this.isset_baseWarehouseId);
        ub.set(BaseWarehouseName, this.getBaseWarehouseName(), this.isset_baseWarehouseName);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
        ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
        ub.set(GoodsType, this.getGoodsType(), this.isset_goodsType);
        ub.set(WarningType, this.getWarningType(), this.isset_warningType);
        ub.set(UpperLimit, this.getUpperLimit(), this.isset_upperLimit);
        ub.set(LowerLimit, this.getLowerLimit(), this.isset_lowerLimit);
        ub.set(WarehouseCount, this.getWarehouseCount(), this.isset_warehouseCount);
        ub.set(WarningTime, this.getWarningTime(), this.isset_warningTime);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        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(BaseWarehouseId, this.getBaseWarehouseId(), this.isset_baseWarehouseId);
        ub.set(BaseWarehouseName, this.getBaseWarehouseName(), this.isset_baseWarehouseName);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
        ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
        ub.set(GoodsType, this.getGoodsType(), this.isset_goodsType);
        ub.set(WarningType, this.getWarningType(), this.isset_warningType);
        ub.set(UpperLimit, this.getUpperLimit(), this.isset_upperLimit);
        ub.set(LowerLimit, this.getLowerLimit(), this.isset_lowerLimit);
        ub.set(WarehouseCount, this.getWarehouseCount(), this.isset_warehouseCount);
        ub.set(WarningTime, this.getWarningTime(), this.isset_warningTime);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        return ub.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–æ›´æ–°è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
        UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
        ub.set(BaseWarehouseId, this.getBaseWarehouseId(), this.isset_baseWarehouseId);
        ub.set(BaseWarehouseName, this.getBaseWarehouseName(), this.isset_baseWarehouseName);
        ub.set(BaseGoodsTemplateId, this.getBaseGoodsTemplateId(), this.isset_baseGoodsTemplateId);
        ub.set(BaseGoodsTemplateName, this.getBaseGoodsTemplateName(), this.isset_baseGoodsTemplateName);
        ub.set(BaseGoodsModelsId, this.getBaseGoodsModelsId(), this.isset_baseGoodsModelsId);
        ub.set(BaseGoodsModelsName, this.getBaseGoodsModelsName(), this.isset_baseGoodsModelsName);
        ub.set(GoodsType, this.getGoodsType(), this.isset_goodsType);
        ub.set(WarningType, this.getWarningType(), this.isset_warningType);
        ub.set(UpperLimit, this.getUpperLimit(), this.isset_upperLimit);
        ub.set(LowerLimit, this.getLowerLimit(), this.isset_lowerLimit);
        ub.set(WarehouseCount, this.getWarehouseCount(), this.isset_warehouseCount);
        ub.set(WarningTime, this.getWarningTime(), this.isset_warningTime);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
        ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
        ub.set(DealTime, this.getDealTime(), this.isset_dealTime);
        ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
        ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
        return ub.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        db.where(this.getPkName_(), this.getPkValue_());
        return db.genMapSql();
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genMapSql(where, parameters);
    }
    /**
     * èŽ·å–åˆ é™¤è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
        DeleteBuilder db = new DeleteBuilder(this.getTableName_());
        return db.genArraySql(where, parameters);
    }
    /**
     * èŽ·å–å•è¡ŒæŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSingleSql_() {
        SelectBuilder sb = new SelectBuilder(this.getTableName_());
        sb.where(this.getPkName_(), this.getPkValue_());
        return sb.genMapSql();
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, base_warehouse_id, base_warehouse_name, base_goods_template_id, base_goods_template_name, base_goods_models_id, base_goods_models_name, goods_type, warning_type, upper_limit, lower_limit, warehouse_count, warning_time, states, operator_id, operator_name, deal_time, agency_id, agency_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * èŽ·å–æŸ¥è¯¢è¯­å¥å’Œå‚æ•°
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, base_warehouse_id, base_warehouse_name, base_goods_template_id, base_goods_template_name, base_goods_models_id, base_goods_models_name, goods_type, warning_type, upper_limit, lower_limit, warehouse_count, warning_time, states, operator_id, operator_name, deal_time, agency_id, agency_name from " + this.getTableName_() + " " + where, parameters);
    }
    /**
     * å°†resultset的一行转化为po
     */
    @Override
    public WhWarning mapRow(ResultSet rs, int i) throws SQLException {
        return ROW_MAPPER.mapRow(rs, i);
    }
    /**
     * å…‹éš†
     */
    public WhWarning toWhWarning() {
        return super.$clone();
    }
}
/**
 * wh_warning RowMapper
 *
 * @author genrator
 */
class WhWarningRowMapper implements RowMapper<WhWarning> {
    @Override
    public WhWarning mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        WhWarning wh_warning = new WhWarning();
        Integer columnIndex;
        //主键
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.Id);
        if (columnIndex > 0) {
            wh_warning.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.BaseWarehouseId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setBaseWarehouseId(null);
            } else {
                wh_warning.setBaseWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.BaseWarehouseName);
        if (columnIndex > 0) {
            wh_warning.setBaseWarehouseName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.BaseGoodsTemplateId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setBaseGoodsTemplateId(null);
            } else {
                wh_warning.setBaseGoodsTemplateId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.BaseGoodsTemplateName);
        if (columnIndex > 0) {
            wh_warning.setBaseGoodsTemplateName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.BaseGoodsModelsId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setBaseGoodsModelsId(null);
            } else {
                wh_warning.setBaseGoodsModelsId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.BaseGoodsModelsName);
        if (columnIndex > 0) {
            wh_warning.setBaseGoodsModelsName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.GoodsType);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setGoodsType(null);
            } else {
                wh_warning.setGoodsType(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.WarningType);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setWarningType(null);
            } else {
                wh_warning.setWarningType(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.UpperLimit);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setUpperLimit(null);
            } else {
                wh_warning.setUpperLimit(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.LowerLimit);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setLowerLimit(null);
            } else {
                wh_warning.setLowerLimit(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.WarehouseCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setWarehouseCount(null);
            } else {
                wh_warning.setWarehouseCount(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.WarningTime);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setWarningTime(null);
            } else {
                wh_warning.setWarningTime(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.States);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setStates(null);
            } else {
                wh_warning.setStates(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.OperatorId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setOperatorId(null);
            } else {
                wh_warning.setOperatorId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.OperatorName);
        if (columnIndex > 0) {
            wh_warning.setOperatorName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.DealTime);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setDealTime(null);
            } else {
                wh_warning.setDealTime(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.AgencyId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                wh_warning.setAgencyId(null);
            } else {
                wh_warning.setAgencyId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, WhWarning_mapper.AgencyName);
        if (columnIndex > 0) {
            wh_warning.setAgencyName(rs.getString(columnIndex));
        }
        return wh_warning;
    }
}
deploy-jar-single/src/main/java/com/consum/test/synchronizedCode.java
@@ -11,7 +11,7 @@
    static String key = "1";
    public static void main(String[] args) throws InterruptedException {
        for (int j=0;j<3;j++){
        for (int j=0;j<5;j++){
            Thread t1 = new Thread(instance);
            t1.start();
        }
@@ -28,6 +28,7 @@
            key = "2";
        } else {
            myKey = "abc";
            key="1";
        }
        System.out.println(Thread.currentThread().getName() + ":" + myKey);