黎星凯
2024-04-30 3be9cfcb6b59366b936821966d20a998a6895f9f
consum-model-pojo/src/main/java/com/consum/model/po/LWhProcureModel_mapper.java
@@ -7,8 +7,6 @@
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;
@@ -16,7 +14,8 @@
import java.util.Map;
/**
 * 表名:L_WH_PROCURE_MODEL *
 * 表名:L_WH_PROCURE_MODEL
 *
 * @author genrator
 */
public class LWhProcureModel_mapper extends LWhProcureModel implements BaseMapper<LWhProcureModel> {
@@ -37,6 +36,8 @@
    public static final String Counts = "counts";
    public static final String WorehouseCount = "worehouse_count";
    public static final String Supplier = "supplier";
    public static final String TotalAmount = "total_amount";
    public static final String UseCount = "use_count";
    /**
     * 默认构造函数
@@ -76,6 +77,12 @@
        }
        if (lWhProcureModel.isset_supplier) {
            this.setSupplier(lWhProcureModel.getSupplier());
        }
        if (lWhProcureModel.isset_totalAmount) {
            this.setTotalAmount(lWhProcureModel.getTotalAmount());
        }
        if (lWhProcureModel.isset_useCount) {
            this.setUseCount(lWhProcureModel.getUseCount());
        }
        // 去掉,2022-09-07
        // this.setDatabaseName_(l_wh_procure_model.getDatabaseName_());
@@ -129,6 +136,8 @@
        ib.set(Counts, this.getCounts(), this.isset_counts);
        ib.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
        ib.set(Supplier, this.getSupplier(), this.isset_supplier);
        ib.set(TotalAmount, this.getTotalAmount(), this.isset_totalAmount);
        ib.set(UseCount, this.getUseCount(), this.isset_useCount);
        return ib.genMapSql();
    }
@@ -147,6 +156,8 @@
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
        ub.set(Supplier, this.getSupplier(), this.isset_supplier);
        ub.set(TotalAmount, this.getTotalAmount(), this.isset_totalAmount);
        ub.set(UseCount, this.getUseCount(), this.isset_useCount);
        ub.where(this.getPkName_(), this.getPkValue_());
        return ub.genMapSql();
    }
@@ -166,6 +177,8 @@
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
        ub.set(Supplier, this.getSupplier(), this.isset_supplier);
        ub.set(TotalAmount, this.getTotalAmount(), this.isset_totalAmount);
        ub.set(UseCount, this.getUseCount(), this.isset_useCount);
        return ub.genMapSql(where, parameters);
    }
@@ -184,6 +197,8 @@
        ub.set(Counts, this.getCounts(), this.isset_counts);
        ub.set(WorehouseCount, this.getWorehouseCount(), this.isset_worehouseCount);
        ub.set(Supplier, this.getSupplier(), this.isset_supplier);
        ub.set(TotalAmount, this.getTotalAmount(), this.isset_totalAmount);
        ub.set(UseCount, this.getUseCount(), this.isset_useCount);
        return ub.genArraySql(where, parameters);
    }
@@ -231,7 +246,7 @@
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, from_procure_goods_id, business_type, business_id, base_goods_models_id, base_goods_models_name, price, counts, worehouse_count, supplier from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>("select id, from_procure_goods_id, business_type, business_id, base_goods_models_id, base_goods_models_name, price, counts, worehouse_count, supplier, total_amount, use_count from " + this.getTableName_() + " " + where, parameters);
    }
    /**
@@ -239,7 +254,7 @@
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, from_procure_goods_id, business_type, business_id, base_goods_models_id, base_goods_models_name, price, counts, worehouse_count, supplier from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>("select id, from_procure_goods_id, business_type, business_id, base_goods_models_id, base_goods_models_name, price, counts, worehouse_count, supplier, total_amount, use_count from " + this.getTableName_() + " " + where, parameters);
    }
    /**
@@ -340,6 +355,22 @@
        if (columnIndex > 0) {
            l_wh_procure_model.setSupplier(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, LWhProcureModel_mapper.TotalAmount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                l_wh_procure_model.setTotalAmount(null);
            } else {
                l_wh_procure_model.setTotalAmount(rs.getLong(columnIndex));
            }
        }
        columnIndex = resultSetUtils.findColumn(rs, LWhProcureModel_mapper.UseCount);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                l_wh_procure_model.setUseCount(null);
            } else {
                l_wh_procure_model.setUseCount(rs.getInt(columnIndex));
            }
        }
        return l_wh_procure_model;
    }
}