Commit b7b0df2a by liuyang

2024-03-29 拆单派工添加派工时间

parent ebbb44b0
......@@ -40,6 +40,7 @@ public class HPSC005A extends DaoEPBase {
public static final String FIELD_UPDATED_BY = "updatedBy"; /* 更新人*/
public static final String FIELD_UPDATED_NAME = "updatedName"; /* 修改人名称*/
public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 更新时间*/
public static final String FIELD_WORK_DATE = "workDate";
public static final String COL_ID = "ID";
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 企业编码 预留*/
......@@ -59,6 +60,7 @@ public class HPSC005A extends DaoEPBase {
public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 更新人*/
public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 修改人名称*/
public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/
public static final String COL_WORK_DATE = "workDate";
public static final String QUERY = "HPSC005A.query";
public static final String COUNT = "HPSC005A.count";
......@@ -84,6 +86,7 @@ public class HPSC005A extends DaoEPBase {
private String updatedBy = " "; /* 更新人*/
private String updatedName = " "; /* 修改人名称*/
private String updatedTime = " "; /* 更新时间*/
private String workDate = " "; /* 更新时间*/
/**
* initialize the metadata.
......@@ -173,6 +176,10 @@ public class HPSC005A extends DaoEPBase {
eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_WORK_DATE);
eiColumn.setDescName("派工时间");
eiMetadata.addMeta(eiColumn);
}
......@@ -471,6 +478,15 @@ public class HPSC005A extends DaoEPBase {
public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime;
}
public String getWorkDate() {
return workDate;
}
public void setWorkDate(String workDate) {
this.workDate = workDate;
}
/**
* get the value from Map.
*
......@@ -497,6 +513,7 @@ public class HPSC005A extends DaoEPBase {
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));
setWorkDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_WORK_DATE)), workDate));
}
/**
......@@ -524,6 +541,7 @@ public class HPSC005A extends DaoEPBase {
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_WORK_DATE, StringUtils.toString(workDate, eiMetadata.getMeta(FIELD_WORK_DATE)));
return map;
}
......
......@@ -20,7 +20,8 @@
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 修改人名称 -->
UPDATED_TIME as "updatedTime" <!-- 更新时间 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
WORK_DATE as "workDate"
</sql>
<sql id="authCondition">
......@@ -82,6 +83,9 @@
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="workDate">
WORK_DATE = #workDate#
</isNotEmpty>
</sql>
<sql id="customCondition">
......@@ -139,11 +143,12 @@
FACTORY_NAME, <!-- 工厂 -->
CREATED_BY, <!-- 创建人 -->
CREATED_NAME, <!-- 创建人名称 -->
CREATED_TIME <!-- 创建时间 -->
CREATED_TIME, <!-- 创建时间 -->
WORK_DATE
) VALUES (
#companyCode#, #depCode#, #prodTaskNo#, #prodOrderNo#, #num#, #totalWt#,
#completeNum#, #orgNo#, #orgName#, #factoryCode#, #factoryName#, #createdBy#,
#createdName#, #createdTime#
#createdName#, #createdTime#, #workDate#
)
</insert>
......
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