Commit f2d28b86 by 宋祥

1.采购入库实体类和XML

parent 5364f889
/**
* Generate time : 2024-01-09 18:54:54
* Version : 1.0
*/
package com.baosight.hpjx.hp.kc.domain; package com.baosight.hpjx.hp.kc.domain;
import com.baosight.iplat4j.core.data.DaoEPBase;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.util.NumberUtils; import com.baosight.iplat4j.core.util.NumberUtils;
import com.baosight.iplat4j.core.util.StringUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
import com.baosight.iplat4j.core.util.DateUtils;
import java.sql.Timestamp;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.data.DaoEPBase;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.baosight.iplat4j.core.util.StringUtils;
/** /**
* Thpkc008 * Project: <br>
* * Title:THpkc001.java <br>
*/ * Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-01-25 11:33:46 create
*/
public class HPKC001 extends DaoEPBase { public class HPKC001 extends DaoEPBase {
private Long id = 0L; private static final long serialVersionUID = 1L;
private String companyCode = " "; /* 企业编码 预留*/
private String createdBy = " "; /* 创建人*/ public static final String FIELD_ID = "id"; /* 主键id*/
private String createdName = " "; /* 创建人名称*/ public static final String FIELD_COMPANY_CODE = "companyCode"; /* 企业编码 预留*/
private String createdTime = " "; /* 创建时间*/ public static final String FIELD_DEP_CODE = "depCode"; /* 部门编码*/
private String updatedBy = " "; /* 更新人*/ public static final String FIELD_CREATED_BY = "createdBy"; /* 创建人*/
private String updatedName = " "; /* 创建人名称*/ public static final String FIELD_CREATED_NAME = "createdName"; /* 创建人名称*/
private String updatedTime = " "; /* 更新时间*/ public static final String FIELD_CREATED_TIME = "createdTime"; /* 创建时间*/
private String depCode = " "; /* 部门编码*/ public static final String FIELD_UPDATED_BY = "updatedBy"; /* 更新人*/
private int status; /* 数据状态 1正常 0删除*/ public static final String FIELD_UPDATED_NAME = "updatedName"; /* 更新人名称*/
private String documentCode = " "; /* 采购入库单号*/ public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 更新时间*/
private String documentTime = " "; /* 单据日期*/ public static final String FIELD_PURCHASE_CODE = "purchaseCode"; /* 采购单号*/
private String whCode = " "; /* 仓库编码*/ public static final String FIELD_RECEIPT_DATE = "receiptDate"; /* 单据日期*/
private String whName = " "; /* 仓库名称*/ public static final String FIELD_WH_CODE = "whCode"; /* 仓库编码*/
private String materialType = " "; /* 存货类型编码*/ public static final String FIELD_WH_NAME = "whName"; /* 仓库名称*/
private String materialTypeName = " "; /* 存货类型名称*/ public static final String FIELD_INVENT_TYPE = "inventType"; /* 存货类型*/
private String materialCode = " "; /* 存货编码*/ public static final String FIELD_INVENT_CODE = "inventCode"; /* 存货编码*/
private String materialName = " "; /* 存货名称*/ public static final String FIELD_INVENT_NAME = "inventName"; /* 存货名称*/
private String spec = " "; /* 规格*/ public static final String FIELD_INVENT_RECORD_ID = "inventRecordId"; /* 存货档案ID*/
private String unit = " "; /* 单位*/ public static final String FIELD_AMOUNT = "amount"; /* 数量*/
private Long quantity = 0L; /* 数量*/ public static final String FIELD_WEIGHT = "weight"; /* 重量*/
private BigDecimal weight = new BigDecimal("0"); /* 重量*/ public static final String FIELD_REMARKS = "remarks"; /* 备注*/
private String remarks = " "; /* 备注*/ public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 是否删除0.否1.是*/
private int approvalStatus; /* 审批状态:1-保存,2-已提交,3-审批通过,4-审批拒绝*/
private String custCode = " "; /* 供应商编码*/ public static final String COL_ID = "ID"; /* 主键id*/
private String custName = " "; /* 供应商名称*/ public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 企业编码 预留*/
public static final String COL_DEP_CODE = "DEP_CODE"; /* 部门编码*/
public static final String COL_CREATED_BY = "CREATED_BY"; /* 创建人*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 创建人名称*/
/** public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 创建时间*/
* initialize the metadata public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 更新人*/
*/ public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 更新人名称*/
public void initMetaData() { public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/
EiColumn eiColumn; public static final String COL_PURCHASE_CODE = "PURCHASE_CODE"; /* 采购单号*/
public static final String COL_RECEIPT_DATE = "RECEIPT_DATE"; /* 单据日期*/
eiColumn = new EiColumn("id"); public static final String COL_WH_CODE = "WH_CODE"; /* 仓库编码*/
eiColumn.setPrimaryKey(true); public static final String COL_WH_NAME = "WH_NAME"; /* 仓库名称*/
eiColumn.setDescName(" "); public static final String COL_INVENT_TYPE = "INVENT_TYPE"; /* 存货类型*/
eiMetadata.addMeta(eiColumn); public static final String COL_INVENT_CODE = "INVENT_CODE"; /* 存货编码*/
public static final String COL_INVENT_NAME = "INVENT_NAME"; /* 存货名称*/
eiColumn = new EiColumn("companyCode"); public static final String COL_INVENT_RECORD_ID = "INVENT_RECORD_ID"; /* 存货档案ID*/
eiColumn.setDescName("企业编码 预留"); public static final String COL_AMOUNT = "AMOUNT"; /* 数量*/
eiMetadata.addMeta(eiColumn); public static final String COL_WEIGHT = "WEIGHT"; /* 重量*/
public static final String COL_REMARKS = "REMARKS"; /* 备注*/
eiColumn = new EiColumn("createdBy"); public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 是否删除0.否1.是*/
eiColumn.setDescName("创建人");
eiMetadata.addMeta(eiColumn); public static final String QUERY = "t_hpkc001.query";
public static final String COUNT = "t_hpkc001.count";
eiColumn = new EiColumn("createdByName"); public static final String INSERT = "t_hpkc001.insert";
eiColumn.setDescName("创建人名称"); public static final String UPDATE = "t_hpkc001.update";
eiMetadata.addMeta(eiColumn); public static final String DELETE = "t_hpkc001.delete";
eiColumn = new EiColumn("createdTime"); private Long id = null; /* 主键id*/
eiColumn.setDescName("创建时间"); private String companyCode = " "; /* 企业编码 预留*/
eiMetadata.addMeta(eiColumn); private String depCode = " "; /* 部门编码*/
private String createdBy = " "; /* 创建人*/
eiColumn = new EiColumn("updatedBy"); private String createdName = " "; /* 创建人名称*/
eiColumn.setDescName("更新人"); private String createdTime ; /* 创建时间*/
eiMetadata.addMeta(eiColumn); private String updatedBy = " "; /* 更新人*/
private String updatedName = " "; /* 更新人名称*/
eiColumn = new EiColumn("updatedName"); private String updatedTime ; /* 更新时间*/
eiColumn.setDescName("更新人名称"); private String purchaseCode = " "; /* 采购单号*/
eiMetadata.addMeta(eiColumn); private String receiptDate ; /* 单据日期*/
private String whCode = " "; /* 仓库编码*/
eiColumn = new EiColumn("updatedTime"); private String whName = " "; /* 仓库名称*/
eiColumn.setDescName("更新时间"); private String inventType = " "; /* 存货类型*/
eiMetadata.addMeta(eiColumn); private String inventCode = " "; /* 存货编码*/
private String inventName = " "; /* 存货名称*/
eiColumn = new EiColumn("depCode"); private Long inventRecordId = new Long(0); /* 存货档案ID*/
eiColumn.setDescName("部门编码"); private BigDecimal amount = new BigDecimal("0"); /* 数量*/
eiMetadata.addMeta(eiColumn); private BigDecimal weight = new BigDecimal("0"); /* 重量*/
private String remarks = " "; /* 备注*/
eiColumn = new EiColumn("status"); private Integer deleteFlag; /* 是否删除0.否1.是*/
eiColumn.setDescName("数据状态 1正常 0删除");
eiMetadata.addMeta(eiColumn); /**
* initialize the metadata.
eiColumn = new EiColumn("documentCode"); */
eiColumn.setDescName("采购入库单号"); public void initMetaData() {
eiMetadata.addMeta(eiColumn); EiColumn eiColumn;
eiColumn = new EiColumn("documentTime"); eiColumn = new EiColumn(FIELD_ID);
eiColumn.setDescName("单据日期"); eiColumn.setPrimaryKey(true);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("主键id");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("whCode");
eiColumn.setDescName("仓库编码"); eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("企业编码 预留");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("whName");
eiColumn.setDescName("仓库名称"); eiColumn = new EiColumn(FIELD_DEP_CODE);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("materialType");
eiColumn.setDescName("存货类型编码"); eiColumn = new EiColumn(FIELD_CREATED_BY);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("创建人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("materialTypeName");
eiColumn.setDescName("存货类型名称"); eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("创建人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("materialCode");
eiColumn.setDescName("存货编码"); eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("materialName");
eiColumn.setDescName("存货名称"); eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("更新人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("spec");
eiColumn.setDescName("规格"); eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("更新人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("unit");
eiColumn.setDescName("单位"); eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("quantity");
eiColumn.setDescName("数量"); eiColumn = new EiColumn(FIELD_PURCHASE_CODE);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("采购单号");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("weight");
eiColumn.setType("N"); eiColumn = new EiColumn(FIELD_RECEIPT_DATE);
eiColumn.setScaleLength(2); eiColumn.setDescName("单据日期");
eiColumn.setFieldLength(10); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("重量");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_WH_CODE);
eiColumn.setDescName("仓库编码");
eiColumn = new EiColumn("remarks"); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("备注");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_WH_NAME);
eiColumn.setDescName("仓库名称");
eiColumn = new EiColumn("approvalStatus"); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("审批状态:1-保存,2-已提交,3-审批通过,4-审批拒绝");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_INVENT_TYPE);
eiColumn.setDescName("存货类型");
eiColumn = new EiColumn("custCode"); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("供应商编码");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_INVENT_CODE);
eiColumn.setDescName("存货编码");
eiColumn = new EiColumn("custName"); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("供应商名称");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_INVENT_NAME);
} eiColumn.setDescName("存货名称");
/** eiMetadata.addMeta(eiColumn);
* the constructor
*/ eiColumn = new EiColumn(FIELD_INVENT_RECORD_ID);
public HPKC001() { eiColumn.setDescName("存货档案ID");
initMetaData(); eiMetadata.addMeta(eiColumn);
}
eiColumn = new EiColumn(FIELD_AMOUNT);
public Long getId() { eiColumn.setType("N");
return id; eiColumn.setScaleLength(0);
} eiColumn.setFieldLength(12);
eiColumn.setDescName("数量");
public void setId(Long id) { eiMetadata.addMeta(eiColumn);
this.id = id;
} eiColumn = new EiColumn(FIELD_WEIGHT);
eiColumn.setType("N");
public String getCompanyCode() { eiColumn.setScaleLength(0);
return companyCode; eiColumn.setFieldLength(12);
} eiColumn.setDescName("重量");
eiMetadata.addMeta(eiColumn);
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode; eiColumn = new EiColumn(FIELD_REMARKS);
} eiColumn.setDescName("备注");
eiMetadata.addMeta(eiColumn);
public String getCreatedBy() {
return createdBy; eiColumn = new EiColumn(FIELD_DELETE_FLAG);
} eiColumn.setDescName("是否删除0.否1.是");
eiMetadata.addMeta(eiColumn);
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
} }
public String getCreatedName() { /**
return createdName; * the constructor.
} */
public HPKC001() {
public void setCreatedName(String createdName) { initMetaData();
this.createdName = createdName; }
}
/**
public String getCreatedTime() { * get the id - 主键id.
return createdTime; * @return the id
} */
public Long getId() {
public void setCreatedTime(String createdTime) { return this.id;
this.createdTime = createdTime; }
}
/**
public String getUpdatedBy() { * set the id - 主键id.
return updatedBy; *
} * @param id - 主键id
*/
public void setUpdatedBy(String updatedBy) { public void setId(Long id) {
this.updatedBy = updatedBy; this.id = id;
} }
/**
public String getUpdatedName() { * get the companyCode - 企业编码 预留.
return updatedName; * @return the companyCode
} */
public String getCompanyCode() {
public void setUpdatedName(String updatedName) { return this.companyCode;
this.updatedName = updatedName; }
}
/**
public String getUpdatedTime() { * set the companyCode - 企业编码 预留.
return updatedTime; *
} * @param companyCode - 企业编码 预留
*/
public void setUpdatedTime(String updatedTime) { public void setCompanyCode(String companyCode) {
this.updatedTime = updatedTime; this.companyCode = companyCode;
} }
/**
public String getDepCode() { * get the depCode - 部门编码.
return depCode; * @return the depCode
} */
public String getDepCode() {
public void setDepCode(String depCode) { return this.depCode;
this.depCode = depCode; }
}
/**
public int getStatus() { * set the depCode - 部门编码.
return status; *
} * @param depCode - 部门编码
*/
public void setStatus(int status) { public void setDepCode(String depCode) {
this.status = status; this.depCode = depCode;
} }
/**
public String getDocumentCode() { * get the createdBy - 创建人.
return documentCode; * @return the createdBy
} */
public String getCreatedBy() {
public void setDocumentCode(String documentCode) { return this.createdBy;
this.documentCode = documentCode; }
}
/**
public String getDocumentTime() { * set the createdBy - 创建人.
return documentTime; *
} * @param createdBy - 创建人
*/
public void setDocumentTime(String documentTime) { public void setCreatedBy(String createdBy) {
this.documentTime = documentTime; this.createdBy = createdBy;
} }
/**
public String getWhCode() { * get the createdName - 创建人名称.
return whCode; * @return the createdName
} */
public String getCreatedName() {
public void setWhCode(String whCode) { return this.createdName;
this.whCode = whCode; }
}
/**
public String getWhName() { * set the createdName - 创建人名称.
return whName; *
} * @param createdName - 创建人名称
*/
public void setWhName(String whName) { public void setCreatedName(String createdName) {
this.whName = whName; this.createdName = createdName;
} }
/**
public String getMaterialType() { * get the createdTime - 创建时间.
return materialType; * @return the createdTime
} */
public String getCreatedTime() {
public void setMaterialType(String materialType) { return this.createdTime;
this.materialType = materialType; }
}
/**
public String getMaterialTypeName() { * set the createdTime - 创建时间.
return materialTypeName; *
} * @param createdTime - 创建时间
*/
public void setMaterialTypeName(String materialTypeName) { public void setCreatedTime(String createdTime) {
this.materialTypeName = materialTypeName; this.createdTime = createdTime;
} }
/**
public String getMaterialCode() { * get the updatedBy - 更新人.
return materialCode; * @return the updatedBy
} */
public String getUpdatedBy() {
public void setMaterialCode(String materialCode) { return this.updatedBy;
this.materialCode = materialCode; }
}
/**
public String getMaterialName() { * set the updatedBy - 更新人.
return materialName; *
} * @param updatedBy - 更新人
*/
public void setMaterialName(String materialName) { public void setUpdatedBy(String updatedBy) {
this.materialName = materialName; this.updatedBy = updatedBy;
} }
/**
public String getSpec() { * get the updatedName - 更新人名称.
return spec; * @return the updatedName
} */
public String getUpdatedName() {
public void setSpec(String spec) { return this.updatedName;
this.spec = spec; }
}
/**
public String getUnit() { * set the updatedName - 更新人名称.
return unit; *
} * @param updatedName - 更新人名称
*/
public void setUnit(String unit) { public void setUpdatedName(String updatedName) {
this.unit = unit; this.updatedName = updatedName;
} }
/**
public Long getQuantity() { * get the updatedTime - 更新时间.
return quantity; * @return the updatedTime
} */
public String getUpdatedTime() {
public void setQuantity(Long quantity) { return this.updatedTime;
this.quantity = quantity; }
}
/**
public BigDecimal getWeight() { * set the updatedTime - 更新时间.
return weight; *
} * @param updatedTime - 更新时间
*/
public void setWeight(BigDecimal weight) { public void setUpdatedTime(String updatedTime) {
this.weight = weight; this.updatedTime = updatedTime;
} }
/**
public String getRemarks() { * get the purchaseCode - 采购单号.
return remarks; * @return the purchaseCode
} */
public String getPurchaseCode() {
public void setRemarks(String remarks) { return this.purchaseCode;
this.remarks = remarks; }
}
/**
public int getApprovalStatus() { * set the purchaseCode - 采购单号.
return approvalStatus; *
} * @param purchaseCode - 采购单号
*/
public void setApprovalStatus(int approvalStatus) { public void setPurchaseCode(String purchaseCode) {
this.approvalStatus = approvalStatus; this.purchaseCode = purchaseCode;
} }
/**
public String getCustCode() { * get the receiptDate - 单据日期.
return custCode; * @return the receiptDate
} */
public String getReceiptDate() {
public void setCustCode(String custCode) { return this.receiptDate;
this.custCode = custCode; }
}
/**
public String getCustName() { * set the receiptDate - 单据日期.
return custName; *
} * @param receiptDate - 单据日期
*/
public void setCustName(String custName) { public void setReceiptDate(String receiptDate) {
this.custName = custName; this.receiptDate = receiptDate;
} }
/**
/** * get the whCode - 仓库编码.
* get the value from Map * @return the whCode
*/ */
@Override public String getWhCode() {
public void fromMap(Map map) { return this.whCode;
}
setId(NumberUtils.toLong(StringUtils.toString(map.get("id")), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("companyCode")), companyCode)); /**
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdBy")), createdBy)); * set the whCode - 仓库编码.
setCreatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdByName")), createdName)); *
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdTime")), createdTime)); * @param whCode - 仓库编码
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedBy")), updatedBy)); */
setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedName")), updatedName)); public void setWhCode(String whCode) {
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedTime")), updatedTime)); this.whCode = whCode;
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("depCode")), depCode)); }
setStatus(NumberUtils.toint(StringUtils.toString(map.get("status")), status)); /**
setDocumentCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("documentCode")), documentCode)); * get the whName - 仓库名称.
setDocumentTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("documentTime")), documentTime)); * @return the whName
setWhCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("whCode")), whCode)); */
setWhName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("whName")), whName)); public String getWhName() {
setMaterialType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("materialType")), materialType)); return this.whName;
setMaterialTypeName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("materialTypeName")), materialTypeName)); }
setMaterialCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("materialCode")), materialCode));
setMaterialName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("materialName")), materialName)); /**
setSpec(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("spec")), spec)); * set the whName - 仓库名称.
setUnit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("unit")), unit)); *
setQuantity(NumberUtils.toLong(StringUtils.toString(map.get("quantity")), quantity)); * @param whName - 仓库名称
setWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get("weight")), weight)); */
setRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("remarks")), remarks)); public void setWhName(String whName) {
setApprovalStatus(NumberUtils.toint(StringUtils.toString(map.get("approvalStatus")), approvalStatus)); this.whName = whName;
setCustCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("custCode")), custCode)); }
setCustName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("custName")), custName)); /**
} * get the inventType - 存货类型.
* @return the inventType
/** */
* set the value to Map public String getInventType() {
*/ return this.inventType;
@Override }
public Map toMap() {
/**
Map map = new HashMap(); * set the inventType - 存货类型.
map.put("id",StringUtils.toString(id, eiMetadata.getMeta("id"))); *
map.put("companyCode",StringUtils.toString(companyCode, eiMetadata.getMeta("companyCode"))); * @param inventType - 存货类型
map.put("createdBy",StringUtils.toString(createdBy, eiMetadata.getMeta("createdBy"))); */
map.put("createdName",StringUtils.toString(createdName, eiMetadata.getMeta("createdByName"))); public void setInventType(String inventType) {
map.put("createdTime",StringUtils.toString(createdTime, eiMetadata.getMeta("createdTime"))); this.inventType = inventType;
map.put("updatedBy",StringUtils.toString(updatedBy, eiMetadata.getMeta("updatedBy"))); }
map.put("updatedName",StringUtils.toString(updatedName, eiMetadata.getMeta("updatedName"))); /**
map.put("updatedTime",StringUtils.toString(updatedTime, eiMetadata.getMeta("updatedTime"))); * get the inventCode - 存货编码.
map.put("depCode",StringUtils.toString(depCode, eiMetadata.getMeta("depCode"))); * @return the inventCode
map.put("status",StringUtils.toString(status, eiMetadata.getMeta("status"))); */
map.put("documentCode",StringUtils.toString(documentCode, eiMetadata.getMeta("documentCode"))); public String getInventCode() {
map.put("documentTime",StringUtils.toString(documentTime, eiMetadata.getMeta("documentTime"))); return this.inventCode;
map.put("whCode",StringUtils.toString(whCode, eiMetadata.getMeta("whCode"))); }
map.put("whName",StringUtils.toString(whName, eiMetadata.getMeta("whName")));
map.put("materialType",StringUtils.toString(materialType, eiMetadata.getMeta("materialType"))); /**
map.put("materialTypeName",StringUtils.toString(materialTypeName, eiMetadata.getMeta("materialTypeName"))); * set the inventCode - 存货编码.
map.put("materialCode",StringUtils.toString(materialCode, eiMetadata.getMeta("materialCode"))); *
map.put("materialName",StringUtils.toString(materialName, eiMetadata.getMeta("materialName"))); * @param inventCode - 存货编码
map.put("spec",StringUtils.toString(spec, eiMetadata.getMeta("spec"))); */
map.put("unit",StringUtils.toString(unit, eiMetadata.getMeta("unit"))); public void setInventCode(String inventCode) {
map.put("quantity",StringUtils.toString(quantity, eiMetadata.getMeta("quantity"))); this.inventCode = inventCode;
map.put("weight",StringUtils.toString(weight, eiMetadata.getMeta("weight"))); }
map.put("remarks",StringUtils.toString(remarks, eiMetadata.getMeta("remarks"))); /**
map.put("approvalStatus",StringUtils.toString(approvalStatus, eiMetadata.getMeta("approvalStatus"))); * get the inventName - 存货名称.
map.put("custCode",StringUtils.toString(custCode, eiMetadata.getMeta("custCode"))); * @return the inventName
map.put("custName",StringUtils.toString(custName, eiMetadata.getMeta("custName"))); */
return map; public String getInventName() {
return this.inventName;
} }
/**
* set the inventName - 存货名称.
*
* @param inventName - 存货名称
*/
public void setInventName(String inventName) {
this.inventName = inventName;
}
/**
* get the inventRecordId - 存货档案ID.
* @return the inventRecordId
*/
public Long getInventRecordId() {
return this.inventRecordId;
}
/**
* set the inventRecordId - 存货档案ID.
*
* @param inventRecordId - 存货档案ID
*/
public void setInventRecordId(Long inventRecordId) {
this.inventRecordId = inventRecordId;
}
/**
* get the amount - 数量.
* @return the amount
*/
public BigDecimal getAmount() {
return this.amount;
}
/**
* set the amount - 数量.
*
* @param amount - 数量
*/
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
/**
* get the weight - 重量.
* @return the weight
*/
public BigDecimal getWeight() {
return this.weight;
}
/**
* set the weight - 重量.
*
* @param weight - 重量
*/
public void setWeight(BigDecimal weight) {
this.weight = weight;
}
/**
* get the remarks - 备注.
* @return the remarks
*/
public String getRemarks() {
return this.remarks;
}
/**
* set the remarks - 备注.
*
* @param remarks - 备注
*/
public void setRemarks(String remarks) {
this.remarks = remarks;
}
/**
* get the deleteFlag - 是否删除0.否1.是.
* @return the deleteFlag
*/
public Integer getDeleteFlag() {
return this.deleteFlag;
}
/**
* set the deleteFlag - 是否删除0.否1.是.
*
* @param deleteFlag - 是否删除0.否1.是
*/
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public void fromMap(Map map) {
setId(NumberUtils.toLong(StringUtils.toString(map.get(FIELD_ID)), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_COMPANY_CODE)), companyCode));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DEP_CODE)), depCode));
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_BY)), createdBy));
setCreatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_NAME)), createdName));
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_TIME)), createdTime));
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_BY)), updatedBy));
setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_NAME)), updatedName));
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_TIME)), updatedTime));
setPurchaseCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_PURCHASE_CODE)), purchaseCode));
setReceiptDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_RECEIPT_DATE)), receiptDate));
setWhCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_WH_CODE)), whCode));
setWhName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_WH_NAME)), whName));
setInventType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_TYPE)), inventType));
setInventCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_CODE)), inventCode));
setInventName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_NAME)), inventName));
setInventRecordId(NumberUtils.toLong(StringUtils.toString(map.get(FIELD_INVENT_RECORD_ID)), inventRecordId));
setAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_AMOUNT)), amount));
setWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_WEIGHT)), weight));
setRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_REMARKS)), remarks));
setDeleteFlag(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_DELETE_FLAG)), deleteFlag));
}
/**
* set the value to Map.
*/
@Override
public Map toMap() {
Map map = new HashMap();
map.put(FIELD_ID, StringUtils.toString(id, eiMetadata.getMeta(FIELD_ID)));
map.put(FIELD_COMPANY_CODE, StringUtils.toString(companyCode, eiMetadata.getMeta(FIELD_COMPANY_CODE)));
map.put(FIELD_DEP_CODE, StringUtils.toString(depCode, eiMetadata.getMeta(FIELD_DEP_CODE)));
map.put(FIELD_CREATED_BY, StringUtils.toString(createdBy, eiMetadata.getMeta(FIELD_CREATED_BY)));
map.put(FIELD_CREATED_NAME, StringUtils.toString(createdName, eiMetadata.getMeta(FIELD_CREATED_NAME)));
map.put(FIELD_CREATED_TIME, StringUtils.toString(createdTime, eiMetadata.getMeta(FIELD_CREATED_TIME)));
map.put(FIELD_UPDATED_BY, StringUtils.toString(updatedBy, eiMetadata.getMeta(FIELD_UPDATED_BY)));
map.put(FIELD_UPDATED_NAME, StringUtils.toString(updatedName, eiMetadata.getMeta(FIELD_UPDATED_NAME)));
map.put(FIELD_UPDATED_TIME, StringUtils.toString(updatedTime, eiMetadata.getMeta(FIELD_UPDATED_TIME)));
map.put(FIELD_PURCHASE_CODE, StringUtils.toString(purchaseCode, eiMetadata.getMeta(FIELD_PURCHASE_CODE)));
map.put(FIELD_RECEIPT_DATE, StringUtils.toString(receiptDate, eiMetadata.getMeta(FIELD_RECEIPT_DATE)));
map.put(FIELD_WH_CODE, StringUtils.toString(whCode, eiMetadata.getMeta(FIELD_WH_CODE)));
map.put(FIELD_WH_NAME, StringUtils.toString(whName, eiMetadata.getMeta(FIELD_WH_NAME)));
map.put(FIELD_INVENT_TYPE, StringUtils.toString(inventType, eiMetadata.getMeta(FIELD_INVENT_TYPE)));
map.put(FIELD_INVENT_CODE, StringUtils.toString(inventCode, eiMetadata.getMeta(FIELD_INVENT_CODE)));
map.put(FIELD_INVENT_NAME, StringUtils.toString(inventName, eiMetadata.getMeta(FIELD_INVENT_NAME)));
map.put(FIELD_INVENT_RECORD_ID, StringUtils.toString(inventRecordId, eiMetadata.getMeta(FIELD_INVENT_RECORD_ID)));
map.put(FIELD_AMOUNT, StringUtils.toString(amount, eiMetadata.getMeta(FIELD_AMOUNT)));
map.put(FIELD_WEIGHT, StringUtils.toString(weight, eiMetadata.getMeta(FIELD_WEIGHT)));
map.put(FIELD_REMARKS, StringUtils.toString(remarks, eiMetadata.getMeta(FIELD_REMARKS)));
map.put(FIELD_DELETE_FLAG, StringUtils.toString(deleteFlag, eiMetadata.getMeta(FIELD_DELETE_FLAG)));
return map;
}
} }
/**
* Generate time : 2024-01-09 18:54:54
* Version : 1.0
*/
package com.baosight.hpjx.hp.kc.domain; package com.baosight.hpjx.hp.kc.domain;
import com.baosight.iplat4j.core.data.DaoEPBase;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.util.NumberUtils; import com.baosight.iplat4j.core.util.NumberUtils;
import com.baosight.iplat4j.core.util.StringUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
import com.baosight.iplat4j.core.util.DateUtils;
import java.sql.Timestamp;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.data.DaoEPBase;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.baosight.iplat4j.core.util.StringUtils;
/** /**
* Thpkc008 * Project: <br>
* * Title:THpkc002.java <br>
*/ * Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-01-25 13:33:31 create
*/
public class HPKC002 extends DaoEPBase { public class HPKC002 extends DaoEPBase {
private Long id = 0L; private static final long serialVersionUID = 1L;
private String companyCode = " "; /* 企业编码 预留*/
private String createdBy = " "; /* 创建人*/ public static final String FIELD_ID = "id"; /* 主键id*/
private String createdName = " "; /* 创建人名称*/ public static final String FIELD_COMPANY_CODE = "companyCode"; /* 企业编码 预留*/
private String createdTime = " "; /* 创建时间*/ public static final String FIELD_DEP_CODE = "depCode"; /* 部门编码*/
private String updatedBy = " "; /* 更新人*/ public static final String FIELD_CREATED_BY = "createdBy"; /* 创建人*/
private String updatedName = " "; /* 创建人名称*/ public static final String FIELD_CREATED_NAME = "createdName"; /* 创建人名称*/
private String updatedTime = " "; /* 更新时间*/ public static final String FIELD_CREATED_TIME = "createdTime"; /* 创建时间*/
private String depCode = " "; /* 部门编码*/ public static final String FIELD_UPDATED_BY = "updatedBy"; /* 更新人*/
private int status; /* 数据状态 1正常 0删除*/ public static final String FIELD_UPDATED_NAME = "updatedName"; /* 更新人名称*/
private String documentCode = " "; /* 单据编号*/ public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 更新时间*/
private String documentTime = " "; /* 单据日期*/ public static final String FIELD_REQ_CODE = "reqCode"; /* 领料单号*/
private String whCode = " "; /* 仓库编码*/ public static final String FIELD_RECEIPT_DATE = "receiptDate"; /* 单据日期*/
private String whName = " "; /* 仓库名称*/ public static final String FIELD_WH_CODE = "whCode"; /* 仓库编码*/
private String materialType = " "; /* 存货类型编码*/ public static final String FIELD_WH_NAME = "whName"; /* 仓库名称*/
private String materialTypeName = " "; /* 存货类型名称*/ public static final String FIELD_INVENT_TYPE = "inventType"; /* 存货类型*/
private String materialCode = " "; /* 存货编码*/ public static final String FIELD_INVENT_CODE = "inventCode"; /* 存货编码*/
private String materialName = " "; /* 存货名称*/ public static final String FIELD_INVENT_NAME = "inventName"; /* 存货名称*/
private String spec = " "; /* 规格*/ public static final String FIELD_INVENT_RECORD_ID = "inventRecordId"; /* 存货档案ID*/
private String unit = " "; /* 单位*/ public static final String FIELD_AMOUNT = "amount"; /* 数量*/
private Long quantity = 0L; /* 数量*/ public static final String FIELD_WEIGHT = "weight"; /* 重量*/
private BigDecimal weight = new BigDecimal("0"); /* 重量*/ public static final String FIELD_REMARKS = "remarks"; /* 备注*/
private String remarks = " "; /* 备注*/ public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 是否删除0.否1.是*/
private int approvalStatus; /* 审批状态:1-保存,2-已提交,3-审批通过,4-审批拒绝*/
private String custCode = " "; /* 供应商编码*/ public static final String COL_ID = "ID"; /* 主键id*/
private String custName = " "; /* 供应商名称*/ public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 企业编码 预留*/
public static final String COL_DEP_CODE = "DEP_CODE"; /* 部门编码*/
public static final String COL_CREATED_BY = "CREATED_BY"; /* 创建人*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 创建人名称*/
/** public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 创建时间*/
* initialize the metadata public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 更新人*/
*/ public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 更新人名称*/
public void initMetaData() { public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/
EiColumn eiColumn; public static final String COL_REQ_CODE = "REQ_CODE"; /* 领料单号*/
public static final String COL_RECEIPT_DATE = "RECEIPT_DATE"; /* 单据日期*/
eiColumn = new EiColumn("id"); public static final String COL_WH_CODE = "WH_CODE"; /* 仓库编码*/
eiColumn.setPrimaryKey(true); public static final String COL_WH_NAME = "WH_NAME"; /* 仓库名称*/
eiColumn.setDescName(" "); public static final String COL_INVENT_TYPE = "INVENT_TYPE"; /* 存货类型*/
eiMetadata.addMeta(eiColumn); public static final String COL_INVENT_CODE = "INVENT_CODE"; /* 存货编码*/
public static final String COL_INVENT_NAME = "INVENT_NAME"; /* 存货名称*/
eiColumn = new EiColumn("companyCode"); public static final String COL_INVENT_RECORD_ID = "INVENT_RECORD_ID"; /* 存货档案ID*/
eiColumn.setDescName("企业编码 预留"); public static final String COL_AMOUNT = "AMOUNT"; /* 数量*/
eiMetadata.addMeta(eiColumn); public static final String COL_WEIGHT = "WEIGHT"; /* 重量*/
public static final String COL_REMARKS = "REMARKS"; /* 备注*/
eiColumn = new EiColumn("createdBy"); public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 是否删除0.否1.是*/
eiColumn.setDescName("创建人");
eiMetadata.addMeta(eiColumn); public static final String QUERY = "t_hpkc002.query";
public static final String COUNT = "t_hpkc002.count";
eiColumn = new EiColumn("createdByName"); public static final String INSERT = "t_hpkc002.insert";
eiColumn.setDescName("创建人名称"); public static final String UPDATE = "t_hpkc002.update";
eiMetadata.addMeta(eiColumn); public static final String DELETE = "t_hpkc002.delete";
eiColumn = new EiColumn("createdTime"); private Long id = null; /* 主键id*/
eiColumn.setDescName("创建时间"); private String companyCode = " "; /* 企业编码 预留*/
eiMetadata.addMeta(eiColumn); private String depCode = " "; /* 部门编码*/
private String createdBy = " "; /* 创建人*/
eiColumn = new EiColumn("updatedBy"); private String createdName = " "; /* 创建人名称*/
eiColumn.setDescName("更新人"); private String createdTime ; /* 创建时间*/
eiMetadata.addMeta(eiColumn); private String updatedBy = " "; /* 更新人*/
private String updatedName = " "; /* 更新人名称*/
eiColumn = new EiColumn("updatedName"); private String updatedTime ; /* 更新时间*/
eiColumn.setDescName("更新人名称"); private String reqCode = " "; /* 领料单号*/
eiMetadata.addMeta(eiColumn); private String receiptDate ; /* 单据日期*/
private String whCode = " "; /* 仓库编码*/
eiColumn = new EiColumn("updatedTime"); private String whName = " "; /* 仓库名称*/
eiColumn.setDescName("更新时间"); private String inventType = " "; /* 存货类型*/
eiMetadata.addMeta(eiColumn); private String inventCode = " "; /* 存货编码*/
private String inventName = " "; /* 存货名称*/
eiColumn = new EiColumn("depCode"); private Long inventRecordId = new Long(0); /* 存货档案ID*/
eiColumn.setDescName("部门编码"); private BigDecimal amount = new BigDecimal("0"); /* 数量*/
eiMetadata.addMeta(eiColumn); private BigDecimal weight = new BigDecimal("0"); /* 重量*/
private String remarks = " "; /* 备注*/
eiColumn = new EiColumn("status"); private Boolean deleteFlag; /* 是否删除0.否1.是*/
eiColumn.setDescName("数据状态 1正常 0删除");
eiMetadata.addMeta(eiColumn); /**
* initialize the metadata.
eiColumn = new EiColumn("documentCode"); */
eiColumn.setDescName("单据编号"); public void initMetaData() {
eiMetadata.addMeta(eiColumn); EiColumn eiColumn;
eiColumn = new EiColumn("documentTime"); eiColumn = new EiColumn(FIELD_ID);
eiColumn.setDescName("单据日期"); eiColumn.setPrimaryKey(true);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("主键id");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("whCode");
eiColumn.setDescName("仓库编码"); eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("企业编码 预留");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("whName");
eiColumn.setDescName("仓库名称"); eiColumn = new EiColumn(FIELD_DEP_CODE);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("materialType");
eiColumn.setDescName("存货类型编码"); eiColumn = new EiColumn(FIELD_CREATED_BY);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("创建人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("materialTypeName");
eiColumn.setDescName("存货类型名称"); eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("创建人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("materialCode");
eiColumn.setDescName("存货编码"); eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("materialName");
eiColumn.setDescName("存货名称"); eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("更新人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("spec");
eiColumn.setDescName("规格"); eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("更新人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("unit");
eiColumn.setDescName("单位"); eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("quantity");
eiColumn.setDescName("数量"); eiColumn = new EiColumn(FIELD_REQ_CODE);
eiMetadata.addMeta(eiColumn); eiColumn.setDescName("领料单号");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("weight");
eiColumn.setType("N"); eiColumn = new EiColumn(FIELD_RECEIPT_DATE);
eiColumn.setScaleLength(2); eiColumn.setDescName("单据日期");
eiColumn.setFieldLength(10); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("重量");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_WH_CODE);
eiColumn.setDescName("仓库编码");
eiColumn = new EiColumn("remarks"); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("备注");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_WH_NAME);
eiColumn.setDescName("仓库名称");
eiColumn = new EiColumn("approvalStatus"); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("审批状态:1-保存,2-已提交,3-审批通过,4-审批拒绝");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_INVENT_TYPE);
eiColumn.setDescName("存货类型");
eiColumn = new EiColumn("custCode"); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("供应商编码");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_INVENT_CODE);
eiColumn.setDescName("存货编码");
eiColumn = new EiColumn("custName"); eiMetadata.addMeta(eiColumn);
eiColumn.setDescName("供应商名称");
eiMetadata.addMeta(eiColumn); eiColumn = new EiColumn(FIELD_INVENT_NAME);
} eiColumn.setDescName("存货名称");
/** eiMetadata.addMeta(eiColumn);
* the constructor
*/ eiColumn = new EiColumn(FIELD_INVENT_RECORD_ID);
public HPKC002() { eiColumn.setDescName("存货档案ID");
initMetaData(); eiMetadata.addMeta(eiColumn);
}
eiColumn = new EiColumn(FIELD_AMOUNT);
public Long getId() { eiColumn.setType("N");
return id; eiColumn.setScaleLength(0);
} eiColumn.setFieldLength(12);
eiColumn.setDescName("数量");
public void setId(Long id) { eiMetadata.addMeta(eiColumn);
this.id = id;
} eiColumn = new EiColumn(FIELD_WEIGHT);
eiColumn.setType("N");
public String getCompanyCode() { eiColumn.setScaleLength(0);
return companyCode; eiColumn.setFieldLength(12);
} eiColumn.setDescName("重量");
eiMetadata.addMeta(eiColumn);
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode; eiColumn = new EiColumn(FIELD_REMARKS);
} eiColumn.setDescName("备注");
eiMetadata.addMeta(eiColumn);
public String getCreatedBy() {
return createdBy; eiColumn = new EiColumn(FIELD_DELETE_FLAG);
} eiColumn.setDescName("是否删除0.否1.是");
eiMetadata.addMeta(eiColumn);
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
} }
public String getCreatedName() { /**
return createdName; * the constructor.
} */
public HPKC002() {
public void setCreatedName(String createdName) { initMetaData();
this.createdName = createdName; }
}
/**
public String getCreatedTime() { * get the id - 主键id.
return createdTime; * @return the id
} */
public Long getId() {
public void setCreatedTime(String createdTime) { return this.id;
this.createdTime = createdTime; }
}
/**
public String getUpdatedBy() { * set the id - 主键id.
return updatedBy; *
} * @param id - 主键id
*/
public void setUpdatedBy(String updatedBy) { public void setId(Long id) {
this.updatedBy = updatedBy; this.id = id;
} }
/**
public String getUpdatedName() { * get the companyCode - 企业编码 预留.
return updatedName; * @return the companyCode
} */
public String getCompanyCode() {
public void setUpdatedName(String updatedName) { return this.companyCode;
this.updatedName = updatedName; }
}
/**
public String getUpdatedTime() { * set the companyCode - 企业编码 预留.
return updatedTime; *
} * @param companyCode - 企业编码 预留
*/
public void setUpdatedTime(String updatedTime) { public void setCompanyCode(String companyCode) {
this.updatedTime = updatedTime; this.companyCode = companyCode;
} }
/**
public String getDepCode() { * get the depCode - 部门编码.
return depCode; * @return the depCode
} */
public String getDepCode() {
public void setDepCode(String depCode) { return this.depCode;
this.depCode = depCode; }
}
/**
public int getStatus() { * set the depCode - 部门编码.
return status; *
} * @param depCode - 部门编码
*/
public void setStatus(int status) { public void setDepCode(String depCode) {
this.status = status; this.depCode = depCode;
} }
/**
public String getDocumentCode() { * get the createdBy - 创建人.
return documentCode; * @return the createdBy
} */
public String getCreatedBy() {
public void setDocumentCode(String documentCode) { return this.createdBy;
this.documentCode = documentCode; }
}
/**
public String getDocumentTime() { * set the createdBy - 创建人.
return documentTime; *
} * @param createdBy - 创建人
*/
public void setDocumentTime(String documentTime) { public void setCreatedBy(String createdBy) {
this.documentTime = documentTime; this.createdBy = createdBy;
} }
/**
public String getWhCode() { * get the createdName - 创建人名称.
return whCode; * @return the createdName
} */
public String getCreatedName() {
public void setWhCode(String whCode) { return this.createdName;
this.whCode = whCode; }
}
/**
public String getWhName() { * set the createdName - 创建人名称.
return whName; *
} * @param createdName - 创建人名称
*/
public void setWhName(String whName) { public void setCreatedName(String createdName) {
this.whName = whName; this.createdName = createdName;
} }
/**
public String getMaterialType() { * get the createdTime - 创建时间.
return materialType; * @return the createdTime
} */
public String getCreatedTime() {
public void setMaterialType(String materialType) { return this.createdTime;
this.materialType = materialType; }
}
/**
public String getMaterialTypeName() { * set the createdTime - 创建时间.
return materialTypeName; *
} * @param createdTime - 创建时间
*/
public void setMaterialTypeName(String materialTypeName) { public void setCreatedTime(String createdTime) {
this.materialTypeName = materialTypeName; this.createdTime = createdTime;
} }
/**
public String getMaterialCode() { * get the updatedBy - 更新人.
return materialCode; * @return the updatedBy
} */
public String getUpdatedBy() {
public void setMaterialCode(String materialCode) { return this.updatedBy;
this.materialCode = materialCode; }
}
/**
public String getMaterialName() { * set the updatedBy - 更新人.
return materialName; *
} * @param updatedBy - 更新人
*/
public void setMaterialName(String materialName) { public void setUpdatedBy(String updatedBy) {
this.materialName = materialName; this.updatedBy = updatedBy;
} }
/**
public String getSpec() { * get the updatedName - 更新人名称.
return spec; * @return the updatedName
} */
public String getUpdatedName() {
public void setSpec(String spec) { return this.updatedName;
this.spec = spec; }
}
/**
public String getUnit() { * set the updatedName - 更新人名称.
return unit; *
} * @param updatedName - 更新人名称
*/
public void setUnit(String unit) { public void setUpdatedName(String updatedName) {
this.unit = unit; this.updatedName = updatedName;
} }
/**
public Long getQuantity() { * get the updatedTime - 更新时间.
return quantity; * @return the updatedTime
} */
public String getUpdatedTime() {
public void setQuantity(Long quantity) { return this.updatedTime;
this.quantity = quantity; }
}
/**
public BigDecimal getWeight() { * set the updatedTime - 更新时间.
return weight; *
} * @param updatedTime - 更新时间
*/
public void setWeight(BigDecimal weight) { public void setUpdatedTime(String updatedTime) {
this.weight = weight; this.updatedTime = updatedTime;
} }
/**
public String getRemarks() { * get the reqCode - 领料单号.
return remarks; * @return the reqCode
} */
public String getReqCode() {
public void setRemarks(String remarks) { return this.reqCode;
this.remarks = remarks; }
}
/**
public int getApprovalStatus() { * set the reqCode - 领料单号.
return approvalStatus; *
} * @param reqCode - 领料单号
*/
public void setApprovalStatus(int approvalStatus) { public void setReqCode(String reqCode) {
this.approvalStatus = approvalStatus; this.reqCode = reqCode;
} }
/**
public String getCustCode() { * get the receiptDate - 单据日期.
return custCode; * @return the receiptDate
} */
public String getReceiptDate() {
public void setCustCode(String custCode) { return this.receiptDate;
this.custCode = custCode; }
}
/**
public String getCustName() { * set the receiptDate - 单据日期.
return custName; *
} * @param receiptDate - 单据日期
*/
public void setCustName(String custName) { public void setReceiptDate(String receiptDate) {
this.custName = custName; this.receiptDate = receiptDate;
} }
/**
/** * get the whCode - 仓库编码.
* get the value from Map * @return the whCode
*/ */
@Override public String getWhCode() {
public void fromMap(Map map) { return this.whCode;
}
setId(NumberUtils.toLong(StringUtils.toString(map.get("id")), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("companyCode")), companyCode)); /**
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdBy")), createdBy)); * set the whCode - 仓库编码.
setCreatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdByName")), createdName)); *
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdTime")), createdTime)); * @param whCode - 仓库编码
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedBy")), updatedBy)); */
setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedName")), updatedName)); public void setWhCode(String whCode) {
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedTime")), updatedTime)); this.whCode = whCode;
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("depCode")), depCode)); }
setStatus(NumberUtils.toint(StringUtils.toString(map.get("status")), status)); /**
setDocumentCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("documentCode")), documentCode)); * get the whName - 仓库名称.
setDocumentTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("documentTime")), documentTime)); * @return the whName
setWhCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("whCode")), whCode)); */
setWhName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("whName")), whName)); public String getWhName() {
setMaterialType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("materialType")), materialType)); return this.whName;
setMaterialTypeName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("materialTypeName")), materialTypeName)); }
setMaterialCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("materialCode")), materialCode));
setMaterialName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("materialName")), materialName)); /**
setSpec(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("spec")), spec)); * set the whName - 仓库名称.
setUnit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("unit")), unit)); *
setQuantity(NumberUtils.toLong(StringUtils.toString(map.get("quantity")), quantity)); * @param whName - 仓库名称
setWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get("weight")), weight)); */
setRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("remarks")), remarks)); public void setWhName(String whName) {
setApprovalStatus(NumberUtils.toint(StringUtils.toString(map.get("approvalStatus")), approvalStatus)); this.whName = whName;
setCustCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("custCode")), custCode)); }
setCustName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("custName")), custName)); /**
} * get the inventType - 存货类型.
* @return the inventType
/** */
* set the value to Map public String getInventType() {
*/ return this.inventType;
@Override }
public Map toMap() {
/**
Map map = new HashMap(); * set the inventType - 存货类型.
map.put("id",StringUtils.toString(id, eiMetadata.getMeta("id"))); *
map.put("companyCode",StringUtils.toString(companyCode, eiMetadata.getMeta("companyCode"))); * @param inventType - 存货类型
map.put("createdBy",StringUtils.toString(createdBy, eiMetadata.getMeta("createdBy"))); */
map.put("createdName",StringUtils.toString(createdName, eiMetadata.getMeta("createdByName"))); public void setInventType(String inventType) {
map.put("createdTime",StringUtils.toString(createdTime, eiMetadata.getMeta("createdTime"))); this.inventType = inventType;
map.put("updatedBy",StringUtils.toString(updatedBy, eiMetadata.getMeta("updatedBy"))); }
map.put("updatedName",StringUtils.toString(updatedName, eiMetadata.getMeta("updatedName"))); /**
map.put("updatedTime",StringUtils.toString(updatedTime, eiMetadata.getMeta("updatedTime"))); * get the inventCode - 存货编码.
map.put("depCode",StringUtils.toString(depCode, eiMetadata.getMeta("depCode"))); * @return the inventCode
map.put("status",StringUtils.toString(status, eiMetadata.getMeta("status"))); */
map.put("documentCode",StringUtils.toString(documentCode, eiMetadata.getMeta("documentCode"))); public String getInventCode() {
map.put("documentTime",StringUtils.toString(documentTime, eiMetadata.getMeta("documentTime"))); return this.inventCode;
map.put("whCode",StringUtils.toString(whCode, eiMetadata.getMeta("whCode"))); }
map.put("whName",StringUtils.toString(whName, eiMetadata.getMeta("whName")));
map.put("materialType",StringUtils.toString(materialType, eiMetadata.getMeta("materialType"))); /**
map.put("materialTypeName",StringUtils.toString(materialTypeName, eiMetadata.getMeta("materialTypeName"))); * set the inventCode - 存货编码.
map.put("materialCode",StringUtils.toString(materialCode, eiMetadata.getMeta("materialCode"))); *
map.put("materialName",StringUtils.toString(materialName, eiMetadata.getMeta("materialName"))); * @param inventCode - 存货编码
map.put("spec",StringUtils.toString(spec, eiMetadata.getMeta("spec"))); */
map.put("unit",StringUtils.toString(unit, eiMetadata.getMeta("unit"))); public void setInventCode(String inventCode) {
map.put("quantity",StringUtils.toString(quantity, eiMetadata.getMeta("quantity"))); this.inventCode = inventCode;
map.put("weight",StringUtils.toString(weight, eiMetadata.getMeta("weight"))); }
map.put("remarks",StringUtils.toString(remarks, eiMetadata.getMeta("remarks"))); /**
map.put("approvalStatus",StringUtils.toString(approvalStatus, eiMetadata.getMeta("approvalStatus"))); * get the inventName - 存货名称.
map.put("custCode",StringUtils.toString(custCode, eiMetadata.getMeta("custCode"))); * @return the inventName
map.put("custName",StringUtils.toString(custName, eiMetadata.getMeta("custName"))); */
return map; public String getInventName() {
return this.inventName;
} }
/**
* set the inventName - 存货名称.
*
* @param inventName - 存货名称
*/
public void setInventName(String inventName) {
this.inventName = inventName;
}
/**
* get the inventRecordId - 存货档案ID.
* @return the inventRecordId
*/
public Long getInventRecordId() {
return this.inventRecordId;
}
/**
* set the inventRecordId - 存货档案ID.
*
* @param inventRecordId - 存货档案ID
*/
public void setInventRecordId(Long inventRecordId) {
this.inventRecordId = inventRecordId;
}
/**
* get the amount - 数量.
* @return the amount
*/
public BigDecimal getAmount() {
return this.amount;
}
/**
* set the amount - 数量.
*
* @param amount - 数量
*/
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
/**
* get the weight - 重量.
* @return the weight
*/
public BigDecimal getWeight() {
return this.weight;
}
/**
* set the weight - 重量.
*
* @param weight - 重量
*/
public void setWeight(BigDecimal weight) {
this.weight = weight;
}
/**
* get the remarks - 备注.
* @return the remarks
*/
public String getRemarks() {
return this.remarks;
}
/**
* set the remarks - 备注.
*
* @param remarks - 备注
*/
public void setRemarks(String remarks) {
this.remarks = remarks;
}
/**
* get the deleteFlag - 是否删除0.否1.是.
* @return the deleteFlag
*/
public Boolean getDeleteFlag() {
return this.deleteFlag;
}
/**
* set the deleteFlag - 是否删除0.否1.是.
*
* @param deleteFlag - 是否删除0.否1.是
*/
public void setDeleteFlag(Boolean deleteFlag) {
this.deleteFlag = deleteFlag;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public void fromMap(Map map) {
setId(NumberUtils.toLong(StringUtils.toString(map.get(FIELD_ID)), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_COMPANY_CODE)), companyCode));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DEP_CODE)), depCode));
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_BY)), createdBy));
setCreatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_NAME)), createdName));
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_TIME)), createdTime));
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_BY)), updatedBy));
setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_NAME)), updatedName));
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_TIME)), updatedTime));
setReqCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_REQ_CODE)), reqCode));
setReceiptDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_RECEIPT_DATE)), receiptDate));
setWhCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_WH_CODE)), whCode));
setWhName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_WH_NAME)), whName));
setInventType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_TYPE)), inventType));
setInventCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_CODE)), inventCode));
setInventName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_INVENT_NAME)), inventName));
setInventRecordId(NumberUtils.toLong(StringUtils.toString(map.get(FIELD_INVENT_RECORD_ID)), inventRecordId));
setAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_AMOUNT)), amount));
setWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_WEIGHT)), weight));
setRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_REMARKS)), remarks));
setDeleteFlag(NumberUtils.toBoolean(StringUtils.toString(map.get(FIELD_DELETE_FLAG)), deleteFlag));
}
/**
* set the value to Map.
*/
@Override
public Map toMap() {
Map map = new HashMap();
map.put(FIELD_ID, StringUtils.toString(id, eiMetadata.getMeta(FIELD_ID)));
map.put(FIELD_COMPANY_CODE, StringUtils.toString(companyCode, eiMetadata.getMeta(FIELD_COMPANY_CODE)));
map.put(FIELD_DEP_CODE, StringUtils.toString(depCode, eiMetadata.getMeta(FIELD_DEP_CODE)));
map.put(FIELD_CREATED_BY, StringUtils.toString(createdBy, eiMetadata.getMeta(FIELD_CREATED_BY)));
map.put(FIELD_CREATED_NAME, StringUtils.toString(createdName, eiMetadata.getMeta(FIELD_CREATED_NAME)));
map.put(FIELD_CREATED_TIME, StringUtils.toString(createdTime, eiMetadata.getMeta(FIELD_CREATED_TIME)));
map.put(FIELD_UPDATED_BY, StringUtils.toString(updatedBy, eiMetadata.getMeta(FIELD_UPDATED_BY)));
map.put(FIELD_UPDATED_NAME, StringUtils.toString(updatedName, eiMetadata.getMeta(FIELD_UPDATED_NAME)));
map.put(FIELD_UPDATED_TIME, StringUtils.toString(updatedTime, eiMetadata.getMeta(FIELD_UPDATED_TIME)));
map.put(FIELD_REQ_CODE, StringUtils.toString(reqCode, eiMetadata.getMeta(FIELD_REQ_CODE)));
map.put(FIELD_RECEIPT_DATE, StringUtils.toString(receiptDate, eiMetadata.getMeta(FIELD_RECEIPT_DATE)));
map.put(FIELD_WH_CODE, StringUtils.toString(whCode, eiMetadata.getMeta(FIELD_WH_CODE)));
map.put(FIELD_WH_NAME, StringUtils.toString(whName, eiMetadata.getMeta(FIELD_WH_NAME)));
map.put(FIELD_INVENT_TYPE, StringUtils.toString(inventType, eiMetadata.getMeta(FIELD_INVENT_TYPE)));
map.put(FIELD_INVENT_CODE, StringUtils.toString(inventCode, eiMetadata.getMeta(FIELD_INVENT_CODE)));
map.put(FIELD_INVENT_NAME, StringUtils.toString(inventName, eiMetadata.getMeta(FIELD_INVENT_NAME)));
map.put(FIELD_INVENT_RECORD_ID, StringUtils.toString(inventRecordId, eiMetadata.getMeta(FIELD_INVENT_RECORD_ID)));
map.put(FIELD_AMOUNT, StringUtils.toString(amount, eiMetadata.getMeta(FIELD_AMOUNT)));
map.put(FIELD_WEIGHT, StringUtils.toString(weight, eiMetadata.getMeta(FIELD_WEIGHT)));
map.put(FIELD_REMARKS, StringUtils.toString(remarks, eiMetadata.getMeta(FIELD_REMARKS)));
map.put(FIELD_DELETE_FLAG, StringUtils.toString(deleteFlag, eiMetadata.getMeta(FIELD_DELETE_FLAG)));
return map;
}
} }
...@@ -2,6 +2,30 @@ ...@@ -2,6 +2,30 @@
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd"> <!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap namespace="HPKC001"> <sqlMap namespace="HPKC001">
<sql id="column">
ID as "id", <!-- 主键id -->
COMPANY_CODE as "companyCode", <!-- 企业编码 预留 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 更新人名称 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
PURCHASE_CODE as "purchaseCode", <!-- 采购单号 -->
RECEIPT_DATE as "receiptDate", <!-- 单据日期 -->
WH_CODE as "whCode", <!-- 仓库编码 -->
WH_NAME as "whName", <!-- 仓库名称 -->
INVENT_TYPE as "inventType", <!-- 存货类型 -->
INVENT_CODE as "inventCode", <!-- 存货编码 -->
INVENT_NAME as "inventName", <!-- 存货名称 -->
INVENT_RECORD_ID as "inventRecordId", <!-- 存货档案ID -->
AMOUNT as "amount", <!-- 数量 -->
WEIGHT as "weight", <!-- 重量 -->
REMARKS as "remarks", <!-- 备注 -->
DELETE_FLAG as "deleteFlag" <!-- 是否删除0.否1.是 -->
</sql>
<sql id="condition"> <sql id="condition">
<isNotEmpty prepend=" AND " property="id"> <isNotEmpty prepend=" AND " property="id">
ID = #id# ID = #id#
...@@ -25,35 +49,10 @@ ...@@ -25,35 +49,10 @@
CREATED_TIME BETWEEN #createdTimeFrom# AND #createdTimeTo# CREATED_TIME BETWEEN #createdTimeFrom# AND #createdTimeTo#
</isNotEmpty> </isNotEmpty>
</sql> </sql>
<select id="query" parameterClass="java.util.HashMap" <select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.kc.domain.HPKC001"> resultClass="com.baosight.hpjx.hp.kc.domain.HPKC001">
SELECT SELECT <include refid="column"/>
ID as "id",
COMPANY_CODE as "companyCode", <!-- 企业编码 预留 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 更新人名称 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
STATUS as "status", <!-- 数据状态 1正常 0删除 -->
DOCUMENT_CODE as "documentCode", <!-- 采购入库单号 -->
DOCUMENT_TIME as "documentTime", <!-- 单据日期 -->
WH_CODE as "whCode", <!-- 仓库编码 -->
WH_NAME as "whName", <!-- 仓库名称 -->
MATERIAL_TYPE as "materialType", <!-- 存货类型编码 -->
MATERIAL_TYPE_NAME as "materialTypeName", <!-- 存货类型名称 -->
MATERIAL_CODE as "materialCode", <!-- 存货编码 -->
MATERIAL_NAME as "materialName", <!-- 存货名称 -->
SPEC as "spec", <!-- 规格 -->
UNIT as "unit", <!-- 单位 -->
QUANTITY as "quantity", <!-- 数量 -->
WEIGHT as "weight", <!-- 重量 -->
REMARKS as "remarks", <!-- 备注 -->
APPROVAL_STATUS as "approvalStatus", <!-- 审批状态:1-保存,2-已提交,3-审批通过,4-审批拒绝 -->
CUST_CODE as "custCode", <!-- 供应商编码 -->
CUST_NAME as "custName" <!-- 供应商名称 -->
FROM hpjx.t_hpkc001 WHERE 1=1 FROM hpjx.t_hpkc001 WHERE 1=1
<include refid="condition"/> <include refid="condition"/>
<dynamic prepend="ORDER BY"> <dynamic prepend="ORDER BY">
...@@ -71,43 +70,36 @@ ...@@ -71,43 +70,36 @@
<include refid="condition"/> <include refid="condition"/>
</select> </select>
<insert id="insert"> <insert id="insert">
INSERT INTO hpjx.t_hpkc001 ( INSERT INTO ${hpjxSchema}.T_HPKC001 (
COMPANY_CODE, <!-- 企业编码 预留 --> COMPANY_CODE, <!-- 企业编码 预留 -->
CREATED_BY, <!-- 创建人 --> DEP_CODE, <!-- 部门编码 -->
CREATED_NAME, <!-- 创建人名称 --> CREATED_BY, <!-- 创建人 -->
CREATED_TIME, <!-- 创建时间 --> CREATED_NAME, <!-- 创建人名称 -->
UPDATED_BY, <!-- 更新人 --> CREATED_TIME, <!-- 创建时间 -->
UPDATED_NAME, <!-- 更新人名称 --> PURCHASE_CODE, <!-- 采购单号 -->
UPDATED_TIME, <!-- 更新时间 --> RECEIPT_DATE, <!-- 单据日期 -->
DEP_CODE, <!-- 部门编码 --> WH_CODE, <!-- 仓库编码 -->
STATUS, <!-- 数据状态 1正常 0删除 --> WH_NAME, <!-- 仓库名称 -->
DOCUMENT_CODE, <!-- 采购入库单号 --> INVENT_TYPE, <!-- 存货类型 -->
DOCUMENT_TIME, <!-- 单据日期 --> INVENT_CODE, <!-- 存货编码 -->
WH_CODE, <!-- 仓库编码 --> INVENT_NAME, <!-- 存货名称 -->
WH_NAME, <!-- 仓库名称 --> INVENT_RECORD_ID, <!-- 存货档案ID -->
MATERIAL_TYPE, <!-- 存货类型编码 --> AMOUNT, <!-- 数量 -->
MATERIAL_TYPE_NAME, <!-- 存货类型名称 --> WEIGHT, <!-- 重量 -->
MATERIAL_CODE, <!-- 存货编码 --> REMARKS, <!-- 备注 -->
MATERIAL_NAME, <!-- 存货名称 --> DELETE_FLAG <!-- 是否删除0.否1.是 -->
SPEC, <!-- 规格 --> ) VALUES (
UNIT, <!-- 单位 --> #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
QUANTITY, <!-- 数量 --> #purchaseCode#, #receiptDate#, #whCode#, #whName#, #inventType#,
WEIGHT, <!-- 重量 --> #inventCode#, #inventName#, #inventRecordId#, #amount#, #weight#,
REMARKS, <!-- 备注 --> #remarks#, #deleteFlag#
APPROVAL_STATUS, <!-- 审批状态:1-保存,2-已提交,3-审批通过,4-审批拒绝 --> )
CUST_CODE, <!-- 供应商编码 --> </insert>
CUST_NAME <!-- 供应商名称 -->
)
VALUES (#companyCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#,
#updatedName#, #updatedTime#,#depCode#, #status#, #documentCode#,
#documentTime#, #whCode#, #whName#, #materialType#, #materialTypeName#,
#materialCode#, #materialName#, #spec#, #unit#, #quantity#,
#weight#, #remarks#, #approvalStatus#, #custCode#, #custName#)
</insert>
<!-- 逻辑删除 -->
<delete id="delete"> <delete id="delete">
DELETE FROM hpjx.t_hpkc001 WHERE ID = #id# UPDATE hpjx.t_hpkc001 SET DELETE_FLAG = 1 WHERE ID = #id#
</delete> </delete>
<update id="approvalStatusUpdate"> <update id="approvalStatusUpdate">
...@@ -119,67 +111,20 @@ ...@@ -119,67 +111,20 @@
<update id="update"> <update id="update">
UPDATE hpjx.t_hpkc001 UPDATE hpjx.t_hpkc001
SET SET
UPDATED_BY = #updatedBy#, UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime# UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
<isNotEmpty property="companyCode"> RECEIPT_DATE = #receiptDate#, <!-- 单据日期 -->
,COMPANY_CODE = #companyCode# WH_CODE = #whCode#, <!-- 仓库编码 -->
</isNotEmpty> WH_NAME = #whName#, <!-- 仓库名称 -->
<isNotEmpty property="depCode"> INVENT_TYPE = #inventType#, <!-- 存货类型 -->
,DEP_CODE = #depCode# INVENT_CODE = #inventCode#, <!-- 存货编码 -->
</isNotEmpty> INVENT_NAME = #inventName#, <!-- 存货名称 -->
<isNotEmpty property="STATUS"> INVENT_RECORD_ID = #inventRecordId#, <!-- 存货档案ID -->
,STATUS = #status# AMOUNT = #amount#, <!-- 数量 -->
</isNotEmpty> WEIGHT = #weight#, <!-- 重量 -->
<isNotEmpty property="documentCode"> REMARKS = #remarks# <!-- 备注 -->
,DOCUMENT_CODE = #documentCode# WHERE ID = #id#
</isNotEmpty>
<isNotEmpty property="documentTime">
,DOCUMENT_TIME = #documentTime#
</isNotEmpty>
<isNotEmpty property="whCode">
,WH_CODE = #whCode#
</isNotEmpty>
<isNotEmpty property="whName">
,WH_NAME = #whName#
</isNotEmpty>
<isNotEmpty property="materialType">
,MATERIAL_TYPE = #materialType#
</isNotEmpty>
<isNotEmpty property="materialTypeName">
,MATERIAL_TYPE_NAME = #materialTypeName#
</isNotEmpty>
<isNotEmpty property="materialCode">
,MATERIAL_CODE = #materialCode#
</isNotEmpty>
<isNotEmpty property="materialName">
,MATERIAL_NAME = #materialName#
</isNotEmpty>
<isNotEmpty property="spec">
,SPEC = #spec#
</isNotEmpty>
<isNotEmpty property="unit">
,UNIT = #unit#
</isNotEmpty>
<isNotEmpty property="quantity">
,QUANTITY = #quantity#
</isNotEmpty>
<isNotEmpty property="weight">
,WEIGHT = #weight#
</isNotEmpty>
<isNotEmpty property="remarks">
,REMARKS = #remarks#
</isNotEmpty>
<isNotEmpty property="approvalStatus">
,APPROVAL_STATUS = #approvalStatus#
</isNotEmpty>
<isNotEmpty property="custCode">
,CUST_CODE = #custCode#
</isNotEmpty>
<isNotEmpty property="custName">
,CUST_NAME = #custName#
</isNotEmpty>
WHERE ID = #id#
</update> </update>
<!-- 统计库存 --> <!-- 统计库存 -->
......
...@@ -2,6 +2,30 @@ ...@@ -2,6 +2,30 @@
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd"> <!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap namespace="HPKC002"> <sqlMap namespace="HPKC002">
<sql id="column">
ID as "id", <!-- 主键id -->
COMPANY_CODE as "companyCode", <!-- 企业编码 预留 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 更新人名称 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
REQ_CODE as "reqCode", <!-- 领料单号 -->
RECEIPT_DATE as "receiptDate", <!-- 单据日期 -->
WH_CODE as "whCode", <!-- 仓库编码 -->
WH_NAME as "whName", <!-- 仓库名称 -->
INVENT_TYPE as "inventType", <!-- 存货类型 -->
INVENT_CODE as "inventCode", <!-- 存货编码 -->
INVENT_NAME as "inventName", <!-- 存货名称 -->
INVENT_RECORD_ID as "inventRecordId", <!-- 存货档案ID -->
AMOUNT as "amount", <!-- 数量 -->
WEIGHT as "weight", <!-- 重量 -->
REMARKS as "remarks", <!-- 备注 -->
DELETE_FLAG as "deleteFlag" <!-- 是否删除0.否1.是 -->
</sql>
<sql id="condition"> <sql id="condition">
<isNotEmpty prepend=" AND " property="id"> <isNotEmpty prepend=" AND " property="id">
ID = #id# ID = #id#
...@@ -27,33 +51,7 @@ ...@@ -27,33 +51,7 @@
</sql> </sql>
<select id="query" parameterClass="java.util.HashMap" <select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.kc.domain.HPKC002"> resultClass="com.baosight.hpjx.hp.kc.domain.HPKC002">
SELECT SELECT <include refid="column"/>
ID as "id",
COMPANY_CODE as "companyCode", <!-- 企业编码 预留 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 更新人名称 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
STATUS as "status", <!-- 数据状态 1正常 0删除 -->
DOCUMENT_CODE as "documentCode", <!-- 采购入库单号 -->
DOCUMENT_TIME as "documentTime", <!-- 单据日期 -->
WH_CODE as "whCode", <!-- 仓库编码 -->
WH_NAME as "whName", <!-- 仓库名称 -->
MATERIAL_TYPE as "materialType", <!-- 存货类型编码 -->
MATERIAL_TYPE_NAME as "materialTypeName", <!-- 存货类型名称 -->
MATERIAL_CODE as "materialCode", <!-- 存货编码 -->
MATERIAL_NAME as "materialName", <!-- 存货名称 -->
SPEC as "spec", <!-- 规格 -->
UNIT as "unit", <!-- 单位 -->
QUANTITY as "quantity", <!-- 数量 -->
WEIGHT as "weight", <!-- 重量 -->
REMARKS as "remarks", <!-- 备注 -->
APPROVAL_STATUS as "approvalStatus", <!-- 审批状态:1-保存,2-已提交,3-审批通过,4-审批拒绝 -->
CUST_CODE as "custCode", <!-- 供应商编码 -->
CUST_NAME as "custName" <!-- 供应商名称 -->
FROM hpjx.t_hpkc002 WHERE 1=1 FROM hpjx.t_hpkc002 WHERE 1=1
<include refid="condition"/> <include refid="condition"/>
<dynamic prepend="ORDER BY"> <dynamic prepend="ORDER BY">
...@@ -73,110 +71,56 @@ ...@@ -73,110 +71,56 @@
<include refid="condition"/> <include refid="condition"/>
</select> </select>
<insert id="insert"> <insert id="insert">
INSERT INTO hpjx.t_hpkc002 ( INSERT INTO ${hpjxSchema}.T_HPKC002 (
COMPANY_CODE, <!-- 企业编码 预留 --> COMPANY_CODE, <!-- 企业编码 预留 -->
CREATED_BY, <!-- 创建人 --> DEP_CODE, <!-- 部门编码 -->
CREATED_NAME, <!-- 创建人名称 --> CREATED_BY, <!-- 创建人 -->
CREATED_TIME, <!-- 创建时间 --> CREATED_NAME, <!-- 创建人名称 -->
UPDATED_BY, <!-- 更新人 --> CREATED_TIME, <!-- 创建时间 -->
UPDATED_NAME, <!-- 更新人名称 --> REQ_CODE, <!-- 领料单号 -->
UPDATED_TIME, <!-- 更新时间 --> RECEIPT_DATE, <!-- 单据日期 -->
DEP_CODE, <!-- 部门编码 --> WH_CODE, <!-- 仓库编码 -->
STATUS, <!-- 数据状态 1正常 0删除 --> WH_NAME, <!-- 仓库名称 -->
DOCUMENT_CODE, <!-- 采购入库单号 --> INVENT_TYPE, <!-- 存货类型 -->
DOCUMENT_TIME, <!-- 单据日期 --> INVENT_CODE, <!-- 存货编码 -->
WH_CODE, <!-- 仓库编码 --> INVENT_NAME, <!-- 存货名称 -->
WH_NAME, <!-- 仓库名称 --> INVENT_RECORD_ID, <!-- 存货档案ID -->
MATERIAL_TYPE, <!-- 存货类型编码 --> AMOUNT, <!-- 数量 -->
MATERIAL_TYPE_NAME, <!-- 存货类型名称 --> WEIGHT, <!-- 重量 -->
MATERIAL_CODE, <!-- 存货编码 --> REMARKS, <!-- 备注 -->
MATERIAL_NAME, <!-- 存货名称 --> DELETE_FLAG <!-- 是否删除0.否1.是 -->
SPEC, <!-- 规格 --> ) VALUES (
UNIT, <!-- 单位 --> #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
QUANTITY, <!-- 数量 --> #reqCode#, #receiptDate#, #whCode#, #whName#, #inventType#, #inventCode#,
WEIGHT, <!-- 重量 --> #inventName#, #inventRecordId#, #amount#, #weight#, #remarks#, #deleteFlag#
REMARKS, <!-- 备注 --> )
APPROVAL_STATUS, <!-- 审批状态:1-保存,2-已提交,3-审批通过,4-审批拒绝 --> </insert>
CUST_CODE, <!-- 供应商编码 -->
CUST_NAME <!-- 供应商名称 -->
)
VALUES (#companyCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#,
#updatedName#, #updatedTime#,#depCode#, #status#, #documentCode#,
#documentTime#, #whCode#, #whName#, #materialType#, #materialTypeName#,
#materialCode#, #materialName#, #spec#, #unit#, #quantity#,
#weight#, #remarks#, #approvalStatus#, #custCode#, #custName#)
</insert>
<!-- 逻辑删除 -->
<delete id="delete"> <delete id="delete">
DELETE FROM hpjx.t_hpkc002 WHERE ID = #id# UPDATE hpjx.t_hpkc002 SET DELETE_FLAG = 1 WHERE ID = #id#
</delete> </delete>
<update id="update"> <update id="update">
UPDATE hpjx.t_hpkc002 UPDATE ${hpjxSchema}.T_HPKC002
SET SET
UPDATED_BY = #updatedBy#, UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_BY = #updatedBy#, UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_BY = #updatedBy# UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
<isNotEmpty property="companyCode"> REQ_CODE = #reqCode#, <!-- 领料单号 -->
,COMPANY_CODE = #companyCode# RECEIPT_DATE = #receiptDate#, <!-- 单据日期 -->
</isNotEmpty> WH_CODE = #whCode#, <!-- 仓库编码 -->
<isNotEmpty property="depCode"> WH_NAME = #whName#, <!-- 仓库名称 -->
,DEP_CODE = #depCode# INVENT_TYPE = #inventType#, <!-- 存货类型 -->
</isNotEmpty> INVENT_CODE = #inventCode#, <!-- 存货编码 -->
<isNotEmpty property="STATUS"> INVENT_NAME = #inventName#, <!-- 存货名称 -->
,STATUS = #status# INVENT_RECORD_ID = #inventRecordId#, <!-- 存货档案ID -->
</isNotEmpty> AMOUNT = #amount#, <!-- 数量 -->
<isNotEmpty property="documentCode"> WEIGHT = #weight#, <!-- 重量 -->
,DOCUMENT_CODE = #documentCode# REMARKS = #remarks# <!-- 备注 -->
</isNotEmpty> WHERE ID = #id#
<isNotEmpty property="documentTime"> </update>
,DOCUMENT_TIME = #documentTime#
</isNotEmpty>
<isNotEmpty property="whCode">
,WH_CODE = #whCode#
</isNotEmpty>
<isNotEmpty property="whName">
,WH_NAME = #whName#
</isNotEmpty>
<isNotEmpty property="materialType">
,MATERIAL_TYPE = #materialType#
</isNotEmpty>
<isNotEmpty property="materialTypeName">
,MATERIAL_TYPE_NAME = #materialTypeName#
</isNotEmpty>
<isNotEmpty property="materialCode">
,MATERIAL_CODE = #materialCode#
</isNotEmpty>
<isNotEmpty property="materialName">
,MATERIAL_NAME = #materialName#
</isNotEmpty>
<isNotEmpty property="spec">
,SPEC = #spec#
</isNotEmpty>
<isNotEmpty property="unit">
,UNIT = #unit#
</isNotEmpty>
<isNotEmpty property="quantity">
,QUANTITY = #quantity#
</isNotEmpty>
<isNotEmpty property="weight">
,WEIGHT = #weight#
</isNotEmpty>
<isNotEmpty property="remarks">
,REMARKS = #remarks#
</isNotEmpty>
<isNotEmpty property="approvalStatus">
,APPROVAL_STATUS = #approvalStatus#
</isNotEmpty>
<isNotEmpty property="custCode">
,CUST_CODE = #custCode#
</isNotEmpty>
<isNotEmpty property="custName">
,CUST_NAME = #custName#
</isNotEmpty>
WHERE ID = #id#
</update>
<!-- 统计库存 --> <!-- 统计库存 -->
<select id="statDate" resultClass="com.baosight.hpjx.hp.kc.domain.HPKC002"> <select id="statDate" resultClass="com.baosight.hpjx.hp.kc.domain.HPKC002">
......
...@@ -35,10 +35,10 @@ ...@@ -35,10 +35,10 @@
<EF:EFComboColumn ename="status" cname="状态" align="center" width="100" required="true"> <EF:EFComboColumn ename="status" cname="状态" align="center" width="100" required="true">
<EF:EFCodeOption codeName="hpjx.hpjx.status"/> <EF:EFCodeOption codeName="hpjx.hpjx.status"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFColumn ename="createdBy" cname="创建人" enable="false" width="100" align="center"/> <EF:EFColumn ename="createdName" cname="创建人" enable="false" width="100" align="center"/>
<EF:EFColumn ename="createdTime" cname="创建时间" enable="false" width="140" align="center" <EF:EFColumn ename="createdTime" cname="创建时间" enable="false" width="140" align="center"
parseFormats="['yyyyMMddHHmmss']" editType="datetime" dateFormat="yyyy-MM-dd HH:mm:ss"/> parseFormats="['yyyyMMddHHmmss']" editType="datetime" dateFormat="yyyy-MM-dd HH:mm:ss"/>
<EF:EFColumn ename="updatedBy" cname="更新人" enable="false" width="100" align="center"/> <EF:EFColumn ename="updatedName" cname="更新人" enable="false" width="100" align="center"/>
<EF:EFColumn ename="updatedTime" cname="更新时间" enable="false" width="140" align="center" <EF:EFColumn ename="updatedTime" cname="更新时间" enable="false" width="140" align="center"
parseFormats="['yyyyMMddHHmmss']" editType="datetime" dateFormat="yyyy-MM-dd HH:mm:ss"/> parseFormats="['yyyyMMddHHmmss']" editType="datetime" dateFormat="yyyy-MM-dd HH:mm:ss"/>
</EF:EFGrid> </EF:EFGrid>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment