Commit 6ff5ff0e by 徐澳

修改实体类文件

parent fb832d60
/**
* Generate time : 2024-01-09 19:08:59
* Generate time : 2024-01-10 10:28:33
* Version : 1.0
*/
package com.baosight.iplat4j.hp.pz.domain;
......@@ -18,7 +18,7 @@ public class THppz002 extends DaoEPBase {
private Long id = 0L;
private String companyCode = " "; /* 企业编码 预留*/
private Integer custType = 0; /* 供应商类型 1 国企 : 2 民营*/
private int custType; /* 供应商类型 1 国企 : 2 民营*/
private String custCode = " "; /* 供应商编码*/
private String custName = " "; /* 供应商名称*/
private String address = " "; /* 地址*/
......@@ -27,6 +27,7 @@ public class THppz002 extends DaoEPBase {
private String createdTime = " "; /* 创建时间*/
private String updatedBy = " "; /* 更新人*/
private String updatedTime = " "; /* 更新时间*/
private String depCode = " "; /* 部门编码*/
/**
* initialize the metadata
*/
......@@ -59,7 +60,7 @@ EiColumn eiColumn;
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("status");
eiColumn.setDescName("状态 0未启用 1启用");
eiColumn.setDescName("状态 0用 1启用");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("createdBy");
......@@ -78,6 +79,10 @@ EiColumn eiColumn;
eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("depCode");
eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn);
}
/**
......@@ -119,14 +124,14 @@ initMetaData();
* get the custType - 供应商类型 1 国企 : 2 民营
* @return the custType
*/
public Integer getCustType() {
public int getCustType() {
return this.custType;
}
/**
* set the custType - 供应商类型 1 国企 : 2 民营
*/
public void setCustType(Integer custType) {
public void setCustType(int custType) {
this.custType = custType;
}
/**
......@@ -241,6 +246,20 @@ initMetaData();
public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime;
}
/**
* get the depCode - 部门编码
* @return the depCode
*/
public String getDepCode() {
return this.depCode;
}
/**
* set the depCode - 部门编码
*/
public void setDepCode(String depCode) {
this.depCode = depCode;
}
/**
* get the value from Map
*/
......@@ -248,7 +267,7 @@ public void fromMap(Map map) {
setId(NumberUtils.toLong(StringUtils.toString(map.get("id")), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("companyCode")), companyCode));
setCustType(NumberUtils.toInteger(StringUtils.toString(map.get("custType")), custType));
setCustType(NumberUtils.toint(StringUtils.toString(map.get("custType")), custType));
setCustCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("custCode")), custCode));
setCustName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("custName")), custName));
setAddress(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("address")), address));
......@@ -257,6 +276,7 @@ public void fromMap(Map map) {
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdTime")), createdTime));
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedBy")), updatedBy));
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedTime")), updatedTime));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("depCode")), depCode));
}
/**
......@@ -271,11 +291,12 @@ Map map = new HashMap();
map.put("custCode",StringUtils.toString(custCode, eiMetadata.getMeta("custCode")));
map.put("custName",StringUtils.toString(custName, eiMetadata.getMeta("custName")));
map.put("address",StringUtils.toString(address, eiMetadata.getMeta("address")));
map.put("status", StringUtils.toString(status, eiMetadata.getMeta("status")));
map.put("status",StringUtils.toString(status, eiMetadata.getMeta("status")));
map.put("createdBy",StringUtils.toString(createdBy, eiMetadata.getMeta("createdBy")));
map.put("createdTime",StringUtils.toString(createdTime, eiMetadata.getMeta("createdTime")));
map.put("updatedBy",StringUtils.toString(updatedBy, eiMetadata.getMeta("updatedBy")));
map.put("updatedTime",StringUtils.toString(updatedTime, eiMetadata.getMeta("updatedTime")));
map.put("depCode",StringUtils.toString(depCode, eiMetadata.getMeta("depCode")));
return map;
......
/**
* Generate time : 2024-01-09 19:25:19
* Generate time : 2024-01-10 10:59:31
* Version : 1.0
*/
package com.baosight.iplat4j.hp.pz.domain;
......@@ -20,13 +20,14 @@ public class THppz004 extends DaoEPBase {
private String companyCode = " "; /* 企业编码 预留*/
private String inventName = " "; /* 存货类型*/
private String inventCode = " "; /* 存货类型编码*/
private String inventFatherName = " "; /* 上级存货类型*/
private int inventFatherName; /* 存货性质*/
private String inventFatherCode = " "; /* 上级存货类型编码*/
private int status; /* 状态 0用 1启用*/
private int status; /* 状态 0未启用 1启用*/
private String createdBy = " "; /* 创建人*/
private String createdTime = " "; /* 创建时间*/
private String updatedBy = " "; /* 更新人*/
private String updatedTime = " "; /* 更新时间*/
private String depCode = " "; /* 部门编码*/
/**
* initialize the metadata
*/
......@@ -51,7 +52,7 @@ EiColumn eiColumn;
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("inventFatherName");
eiColumn.setDescName("上级存货类型");
eiColumn.setDescName("存货性质");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("inventFatherCode");
......@@ -78,6 +79,10 @@ EiColumn eiColumn;
eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("depCode");
eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn);
}
/**
......@@ -144,17 +149,17 @@ initMetaData();
this.inventCode = inventCode;
}
/**
* get the inventFatherName - 上级存货类型
* get the inventFatherName - 存货性质
* @return the inventFatherName
*/
public String getInventFatherName() {
public int getInventFatherName() {
return this.inventFatherName;
}
/**
* set the inventFatherName - 上级存货类型
* set the inventFatherName - 存货性质
*/
public void setInventFatherName(String inventFatherName) {
public void setInventFatherName(int inventFatherName) {
this.inventFatherName = inventFatherName;
}
/**
......@@ -241,6 +246,20 @@ initMetaData();
public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime;
}
/**
* get the depCode - 部门编码
* @return the depCode
*/
public String getDepCode() {
return this.depCode;
}
/**
* set the depCode - 部门编码
*/
public void setDepCode(String depCode) {
this.depCode = depCode;
}
/**
* get the value from Map
*/
......@@ -250,13 +269,14 @@ public void fromMap(Map map) {
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("companyCode")), companyCode));
setInventName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inventName")), inventName));
setInventCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inventCode")), inventCode));
setInventFatherName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inventFatherName")), inventFatherName));
setInventFatherName(NumberUtils.toint(StringUtils.toString(map.get("inventFatherName")), inventFatherName));
setInventFatherCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inventFatherCode")), inventFatherCode));
setStatus(NumberUtils.toint(StringUtils.toString(map.get("status")), status));
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdBy")), createdBy));
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdTime")), createdTime));
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedBy")), updatedBy));
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("updatedTime")), updatedTime));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("depCode")), depCode));
}
/**
......@@ -276,6 +296,7 @@ Map map = new HashMap();
map.put("createdTime",StringUtils.toString(createdTime, eiMetadata.getMeta("createdTime")));
map.put("updatedBy",StringUtils.toString(updatedBy, eiMetadata.getMeta("updatedBy")));
map.put("updatedTime",StringUtils.toString(updatedTime, eiMetadata.getMeta("updatedTime")));
map.put("depCode",StringUtils.toString(depCode, eiMetadata.getMeta("depCode")));
return map;
......
......@@ -31,7 +31,8 @@
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_TIME as "updatedTime" <!-- 更新时间 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
DEP_CODE as "depCode" <!-- 部门编码 -->
FROM hpjx.t_hppz002 WHERE 1=1
<isNotEmpty prepend=" AND " property="id">
ID = #id#
......@@ -106,10 +107,9 @@
STATUS, <!-- 状态 0禁用 1启用 -->
CREATED_BY, <!-- 创建人 -->
CREATED_TIME, <!-- 创建时间 -->
UPDATED_BY, <!-- 更新人 -->
UPDATED_TIME <!-- 更新时间 -->
DEP_CODE <!-- 部门编码 -->
)
VALUES (#companyCode#, #custType#, #custCode#, #custName#, #address#, #status#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#)
VALUES ( #companyCode#, #custType#, #custCode#, #custName#, #address#, #status#, #createdBy#, #createdTime#, #depCode#)
</insert>
<delete id="delete">
......
......@@ -25,13 +25,14 @@
COMPANY_CODE as "companyCode", <!-- 企业编码 预留 -->
INVENT_NAME as "inventName", <!-- 存货类型 -->
INVENT_CODE as "inventCode", <!-- 存货类型编码 -->
INVENT_FATHER_NAME as "inventFatherName", <!-- 上级存货类型 -->
INVENT_FATHER_NAME as "inventFatherName", <!-- 存货性质 -->
INVENT_FATHER_CODE as "inventFatherCode", <!-- 上级存货类型编码 -->
STATUS as "status", <!-- 状态 0未启用 1启用 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_TIME as "updatedTime" <!-- 更新时间 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
DEP_CODE as "depCode" <!-- 部门编码 -->
FROM hpjx.t_hppz004 WHERE 1=1
<isNotEmpty prepend=" AND " property="id">
ID = #id#
......@@ -101,15 +102,14 @@
COMPANY_CODE, <!-- 企业编码 预留 -->
INVENT_NAME, <!-- 存货类型 -->
INVENT_CODE, <!-- 存货类型编码 -->
INVENT_FATHER_NAME, <!-- 上级存货类型 -->
INVENT_FATHER_NAME, <!-- 存货性质 -->
INVENT_FATHER_CODE, <!-- 上级存货类型编码 -->
STATUS, <!-- 状态 0未启用 1启用 -->
CREATED_BY, <!-- 创建人 -->
CREATED_TIME, <!-- 创建时间 -->
UPDATED_BY, <!-- 更新人 -->
UPDATED_TIME <!-- 更新时间 -->
DEP_CODE <!-- 部门编码 -->
)
VALUES (#companyCode#, #inventName#, #inventCode#, #inventFatherName#, #inventFatherCode#, #status#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#)
VALUES ( #companyCode#, #inventName#, #inventCode#, #inventFatherName#, #inventFatherCode#, #status#, #createdBy#, #createdTime#, #depCode#)
</insert>
<delete id="delete">
......
......@@ -24,7 +24,7 @@
<EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFColumn ename="inventCode" cname="类型编码" width="100" readonly="false" required="true"/>
<EF:EFColumn ename="inventName" cname="存货类型" width="100" readonly="false" required="true"/>
<EF:EFColumn ename="inventFatherName" cname="上级名称" width="100" readonly="false" required="true"/>
<EF:EFColumn ename="inventFatherName" cname="存货性质" width="100" readonly="false" required="true"/>
<EF:EFComboColumn ename="status" cname="状态" align="center" columnTemplate="#=textField#-#=valueField#" optionLabel=" "
itemTemplate="#=textField#-#=valueField#" textField="textField"
valueField="valueField" width="100" required="true">
......
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