package com.consum.model.po;
|
|
import com.walker.jdbc.BaseMapper;
|
import com.walker.jdbc.ResultSetUtils;
|
import com.walker.jdbc.SqlAndParameters;
|
import com.walker.jdbc.sqlgen.DeleteBuilder;
|
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;
|
|
/**
|
* 表名:L_WH_FORM_INVENTORY *
|
* @author genrator
|
*/
|
public class LWhFormInventory_mapper extends LWhFormInventory implements BaseMapper<LWhFormInventory> {
|
// 序列化版本号
|
private static final long serialVersionUID = 1L;
|
|
public static final RowMapper<LWhFormInventory> ROW_MAPPER = new LWhFormInventoryRowMapper();
|
|
// 主键
|
public static final String Id = "id";
|
// 普通属性
|
public static final String BusinessFormCode = "business_form_code";
|
public static final String BusinessFormName = "business_form_name";
|
public static final String WarehouseType = "warehouse_type";
|
public static final String WarehouseId = "warehouse_id";
|
public static final String WarehouseName = "warehouse_name";
|
public static final String OperatorId = "operator_id";
|
public static final String OperatorName = "operator_name";
|
public static final String States = "states";
|
public static final String OperatorId2 = "operator_id2";
|
public static final String OperatorName2 = "operator_name2";
|
public static final String Beiz1 = "beiz1";
|
public static final String AgencyId = "agency_id";
|
public static final String AgencyName = "agency_name";
|
public static final String CreatorId = "creator_id";
|
public static final String CreatorName = "creator_name";
|
public static final String InventoryDate = "inventory_date";
|
public static final String CreateTime = "create_time";
|
public static final String StopTime = "stop_time";
|
public static final String InWarehouseFormId = "in_warehouse_form_id";
|
public static final String InBusinessFormCode = "in_business_form_code";
|
public static final String OutWarehouseFormId = "out_warehouse_form_id";
|
public static final String OutBusinessFormCode = "out_business_form_code";
|
|
/**
|
* 默认构造函数
|
*/
|
public LWhFormInventory_mapper(LWhFormInventory lWhFormInventory) {
|
if (lWhFormInventory == null) {
|
throw new IllegalArgumentException("po参数不允许为空!");
|
}
|
//主键
|
if (lWhFormInventory.isset_id) {
|
this.setId(lWhFormInventory.getId());
|
}
|
//普通属性
|
if (lWhFormInventory.isset_businessFormCode) {
|
this.setBusinessFormCode(lWhFormInventory.getBusinessFormCode());
|
}
|
if (lWhFormInventory.isset_businessFormName) {
|
this.setBusinessFormName(lWhFormInventory.getBusinessFormName());
|
}
|
if (lWhFormInventory.isset_warehouseType) {
|
this.setWarehouseType(lWhFormInventory.getWarehouseType());
|
}
|
if (lWhFormInventory.isset_warehouseId) {
|
this.setWarehouseId(lWhFormInventory.getWarehouseId());
|
}
|
if (lWhFormInventory.isset_warehouseName) {
|
this.setWarehouseName(lWhFormInventory.getWarehouseName());
|
}
|
if (lWhFormInventory.isset_operatorId) {
|
this.setOperatorId(lWhFormInventory.getOperatorId());
|
}
|
if (lWhFormInventory.isset_operatorName) {
|
this.setOperatorName(lWhFormInventory.getOperatorName());
|
}
|
if (lWhFormInventory.isset_states) {
|
this.setStates(lWhFormInventory.getStates());
|
}
|
if (lWhFormInventory.isset_operatorId2) {
|
this.setOperatorId2(lWhFormInventory.getOperatorId2());
|
}
|
if (lWhFormInventory.isset_operatorName2) {
|
this.setOperatorName2(lWhFormInventory.getOperatorName2());
|
}
|
if (lWhFormInventory.isset_beiz1) {
|
this.setBeiz1(lWhFormInventory.getBeiz1());
|
}
|
if (lWhFormInventory.isset_agencyId) {
|
this.setAgencyId(lWhFormInventory.getAgencyId());
|
}
|
if (lWhFormInventory.isset_agencyName) {
|
this.setAgencyName(lWhFormInventory.getAgencyName());
|
}
|
if (lWhFormInventory.isset_creatorId) {
|
this.setCreatorId(lWhFormInventory.getCreatorId());
|
}
|
if (lWhFormInventory.isset_creatorName) {
|
this.setCreatorName(lWhFormInventory.getCreatorName());
|
}
|
if (lWhFormInventory.isset_inventoryDate) {
|
this.setInventoryDate(lWhFormInventory.getInventoryDate());
|
}
|
if (lWhFormInventory.isset_createTime) {
|
this.setCreateTime(lWhFormInventory.getCreateTime());
|
}
|
if (lWhFormInventory.isset_stopTime) {
|
this.setStopTime(lWhFormInventory.getStopTime());
|
}
|
if (lWhFormInventory.isset_inWarehouseFormId) {
|
this.setInWarehouseFormId(lWhFormInventory.getInWarehouseFormId());
|
}
|
if (lWhFormInventory.isset_inBusinessFormCode) {
|
this.setInBusinessFormCode(lWhFormInventory.getInBusinessFormCode());
|
}
|
if (lWhFormInventory.isset_outWarehouseFormId) {
|
this.setOutWarehouseFormId(lWhFormInventory.getOutWarehouseFormId());
|
}
|
if (lWhFormInventory.isset_outBusinessFormCode) {
|
this.setOutBusinessFormCode(lWhFormInventory.getOutBusinessFormCode());
|
}
|
// 去掉,2022-09-07
|
// this.setDatabaseName_(l_wh_form_inventory.getDatabaseName_());
|
}
|
|
/**
|
* 获取表名
|
*/
|
@Override
|
public String getTableName_() {
|
String tableName = "l_wh_form_inventory";
|
/**
|
if (StringUtils.isNotEmpty(this.getDatabaseName_())) {
|
return this.getDatabaseName_() + "." + tableName;
|
} else {
|
return tableName;
|
}
|
*/
|
return tableName;
|
}
|
|
/**
|
* 获取主键名称
|
*/
|
@Override
|
public String getPkName_() {
|
return Id;
|
}
|
|
/**
|
* 获取主键值
|
*/
|
@Override
|
public Object getPkValue_() {
|
return this.getId();
|
}
|
|
/**
|
* 获取插入语句和参数
|
*/
|
@Override
|
public SqlAndParameters<Map<String, Object>> getInsertSql_() {
|
InsertBuilder ib = new InsertBuilder(this.getTableName_());
|
ib.set(Id, this.getId());
|
ib.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
|
ib.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
|
ib.set(WarehouseType, this.getWarehouseType(), this.isset_warehouseType);
|
ib.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
|
ib.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
|
ib.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
|
ib.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
|
ib.set(States, this.getStates(), this.isset_states);
|
ib.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
|
ib.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
|
ib.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
|
ib.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
|
ib.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
|
ib.set(CreatorId, this.getCreatorId(), this.isset_creatorId);
|
ib.set(CreatorName, this.getCreatorName(), this.isset_creatorName);
|
ib.set(InventoryDate, this.getInventoryDate(), this.isset_inventoryDate);
|
ib.set(CreateTime, this.getCreateTime(), this.isset_createTime);
|
ib.set(StopTime, this.getStopTime(), this.isset_stopTime);
|
ib.set(InWarehouseFormId, this.getInWarehouseFormId(), this.isset_inWarehouseFormId);
|
ib.set(InBusinessFormCode, this.getInBusinessFormCode(), this.isset_inBusinessFormCode);
|
ib.set(OutWarehouseFormId, this.getOutWarehouseFormId(), this.isset_outWarehouseFormId);
|
ib.set(OutBusinessFormCode, this.getOutBusinessFormCode(), this.isset_outBusinessFormCode);
|
return ib.genMapSql();
|
}
|
|
/**
|
* 获取更新语句和参数
|
*/
|
@Override
|
public SqlAndParameters<Map<String, Object>> getUpdateSql_() {
|
UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
|
ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
|
ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
|
ub.set(WarehouseType, this.getWarehouseType(), this.isset_warehouseType);
|
ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
|
ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
|
ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
|
ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
|
ub.set(States, this.getStates(), this.isset_states);
|
ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
|
ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
|
ub.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
|
ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
|
ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
|
ub.set(CreatorId, this.getCreatorId(), this.isset_creatorId);
|
ub.set(CreatorName, this.getCreatorName(), this.isset_creatorName);
|
ub.set(InventoryDate, this.getInventoryDate(), this.isset_inventoryDate);
|
ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
|
ub.set(StopTime, this.getStopTime(), this.isset_stopTime);
|
ub.set(InWarehouseFormId, this.getInWarehouseFormId(), this.isset_inWarehouseFormId);
|
ub.set(InBusinessFormCode, this.getInBusinessFormCode(), this.isset_inBusinessFormCode);
|
ub.set(OutWarehouseFormId, this.getOutWarehouseFormId(), this.isset_outWarehouseFormId);
|
ub.set(OutBusinessFormCode, this.getOutBusinessFormCode(), this.isset_outBusinessFormCode);
|
ub.where(this.getPkName_(), this.getPkValue_());
|
return ub.genMapSql();
|
}
|
|
/**
|
* 获取更新语句和参数
|
*/
|
@Override
|
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(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
|
ub.set(WarehouseType, this.getWarehouseType(), this.isset_warehouseType);
|
ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
|
ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
|
ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
|
ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
|
ub.set(States, this.getStates(), this.isset_states);
|
ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
|
ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
|
ub.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
|
ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
|
ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
|
ub.set(CreatorId, this.getCreatorId(), this.isset_creatorId);
|
ub.set(CreatorName, this.getCreatorName(), this.isset_creatorName);
|
ub.set(InventoryDate, this.getInventoryDate(), this.isset_inventoryDate);
|
ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
|
ub.set(StopTime, this.getStopTime(), this.isset_stopTime);
|
ub.set(InWarehouseFormId, this.getInWarehouseFormId(), this.isset_inWarehouseFormId);
|
ub.set(InBusinessFormCode, this.getInBusinessFormCode(), this.isset_inBusinessFormCode);
|
ub.set(OutWarehouseFormId, this.getOutWarehouseFormId(), this.isset_outWarehouseFormId);
|
ub.set(OutBusinessFormCode, this.getOutBusinessFormCode(), this.isset_outBusinessFormCode);
|
return ub.genMapSql(where, parameters);
|
}
|
|
/**
|
* 获取更新语句和参数
|
*/
|
@Override
|
public SqlAndParameters<Object[]> getUpdateSql_(String where, Object[] parameters) {
|
UpdateBuilder ub = new UpdateBuilder(this.getTableName_());
|
ub.set(BusinessFormCode, this.getBusinessFormCode(), this.isset_businessFormCode);
|
ub.set(BusinessFormName, this.getBusinessFormName(), this.isset_businessFormName);
|
ub.set(WarehouseType, this.getWarehouseType(), this.isset_warehouseType);
|
ub.set(WarehouseId, this.getWarehouseId(), this.isset_warehouseId);
|
ub.set(WarehouseName, this.getWarehouseName(), this.isset_warehouseName);
|
ub.set(OperatorId, this.getOperatorId(), this.isset_operatorId);
|
ub.set(OperatorName, this.getOperatorName(), this.isset_operatorName);
|
ub.set(States, this.getStates(), this.isset_states);
|
ub.set(OperatorId2, this.getOperatorId2(), this.isset_operatorId2);
|
ub.set(OperatorName2, this.getOperatorName2(), this.isset_operatorName2);
|
ub.set(Beiz1, this.getBeiz1(), this.isset_beiz1);
|
ub.set(AgencyId, this.getAgencyId(), this.isset_agencyId);
|
ub.set(AgencyName, this.getAgencyName(), this.isset_agencyName);
|
ub.set(CreatorId, this.getCreatorId(), this.isset_creatorId);
|
ub.set(CreatorName, this.getCreatorName(), this.isset_creatorName);
|
ub.set(InventoryDate, this.getInventoryDate(), this.isset_inventoryDate);
|
ub.set(CreateTime, this.getCreateTime(), this.isset_createTime);
|
ub.set(StopTime, this.getStopTime(), this.isset_stopTime);
|
ub.set(InWarehouseFormId, this.getInWarehouseFormId(), this.isset_inWarehouseFormId);
|
ub.set(InBusinessFormCode, this.getInBusinessFormCode(), this.isset_inBusinessFormCode);
|
ub.set(OutWarehouseFormId, this.getOutWarehouseFormId(), this.isset_outWarehouseFormId);
|
ub.set(OutBusinessFormCode, this.getOutBusinessFormCode(), this.isset_outBusinessFormCode);
|
return ub.genArraySql(where, parameters);
|
}
|
|
/**
|
* 获取删除语句和参数
|
*/
|
@Override
|
public SqlAndParameters<Map<String, Object>> getDeleteSql_() {
|
DeleteBuilder db = new DeleteBuilder(this.getTableName_());
|
db.where(this.getPkName_(), this.getPkValue_());
|
return db.genMapSql();
|
}
|
|
/**
|
* 获取删除语句和参数
|
*/
|
@Override
|
public SqlAndParameters<Map<String, Object>> getDeleteSql_(String where, Map<String, Object> parameters) {
|
DeleteBuilder db = new DeleteBuilder(this.getTableName_());
|
return db.genMapSql(where, parameters);
|
}
|
|
/**
|
* 获取删除语句和参数
|
*/
|
@Override
|
public SqlAndParameters<Object[]> getDeleteSql_(String where, Object[] parameters) {
|
DeleteBuilder db = new DeleteBuilder(this.getTableName_());
|
return db.genArraySql(where, parameters);
|
}
|
|
/**
|
* 获取单行查询语句和参数
|
*/
|
@Override
|
public SqlAndParameters<Map<String, Object>> getSingleSql_() {
|
SelectBuilder sb = new SelectBuilder(this.getTableName_());
|
sb.where(this.getPkName_(), this.getPkValue_());
|
return sb.genMapSql();
|
}
|
|
|
/**
|
* 获取查询语句和参数
|
*/
|
@Override
|
public SqlAndParameters<Map<String, Object>> getSelectSql_(String where, Map<String, Object> parameters) {
|
return new SqlAndParameters<>("select id, business_form_code, business_form_name, warehouse_type, warehouse_id, warehouse_name, operator_id, operator_name, states, operator_id2, operator_name2, beiz1, agency_id, agency_name, creator_id, creator_name, inventory_date, create_time, stop_time, in_warehouse_form_id, in_business_form_code, out_warehouse_form_id, out_business_form_code from " + this.getTableName_() + " " + where, parameters);
|
}
|
|
/**
|
* 获取查询语句和参数
|
*/
|
@Override
|
public SqlAndParameters<Object[]> getSelectSql_(String where, Object[] parameters) {
|
return new SqlAndParameters<>("select id, business_form_code, business_form_name, warehouse_type, warehouse_id, warehouse_name, operator_id, operator_name, states, operator_id2, operator_name2, beiz1, agency_id, agency_name, creator_id, creator_name, inventory_date, create_time, stop_time, in_warehouse_form_id, in_business_form_code, out_warehouse_form_id, out_business_form_code from " + this.getTableName_() + " " + where, parameters);
|
}
|
|
/**
|
* 将resultset的一行转化为po
|
*/
|
@Override
|
public LWhFormInventory mapRow(ResultSet rs, int i) throws SQLException {
|
return ROW_MAPPER.mapRow(rs, i);
|
}
|
|
/**
|
* 克隆
|
*/
|
public LWhFormInventory toLWhFormInventory() {
|
return super.$clone();
|
}
|
}
|
|
/**
|
* l_wh_form_inventory RowMapper
|
*
|
* @author genrator
|
*/
|
class LWhFormInventoryRowMapper implements RowMapper<LWhFormInventory> {
|
|
@Override
|
public LWhFormInventory mapRow(ResultSet rs, int i) throws SQLException {
|
ResultSetUtils resultSetUtils = new ResultSetUtils();
|
LWhFormInventory l_wh_form_inventory = new LWhFormInventory();
|
Integer columnIndex;
|
//主键
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.Id);
|
if (columnIndex > 0) {
|
l_wh_form_inventory.setId(rs.getLong(columnIndex));
|
}
|
//普通属性
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.BusinessFormCode);
|
if (columnIndex > 0) {
|
l_wh_form_inventory.setBusinessFormCode(rs.getString(columnIndex));
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.BusinessFormName);
|
if (columnIndex > 0) {
|
l_wh_form_inventory.setBusinessFormName(rs.getString(columnIndex));
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.WarehouseType);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setWarehouseType(null);
|
} else {
|
l_wh_form_inventory.setWarehouseType(rs.getInt(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.WarehouseId);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setWarehouseId(null);
|
} else {
|
l_wh_form_inventory.setWarehouseId(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.WarehouseName);
|
if (columnIndex > 0) {
|
l_wh_form_inventory.setWarehouseName(rs.getString(columnIndex));
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.OperatorId);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setOperatorId(null);
|
} else {
|
l_wh_form_inventory.setOperatorId(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.OperatorName);
|
if (columnIndex > 0) {
|
l_wh_form_inventory.setOperatorName(rs.getString(columnIndex));
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.States);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setStates(null);
|
} else {
|
l_wh_form_inventory.setStates(rs.getInt(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.OperatorId2);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setOperatorId2(null);
|
} else {
|
l_wh_form_inventory.setOperatorId2(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.OperatorName2);
|
if (columnIndex > 0) {
|
l_wh_form_inventory.setOperatorName2(rs.getString(columnIndex));
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.Beiz1);
|
if (columnIndex > 0) {
|
l_wh_form_inventory.setBeiz1(rs.getString(columnIndex));
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.AgencyId);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setAgencyId(null);
|
} else {
|
l_wh_form_inventory.setAgencyId(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.AgencyName);
|
if (columnIndex > 0) {
|
l_wh_form_inventory.setAgencyName(rs.getString(columnIndex));
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.CreatorId);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setCreatorId(null);
|
} else {
|
l_wh_form_inventory.setCreatorId(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.CreatorName);
|
if (columnIndex > 0) {
|
l_wh_form_inventory.setCreatorName(rs.getString(columnIndex));
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.InventoryDate);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setInventoryDate(null);
|
} else {
|
l_wh_form_inventory.setInventoryDate(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.CreateTime);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setCreateTime(null);
|
} else {
|
l_wh_form_inventory.setCreateTime(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.StopTime);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setStopTime(null);
|
} else {
|
l_wh_form_inventory.setStopTime(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.InWarehouseFormId);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setInWarehouseFormId(null);
|
} else {
|
l_wh_form_inventory.setInWarehouseFormId(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.InBusinessFormCode);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setInBusinessFormCode(null);
|
} else {
|
l_wh_form_inventory.setInBusinessFormCode(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.OutWarehouseFormId);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setOutWarehouseFormId(null);
|
} else {
|
l_wh_form_inventory.setOutWarehouseFormId(rs.getLong(columnIndex));
|
}
|
}
|
columnIndex = resultSetUtils.findColumn(rs, LWhFormInventory_mapper.OutBusinessFormCode);
|
if (columnIndex > 0) {
|
if (rs.getBigDecimal(columnIndex) == null) {
|
l_wh_form_inventory.setOutBusinessFormCode(null);
|
} else {
|
l_wh_form_inventory.setOutBusinessFormCode(rs.getLong(columnIndex));
|
}
|
}
|
return l_wh_form_inventory;
|
}
|
}
|