黎星凯
2024-06-28 b8c7255b5021d7f15cab19bf4ec54eec9352d456
consum-model-pojo/src/main/java/com/consum/model/po/BaseCodeIndexing_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_CODE_INDEXING *
 *
 * @author genrator
 */
public class BaseCodeIndexing_mapper extends BaseCodeIndexing implements BaseMapper<BaseCodeIndexing> {
@@ -41,11 +41,11 @@
        if (baseCodeIndexing == null) {
            throw new IllegalArgumentException("po参数不允许为空!");
        }
        //主键
        // 主键
        if (baseCodeIndexing.isset_id) {
            this.setId(baseCodeIndexing.getId());
        }
        //普通属性
        // 普通属性
        if (baseCodeIndexing.isset_yearIndex) {
            this.setYearIndex(baseCodeIndexing.getYearIndex());
        }
@@ -72,12 +72,9 @@
    public String getTableName_() {
        String tableName = "base_code_indexing";
        /**
        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;
    }
@@ -193,13 +190,13 @@
        return sb.genMapSql();
    }
    /**
     * 获取查询语句和参数
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, year_index, month_index, day_index, code_index, code_prefix from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>("select id, year_index, month_index, day_index, code_index, code_prefix from "
            + this.getTableName_() + " " + where, parameters);
    }
    /**
@@ -207,7 +204,8 @@
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, year_index, month_index, day_index, code_index, code_prefix from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>("select id, year_index, month_index, day_index, code_index, code_prefix from "
            + this.getTableName_() + " " + where, parameters);
    }
    /**
@@ -238,12 +236,12 @@
        ResultSetUtils resultSetUtils = new ResultSetUtils();
        BaseCodeIndexing base_code_indexing = new BaseCodeIndexing();
        Integer columnIndex;
        //主键
        // 主键
        columnIndex = resultSetUtils.findColumn(rs, BaseCodeIndexing_mapper.Id);
        if (columnIndex > 0) {
            base_code_indexing.setId(rs.getLong(columnIndex));
        }
        //普通属性
        // 普通属性
        columnIndex = resultSetUtils.findColumn(rs, BaseCodeIndexing_mapper.YearIndex);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {