futian.liu
2023-12-09 863d66a30c84a1f46ed10ee2b291ff241b6320b5
consum-model-pojo/src/main/java/com/consum/model/po/LWhFormTransfer_mapper.java
@@ -7,17 +7,18 @@
import com.walker.jdbc.sqlgen.InsertBuilder;
import com.walker.jdbc.sqlgen.SelectBuilder;
import com.walker.jdbc.sqlgen.UpdateBuilder;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
import org.springframework.jdbc.core.RowMapper;
/**
 * 表名:L_WH_FORM_TRANSFER *
 *
 * @author genrator
 */
public class LWhFormTransfer_mapper extends LWhFormTransfer implements BaseMapper<LWhFormTransfer> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
@@ -56,6 +57,8 @@
    public static final String Beiz2 = "beiz2";
    public static final String Beiz3 = "beiz3";
    public static final String ProcureDoc = "procure_doc";
    public static final String Tel = "tel";
    /**
     * 默认构造函数
@@ -159,6 +162,9 @@
        if (lWhFormTransfer.isset_procureDoc) {
            this.setProcureDoc(lWhFormTransfer.getProcureDoc());
        }
        if (lWhFormTransfer.isset_tel) {
            this.setTel(lWhFormTransfer.getTel());
        }
        // 去掉,2022-09-07
        // this.setDatabaseName_(l_wh_form_transfer.getDatabaseName_());
    }
@@ -170,12 +176,12 @@
    public String getTableName_() {
        String tableName = "l_wh_form_transfer";
        /**
        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;
    }
@@ -232,6 +238,7 @@
        ib.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ib.set(Beiz3, this.getBeiz3(), this.isset_beiz3);
        ib.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
        ib.set(Tel, this.getTel(), this.isset_tel);
        return ib.genMapSql();
    }
@@ -271,6 +278,7 @@
        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ub.set(Beiz3, this.getBeiz3(), this.isset_beiz3);
        ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
        ub.set(Tel, this.getTel(), this.isset_tel);
        ub.where(this.getPkName_(), this.getPkValue_());
        return ub.genMapSql();
    }
@@ -311,6 +319,7 @@
        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ub.set(Beiz3, this.getBeiz3(), this.isset_beiz3);
        ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
        ub.set(Tel, this.getTel(), this.isset_tel);
        return ub.genMapSql(where, parameters);
    }
@@ -350,6 +359,7 @@
        ub.set(Beiz2, this.getBeiz2(), this.isset_beiz2);
        ub.set(Beiz3, this.getBeiz3(), this.isset_beiz3);
        ub.set(ProcureDoc, this.getProcureDoc(), this.isset_procureDoc);
        ub.set(Tel, this.getTel(), this.isset_tel);
        return ub.genArraySql(where, parameters);
    }
@@ -397,7 +407,9 @@
     */
    @Override
    public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
        return new SqlAndParameters<>("select id, in_warehouse_form_id, in_warehouse_flow_id, out_warehouse_flow_id, out_warehouse_form_id, business_type, business_form_code, in_warehouse_type, in_warehouse_id, in_warehouse_name, out_warehouse_type, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, in_operator_id, in_operator_name, in_time, out_operator_id, out_operator_name, output_time, beiz1, beiz2, beiz3, procure_doc from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>(
            "select id, in_warehouse_form_id, in_warehouse_flow_id, out_warehouse_flow_id, out_warehouse_form_id, business_type, business_form_code, in_warehouse_type, in_warehouse_id, in_warehouse_name, out_warehouse_type, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, in_operator_id, in_operator_name, in_time, out_operator_id, out_operator_name, output_time, beiz1, beiz2, beiz3, procure_doc from "
                + this.getTableName_() + " " + where, parameters);
    }
    /**
@@ -405,7 +417,9 @@
     */
    @Override
    public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
        return new SqlAndParameters<>("select id, in_warehouse_form_id, in_warehouse_flow_id, out_warehouse_flow_id, out_warehouse_form_id, business_type, business_form_code, in_warehouse_type, in_warehouse_id, in_warehouse_name, out_warehouse_type, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, in_operator_id, in_operator_name, in_time, out_operator_id, out_operator_name, output_time, beiz1, beiz2, beiz3, procure_doc from " + this.getTableName_() + " " + where, parameters);
        return new SqlAndParameters<>(
            "select id, in_warehouse_form_id, in_warehouse_flow_id, out_warehouse_flow_id, out_warehouse_form_id, business_type, business_form_code, in_warehouse_type, in_warehouse_id, in_warehouse_name, out_warehouse_type, out_warehouse_id, out_warehouse_name, in_agency_id, in_agency_name, out_agency_id, out_agency_name, operator_id, operator_name, create_time, states, in_operator_id, in_operator_name, in_time, out_operator_id, out_operator_name, output_time, beiz1, beiz2, beiz3, procure_doc from "
                + this.getTableName_() + " " + where, parameters);
    }
    /**
@@ -634,6 +648,14 @@
        if (columnIndex > 0) {
            l_wh_form_transfer.setProcureDoc(rs.getString(columnIndex));
        }
        columnIndex = resultSetUtils.findColumn(rs, LWhFormTransfer_mapper.Tel);
        if (columnIndex > 0) {
            if (rs.getBigDecimal(columnIndex) == null) {
                l_wh_form_transfer.setTel(null);
            } else {
                l_wh_form_transfer.setTel(rs.getLong(columnIndex));
            }
        }
        return l_wh_form_transfer;
    }
}