黎星凯
2024-04-15 62b6a7fac3f2acde70b578431147c4a01f19c182
consum-model-pojo/src/main/java/com/consum/model/po/DepFormScrapped_mapper.java
@@ -16,7 +16,8 @@
import java.util.Map;
/**
 * 表名:DEP_FORM_SCRAPPED *
 * 表名:DEP_FORM_SCRAPPED
 *
 * @author genrator
 */
public class DepFormScrapped_mapper extends DepFormScrapped implements BaseMapper<DepFormScrapped> {
@@ -29,22 +30,20 @@
    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 ProcureDoc = "procure_doc";
    public static final String OutWarehouseType = "out_warehouse_type";
    public static final String OutWarehouseId = "out_warehouse_id";
    public static final String OutWarehouseName = "out_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 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 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 CreateTime = "create_time";
    public static final String States = "states";
    public static final String Beiz = "beiz";
    public static final String Beiz2 = "beiz2";
    public static final String UploadFiles = "upload_files";
    public static final String WarehouseId = "warehouse_id";
    public static final String WarehouseName = "warehouse_name";
    /**
     * 默认构造函数
@@ -61,11 +60,17 @@
        if (depFormScrapped.isset_businessFormCode) {
            this.setBusinessFormCode(depFormScrapped.getBusinessFormCode());
        }
        if (depFormScrapped.isset_agencyId) {
            this.setAgencyId(depFormScrapped.getAgencyId());
        if (depFormScrapped.isset_procureDoc) {
            this.setProcureDoc(depFormScrapped.getProcureDoc());
        }
        if (depFormScrapped.isset_agencyName) {
            this.setAgencyName(depFormScrapped.getAgencyName());
        if (depFormScrapped.isset_outWarehouseType) {
            this.setOutWarehouseType(depFormScrapped.getOutWarehouseType());
        }
        if (depFormScrapped.isset_outWarehouseId) {
            this.setOutWarehouseId(depFormScrapped.getOutWarehouseId());
        }
        if (depFormScrapped.isset_outWarehouseName) {
            this.setOutWarehouseName(depFormScrapped.getOutWarehouseName());
        }
        if (depFormScrapped.isset_operatorId) {
            this.setOperatorId(depFormScrapped.getOperatorId());
@@ -76,38 +81,26 @@
        if (depFormScrapped.isset_dealTime) {
            this.setDealTime(depFormScrapped.getDealTime());
        }
        if (depFormScrapped.isset_agencyId) {
            this.setAgencyId(depFormScrapped.getAgencyId());
        }
        if (depFormScrapped.isset_agencyName) {
            this.setAgencyName(depFormScrapped.getAgencyName());
        }
        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_createTime) {
            this.setCreateTime(depFormScrapped.getCreateTime());
        }
        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_states) {
            this.setStates(depFormScrapped.getStates());
        }
        if (depFormScrapped.isset_beiz) {
            this.setBeiz(depFormScrapped.getBeiz());
        }
        if (depFormScrapped.isset_beiz2) {
            this.setBeiz2(depFormScrapped.getBeiz2());
        }
        if (depFormScrapped.isset_uploadFiles) {
            this.setUploadFiles(depFormScrapped.getUploadFiles());
        }
        if (depFormScrapped.isset_warehouseId) {
            this.setWarehouseId(depFormScrapped.getWarehouseId());
        }
        if (depFormScrapped.isset_warehouseName) {
            this.setWarehouseName(depFormScrapped.getWarehouseName());
        }
        // 去掉,2022-09-07
        // this.setDatabaseName_(dep_form_scrapped.getDatabaseName_());
@@ -153,22 +146,20 @@
        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(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
        ib.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType);
        ib.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
        ib.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
        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);
        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(CreateTime, this.getCreateTime(), this.isset_createTime);
        ib.set(States, this.getStates(), this.isset_states);
        ib.set(Beiz, this.getBeiz(), this.isset_beiz);
        ib.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ib.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        return ib.genMapSql();
    }
@@ -179,22 +170,20 @@
    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(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
        ub.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType);
        ub.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
        ub.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
        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.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(CreateTime, this.getCreateTime(), this.isset_createTime);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        ub.where(this.getPkName_(), this.getPkValue_());
        return ub.genMapSql();
    }
@@ -206,22 +195,20 @@
    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(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
        ub.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType);
        ub.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
        ub.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
        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.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(CreateTime, this.getCreateTime(), this.isset_createTime);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        return ub.genMapSql(where, parameters);
    }
@@ -232,22 +219,20 @@
    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(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
        ub.set(OutWarehouseType, this.getOutWarehouseType(), this.isset_outWarehouseType);
        ub.set(OutWarehouseId, this.getOutWarehouseId(), this.isset_outWarehouseId);
        ub.set(OutWarehouseName, this.getOutWarehouseName(), this.isset_outWarehouseName);
        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.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(CreateTime, this.getCreateTime(), this.isset_createTime);
        ub.set(States, this.getStates(), this.isset_states);
        ub.set(Beiz, this.getBeiz(), this.isset_beiz);
        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ub.set(UploadFiles, this.getUploadFiles(), this.isset_uploadFiles);
        ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
        ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
        return ub.genArraySql(where, parameters);
    }
@@ -295,7 +280,7 @@
     */
    @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, warehouse_id, warehouse_name from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>("select id, business_form_code, procure_doc, out_warehouse_type, out_warehouse_id, out_warehouse_name, operator_id, operator_name, deal_time, agency_id, agency_name, department_id, department_name, create_time, states, beiz from " + this.getTableName_() + " " + where, parameters);
    }
    /**
@@ -303,7 +288,7 @@
     */
    @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, warehouse_id, warehouse_name from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>("select id, business_form_code, procure_doc, out_warehouse_type, out_warehouse_id, out_warehouse_name, operator_id, operator_name, deal_time, agency_id, agency_name, department_id, department_name, create_time, states, beiz from " + this.getTableName_() + " " + where, parameters);
    }
    /**
@@ -332,113 +317,105 @@
    @Override
    public DepFormScrapped mapRow(ResultSet rs, int i) throws SQLException {
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        DepFormScrapped dep_form_scrapped = new DepFormScrapped();
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));
dep_form_scrapped.setId(rs.getLong(columnIndex));
        }
        //普通属性
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.BusinessFormCode);
        if (columnIndex > 0) {
            dep_form_scrapped.setBusinessFormCode(rs.getString(columnIndex));
dep_form_scrapped.setBusinessFormCode(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.AgencyId);
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ProcureDoc);
        if (columnIndex > 0) {
dep_form_scrapped.setProcureDoc(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OutWarehouseType);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setAgencyId(null);
dep_form_scrapped.setOutWarehouseType(null);
            } else {
                dep_form_scrapped.setAgencyId(rs.getLong(columnIndex));
dep_form_scrapped.setOutWarehouseType(rs.getInt(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.AgencyName);
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OutWarehouseId);
        if (columnIndex > 0) {
            dep_form_scrapped.setAgencyName(rs.getString(columnIndex));
            if (rs.getBigDecimal(columnIndex) == null) {
dep_form_scrapped.setOutWarehouseId(null);
            } else {
dep_form_scrapped.setOutWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OutWarehouseName);
        if (columnIndex > 0) {
dep_form_scrapped.setOutWarehouseName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OperatorId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setOperatorId(null);
dep_form_scrapped.setOperatorId(null);
            } else {
                dep_form_scrapped.setOperatorId(rs.getLong(columnIndex));
dep_form_scrapped.setOperatorId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.OperatorName);
        if (columnIndex > 0) {
            dep_form_scrapped.setOperatorName(rs.getString(columnIndex));
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);
dep_form_scrapped.setDealTime(null);
            } else {
                dep_form_scrapped.setDealTime(rs.getLong(columnIndex));
dep_form_scrapped.setDealTime(rs.getLong(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.DepartmentId);
        if (columnIndex > 0) {
            dep_form_scrapped.setDepartmentId(rs.getString(columnIndex));
            if (rs.getBigDecimal(columnIndex) == null) {
dep_form_scrapped.setDepartmentId(null);
            } else {
dep_form_scrapped.setDepartmentId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.DepartmentName);
        if (columnIndex > 0) {
dep_form_scrapped.setDepartmentName(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.CreateTime);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setDepartmentName(null);
dep_form_scrapped.setCreateTime(null);
            } else {
                dep_form_scrapped.setDepartmentName(rs.getLong(columnIndex));
dep_form_scrapped.setCreateTime(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.ReviewerId);
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.States);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setReviewerId(null);
dep_form_scrapped.setStates(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));
dep_form_scrapped.setStates(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));
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.WarehouseId);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                dep_form_scrapped.setWarehouseId(null);
            } else {
                dep_form_scrapped.setWarehouseId(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, DepFormScrapped_mapper.WarehouseName);
        if (columnIndex > 0) {
            dep_form_scrapped.setWarehouseName(rs.getString(columnIndex));
dep_form_scrapped.setBeiz(rs.getString(columnIndex));
        }
        return dep_form_scrapped;
    }