futian.liu
2023-12-22 fd95223d9703b9c038ed3c782474c885052dda08
consum-model-pojo/src/main/java/com/consum/model/po/BaseWarehouse_mapper.java
@@ -1,5 +1,11 @@
package com.consum.model.po;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
import org.springframework.jdbc.core.RowMapper;
import com.walker.jdbc.BaseMapper;
import com.walker.jdbc.ResultSetUtils;
import com.walker.jdbc.SqlAndParameters;
@@ -7,16 +13,10 @@
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;
/**
 * 表名:BASE_WAREHOUSE *
 *
 * @author genrator
 */
public class BaseWarehouse_mapper extends BaseWarehouse implements BaseMapper<BaseWarehouse> {
@@ -47,11 +47,11 @@
        if (baseWarehouse == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        // 主键
        if (baseWarehouse.isset_id) {
            this.setId(baseWarehouse.getId());
        }
        //普通属性
        // 普通属性
        if (baseWarehouse.isset_warehouseType) {
            this.setWarehouseType(baseWarehouse.getWarehouseType());
        }
@@ -96,12 +96,9 @@
    public String getTableName_() {
        String tableName = "base_warehouse";
        /**
        if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
            return this.getDatabaseName_() + "." + tableName;
        } else {
            return tableName;
        }
        */
         * if (StringUtils.isNotEmpty(this.getDatabaseName_())) { return this.getDatabaseName_() + "." + tableName; }
         * else { return tableName; }
         */
        return tableName;
    }
@@ -241,13 +238,15 @@
        return sb.genMapSql();
    }
    /**
     * 获取查询语句和参数
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, warehouse_type, warehouse_code, warehouse_name, adress, parent_agency_id, agency_id, agency_name, classification_code, classification_name, is_default, states from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>(
            "select id, warehouse_type, warehouse_code, warehouse_name, adress, parent_agency_id, agency_id, agency_name, classification_code, classification_name, is_default, states from "
                + this.getTableName_() + " " + where,
            parameters);
    }
    /**
@@ -255,7 +254,10 @@
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, warehouse_type, warehouse_code, warehouse_name, adress, parent_agency_id, agency_id, agency_name, classification_code, classification_name, is_default, states from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>(
            "select id, warehouse_type, warehouse_code, warehouse_name, adress, parent_agency_id, agency_id, agency_name, classification_code, classification_name, is_default, states from "
                + this.getTableName_() + " " + where,
            parameters);
    }
    /**
@@ -286,12 +288,12 @@
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        BaseWarehouse base_warehouse = new BaseWarehouse();
        Integer columnIndex;
        //主键
        // 主键
        columnIndex = resultSetUtils.findColumn(rs, BaseWarehouse_mapper.Id);
        if (columnIndex > 0) {
            base_warehouse.setId(rs.getLong(columnIndex));
        }
        //普通属性
        // 普通属性
        columnIndex = resultSetUtils.findColumn(rs, BaseWarehouse_mapper.WarehouseType);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {