Commit aee1cf10 by YG8429

费用归集,费用归集详情添加字段

parent eeacca29
...@@ -10,45 +10,49 @@ import com.baosight.iplat4j.core.util.StringUtils; ...@@ -10,45 +10,49 @@ import com.baosight.iplat4j.core.util.StringUtils;
/** /**
* Project: <br> * Project: <br>
* Title:HGCW051.java <br> * Title:Hgcw051.java <br>
* Description: <br> * Description: <br>
* *
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br> * Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
* *
* @version 1.0 * @version 1.0
* @history 2024-06-26 15:09:24 create * @history 2024-07-01 10:27:27 create
*/ */
public class HGCW051 extends DaoEPBase { public class HGCW051 extends DaoEPBase {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public static final String FIELD_ID = "id"; public static final String FIELD_ID = "id";
public static final String FIELD_CREATED_BY = "createdBy"; /* 记录创建者*/ public static final String FIELD_CREATED_BY = "createdBy"; /* 记录创建者*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 记录创建å��称*/ public static final String FIELD_CREATED_NAME = "createdName"; /* 记录创建名称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 记录创建时间*/ public static final String FIELD_CREATED_TIME = "createdTime"; /* 记录创建时间*/
public static final String FIELD_UPDATED_BY = "updatedBy"; /* 记录修改者*/ public static final String FIELD_UPDATED_BY = "updatedBy"; /* 记录修改者*/
public static final String FIELD_UPDATED_NAME = "updatedName"; /* 记录修改å��称*/ public static final String FIELD_UPDATED_NAME = "updatedName"; /* 记录修改名称*/
public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 记录修改时间*/ public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 记录修改时间*/
public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 0-未删除,1-已删除*/ public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 0-未删除,1-已删除*/
public static final String FIELD_COMPANY_CODE = "companyCode"; /* å…¬å�¸ç¼–ç �*/ public static final String FIELD_COMPANY_CODE = "companyCode"; /* 公司编码*/
public static final String FIELD_COMPANY_NAME = "companyName"; /* å…¬å�¸å��称*/ public static final String FIELD_COMPANY_NAME = "companyName"; /* 公司名称*/
public static final String FIELD_YEAR = "year"; /* 年份*/ public static final String FIELD_YEAR = "year"; /* 年份*/
public static final String FIELD_MONTH = "month"; /* 月份*/ public static final String FIELD_MONTH = "month"; /* 月份*/
public static final String FIELD_AMOUNT = "amount"; /* 费用金é¢�*/ public static final String FIELD_AMOUNT = "amount"; /* 费用金额*/
public static final String FIELD_ACCOUNT = "account"; /* 企业编码*/
public static final String FIELD_DEP_CODE = "depCode"; /* 部门编码*/
public static final String COL_ID = "ID"; public static final String COL_ID = "ID";
public static final String COL_CREATED_BY = "CREATED_BY"; /* 记录创建者*/ public static final String COL_CREATED_BY = "CREATED_BY"; /* 记录创建者*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 记录创建å��称*/ public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 记录创建名称*/
public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 记录创建时间*/ public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 记录创建时间*/
public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 记录修改者*/ public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 记录修改者*/
public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 记录修改å��称*/ public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 记录修改名称*/
public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 记录修改时间*/ public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 记录修改时间*/
public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 0-未删除,1-已删除*/ public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 0-未删除,1-已删除*/
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* å…¬å�¸ç¼–ç �*/ public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 公司编码*/
public static final String COL_COMPANY_NAME = "COMPANY_NAME"; /* å…¬å�¸å��称*/ public static final String COL_COMPANY_NAME = "COMPANY_NAME"; /* 公司名称*/
public static final String COL_YEAR = "YEAR"; /* 年份*/ public static final String COL_YEAR = "YEAR"; /* 年份*/
public static final String COL_MONTH = "MONTH"; /* 月份*/ public static final String COL_MONTH = "MONTH"; /* 月份*/
public static final String COL_AMOUNT = "AMOUNT"; /* 费用金é¢�*/ public static final String COL_AMOUNT = "AMOUNT"; /* 费用金额*/
public static final String COL_ACCOUNT = "ACCOUNT"; /* 企业编码*/
public static final String COL_DEP_CODE = "DEP_CODE"; /* 部门编码*/
public static final String QUERY = "HGCW051.query"; public static final String QUERY = "HGCW051.query";
public static final String COUNT = "HGCW051.count"; public static final String COUNT = "HGCW051.count";
...@@ -57,18 +61,20 @@ public class HGCW051 extends DaoEPBase { ...@@ -57,18 +61,20 @@ public class HGCW051 extends DaoEPBase {
public static final String DELETE = "HGCW051.delete"; public static final String DELETE = "HGCW051.delete";
private Long id = new Long(0); private Long id = new Long(0);
private String createdBy = " "; /* 记录创建者*/ private String createdBy = " "; /* 记录创建者*/
private String createdName = " "; /* 记录创建å��称*/ private String createdName = " "; /* 记录创建名称*/
private String createdTime = " "; /* 记录创建时间*/ private String createdTime = " "; /* 记录创建时间*/
private String updatedBy = " "; /* 记录修改者*/ private String updatedBy = " "; /* 记录修改者*/
private String updatedName = " "; /* 记录修改å��称*/ private String updatedName = " "; /* 记录修改名称*/
private String updatedTime = " "; /* 记录修改时间*/ private String updatedTime = " "; /* 记录修改时间*/
private Boolean deleteFlag; /* 0-未删除,1-已删除*/ private Boolean deleteFlag; /* 0-未删除,1-已删除*/
private String companyCode = " "; /* å…¬å�¸ç¼–ç �*/ private String companyCode = " "; /* 公司编码*/
private String companyName = " "; /* å…¬å�¸å��称*/ private String companyName = " "; /* 公司名称*/
private String year = " "; /* 年份*/ private String year = " "; /* 年份*/
private String month = " "; /* 月份*/ private String month = " "; /* 月份*/
private BigDecimal amount = new BigDecimal("0"); /* 费用金é¢�*/ private BigDecimal amount = new BigDecimal("0"); /* 费用金额*/
private String account = " "; /* 企业编码*/
private String depCode = " "; /* 部门编码*/
/** /**
* initialize the metadata. * initialize the metadata.
...@@ -82,54 +88,62 @@ public class HGCW051 extends DaoEPBase { ...@@ -82,54 +88,62 @@ public class HGCW051 extends DaoEPBase {
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_BY); eiColumn = new EiColumn(FIELD_CREATED_BY);
eiColumn.setDescName("记录创建者"); eiColumn.setDescName("记录创建者");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_NAME); eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiColumn.setDescName("记录创建å��称"); eiColumn.setDescName("记录创建名称");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_TIME); eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiColumn.setDescName("记录创建时间"); eiColumn.setDescName("记录创建时间");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_BY); eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiColumn.setDescName("记录修改者"); eiColumn.setDescName("记录修改者");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_NAME); eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiColumn.setDescName("记录修改å��称"); eiColumn.setDescName("记录修改名称");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_TIME); eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiColumn.setDescName("记录修改时间"); eiColumn.setDescName("记录修改时间");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DELETE_FLAG); eiColumn = new EiColumn(FIELD_DELETE_FLAG);
eiColumn.setDescName("0-未删除,1-已删除"); eiColumn.setDescName("0-未删除,1-已删除");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_CODE); eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiColumn.setDescName("å…¬å�¸ç¼–ç �"); eiColumn.setDescName("公司编码");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_NAME); eiColumn = new EiColumn(FIELD_COMPANY_NAME);
eiColumn.setDescName("å…¬å�¸å��称"); eiColumn.setDescName("公司名称");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_YEAR); eiColumn = new EiColumn(FIELD_YEAR);
eiColumn.setDescName("年份"); eiColumn.setDescName("年份");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_MONTH); eiColumn = new EiColumn(FIELD_MONTH);
eiColumn.setDescName("月份"); eiColumn.setDescName("月份");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_AMOUNT); eiColumn = new EiColumn(FIELD_AMOUNT);
eiColumn.setType("N"); eiColumn.setType("N");
eiColumn.setScaleLength(3); eiColumn.setScaleLength(3);
eiColumn.setFieldLength(12); eiColumn.setFieldLength(12);
eiColumn.setDescName("费用金é¢�"); eiColumn.setDescName("费用金额");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_ACCOUNT);
eiColumn.setDescName("企业编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DEP_CODE);
eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
...@@ -159,7 +173,7 @@ public class HGCW051 extends DaoEPBase { ...@@ -159,7 +173,7 @@ public class HGCW051 extends DaoEPBase {
this.id = id; this.id = id;
} }
/** /**
* get the createdBy - 记录创建者. * get the createdBy - 记录创建者.
* @return the createdBy * @return the createdBy
*/ */
public String getCreatedBy() { public String getCreatedBy() {
...@@ -167,15 +181,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -167,15 +181,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the createdBy - 记录创建者. * set the createdBy - 记录创建者.
* *
* @param createdBy - 记录创建者 * @param createdBy - 记录创建者
*/ */
public void setCreatedBy(String createdBy) { public void setCreatedBy(String createdBy) {
this.createdBy = createdBy; this.createdBy = createdBy;
} }
/** /**
* get the createdName - 记录创建å��称. * get the createdName - 记录创建名称.
* @return the createdName * @return the createdName
*/ */
public String getCreatedName() { public String getCreatedName() {
...@@ -183,15 +197,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -183,15 +197,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the createdName - 记录创建å��称. * set the createdName - 记录创建名称.
* *
* @param createdName - 记录创建å��称 * @param createdName - 记录创建名称
*/ */
public void setCreatedName(String createdName) { public void setCreatedName(String createdName) {
this.createdName = createdName; this.createdName = createdName;
} }
/** /**
* get the createdTime - 记录创建时间. * get the createdTime - 记录创建时间.
* @return the createdTime * @return the createdTime
*/ */
public String getCreatedTime() { public String getCreatedTime() {
...@@ -199,15 +213,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -199,15 +213,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the createdTime - 记录创建时间. * set the createdTime - 记录创建时间.
* *
* @param createdTime - 记录创建时间 * @param createdTime - 记录创建时间
*/ */
public void setCreatedTime(String createdTime) { public void setCreatedTime(String createdTime) {
this.createdTime = createdTime; this.createdTime = createdTime;
} }
/** /**
* get the updatedBy - 记录修改者. * get the updatedBy - 记录修改者.
* @return the updatedBy * @return the updatedBy
*/ */
public String getUpdatedBy() { public String getUpdatedBy() {
...@@ -215,15 +229,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -215,15 +229,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the updatedBy - 记录修改者. * set the updatedBy - 记录修改者.
* *
* @param updatedBy - 记录修改者 * @param updatedBy - 记录修改者
*/ */
public void setUpdatedBy(String updatedBy) { public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy; this.updatedBy = updatedBy;
} }
/** /**
* get the updatedName - 记录修改å��称. * get the updatedName - 记录修改名称.
* @return the updatedName * @return the updatedName
*/ */
public String getUpdatedName() { public String getUpdatedName() {
...@@ -231,15 +245,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -231,15 +245,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the updatedName - 记录修改å��称. * set the updatedName - 记录修改名称.
* *
* @param updatedName - 记录修改å��称 * @param updatedName - 记录修改名称
*/ */
public void setUpdatedName(String updatedName) { public void setUpdatedName(String updatedName) {
this.updatedName = updatedName; this.updatedName = updatedName;
} }
/** /**
* get the updatedTime - 记录修改时间. * get the updatedTime - 记录修改时间.
* @return the updatedTime * @return the updatedTime
*/ */
public String getUpdatedTime() { public String getUpdatedTime() {
...@@ -247,15 +261,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -247,15 +261,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the updatedTime - 记录修改时间. * set the updatedTime - 记录修改时间.
* *
* @param updatedTime - 记录修改时间 * @param updatedTime - 记录修改时间
*/ */
public void setUpdatedTime(String updatedTime) { public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime; this.updatedTime = updatedTime;
} }
/** /**
* get the deleteFlag - 0-未删除,1-已删除. * get the deleteFlag - 0-未删除,1-已删除.
* @return the deleteFlag * @return the deleteFlag
*/ */
public Boolean getDeleteFlag() { public Boolean getDeleteFlag() {
...@@ -263,15 +277,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -263,15 +277,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the deleteFlag - 0-未删除,1-已删除. * set the deleteFlag - 0-未删除,1-已删除.
* *
* @param deleteFlag - 0-未删除,1-已删除 * @param deleteFlag - 0-未删除,1-已删除
*/ */
public void setDeleteFlag(Boolean deleteFlag) { public void setDeleteFlag(Boolean deleteFlag) {
this.deleteFlag = deleteFlag; this.deleteFlag = deleteFlag;
} }
/** /**
* get the companyCode - å…¬å�¸ç¼–ç �. * get the companyCode - 公司编码.
* @return the companyCode * @return the companyCode
*/ */
public String getCompanyCode() { public String getCompanyCode() {
...@@ -279,15 +293,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -279,15 +293,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the companyCode - å…¬å�¸ç¼–ç �. * set the companyCode - 公司编码.
* *
* @param companyCode - å…¬å�¸ç¼–ç � * @param companyCode - 公司编码
*/ */
public void setCompanyCode(String companyCode) { public void setCompanyCode(String companyCode) {
this.companyCode = companyCode; this.companyCode = companyCode;
} }
/** /**
* get the companyName - å…¬å�¸å��称. * get the companyName - 公司名称.
* @return the companyName * @return the companyName
*/ */
public String getCompanyName() { public String getCompanyName() {
...@@ -295,15 +309,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -295,15 +309,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the companyName - å…¬å�¸å��称. * set the companyName - 公司名称.
* *
* @param companyName - å…¬å�¸å��称 * @param companyName - 公司名称
*/ */
public void setCompanyName(String companyName) { public void setCompanyName(String companyName) {
this.companyName = companyName; this.companyName = companyName;
} }
/** /**
* get the year - 年份. * get the year - 年份.
* @return the year * @return the year
*/ */
public String getYear() { public String getYear() {
...@@ -311,15 +325,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -311,15 +325,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the year - 年份. * set the year - 年份.
* *
* @param year - 年份 * @param year - 年份
*/ */
public void setYear(String year) { public void setYear(String year) {
this.year = year; this.year = year;
} }
/** /**
* get the month - 月份. * get the month - 月份.
* @return the month * @return the month
*/ */
public String getMonth() { public String getMonth() {
...@@ -327,15 +341,15 @@ public class HGCW051 extends DaoEPBase { ...@@ -327,15 +341,15 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the month - 月份. * set the month - 月份.
* *
* @param month - 月份 * @param month - 月份
*/ */
public void setMonth(String month) { public void setMonth(String month) {
this.month = month; this.month = month;
} }
/** /**
* get the amount - 费用金é¢�. * get the amount - 费用金额.
* @return the amount * @return the amount
*/ */
public BigDecimal getAmount() { public BigDecimal getAmount() {
...@@ -343,14 +357,46 @@ public class HGCW051 extends DaoEPBase { ...@@ -343,14 +357,46 @@ public class HGCW051 extends DaoEPBase {
} }
/** /**
* set the amount - 费用金é¢�. * set the amount - 费用金额.
* *
* @param amount - 费用金é¢� * @param amount - 费用金额
*/ */
public void setAmount(BigDecimal amount) { public void setAmount(BigDecimal amount) {
this.amount = amount; this.amount = amount;
} }
/** /**
* get the account - 企业编码.
* @return the account
*/
public String getAccount() {
return this.account;
}
/**
* set the account - 企业编码.
*
* @param account - 企业编码
*/
public void setAccount(String account) {
this.account = account;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public String getDepCode() {
return this.depCode;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public void setDepCode(String depCode) {
this.depCode = depCode;
}
/**
* get the value from Map. * get the value from Map.
* *
* @param map - source data map * @param map - source data map
...@@ -371,6 +417,8 @@ public class HGCW051 extends DaoEPBase { ...@@ -371,6 +417,8 @@ public class HGCW051 extends DaoEPBase {
setYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_YEAR)), year)); setYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_YEAR)), year));
setMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_MONTH)), month)); setMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_MONTH)), month));
setAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_AMOUNT)), amount)); setAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_AMOUNT)), amount));
setAccount(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ACCOUNT)), account));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DEP_CODE)), depCode));
} }
/** /**
...@@ -393,6 +441,8 @@ public class HGCW051 extends DaoEPBase { ...@@ -393,6 +441,8 @@ public class HGCW051 extends DaoEPBase {
map.put(FIELD_YEAR, StringUtils.toString(year, eiMetadata.getMeta(FIELD_YEAR))); map.put(FIELD_YEAR, StringUtils.toString(year, eiMetadata.getMeta(FIELD_YEAR)));
map.put(FIELD_MONTH, StringUtils.toString(month, eiMetadata.getMeta(FIELD_MONTH))); map.put(FIELD_MONTH, StringUtils.toString(month, eiMetadata.getMeta(FIELD_MONTH)));
map.put(FIELD_AMOUNT, StringUtils.toString(amount, eiMetadata.getMeta(FIELD_AMOUNT))); map.put(FIELD_AMOUNT, StringUtils.toString(amount, eiMetadata.getMeta(FIELD_AMOUNT)));
map.put(FIELD_ACCOUNT, StringUtils.toString(account, eiMetadata.getMeta(FIELD_ACCOUNT)));
map.put(FIELD_DEP_CODE, StringUtils.toString(depCode, eiMetadata.getMeta(FIELD_DEP_CODE)));
return map; return map;
} }
......
...@@ -10,57 +10,61 @@ import com.baosight.iplat4j.core.util.StringUtils; ...@@ -10,57 +10,61 @@ import com.baosight.iplat4j.core.util.StringUtils;
/** /**
* Project: <br> * Project: <br>
* Title:HGCW052.java <br> * Title:Hgcw052.java <br>
* Description: <br> * Description: <br>
* *
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br> * Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
* *
* @version 1.0 * @version 1.0
* @history 2024-06-26 15:09:39 create * @history 2024-07-01 10:27:33 create
*/ */
public class HGCW052 extends DaoEPBase { public class HGCW052 extends DaoEPBase {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public static final String FIELD_ID = "id"; public static final String FIELD_ID = "id";
public static final String FIELD_CREATED_BY = "createdBy"; /* 记录创建者*/ public static final String FIELD_CREATED_BY = "createdBy"; /* 记录创建者*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 记录创建å��称*/ public static final String FIELD_CREATED_NAME = "createdName"; /* 记录创建名称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 记录创建时间*/ public static final String FIELD_CREATED_TIME = "createdTime"; /* 记录创建时间*/
public static final String FIELD_UPDATED_BY = "updatedBy"; /* 记录修改者*/ public static final String FIELD_UPDATED_BY = "updatedBy"; /* 记录修改者*/
public static final String FIELD_UPDATED_NAME = "updatedName"; /* 记录修改å��称*/ public static final String FIELD_UPDATED_NAME = "updatedName"; /* 记录修改名称*/
public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 记录修改时间*/ public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 记录修改时间*/
public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 0-未删除,1-已删除*/ public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 0-未删除,1-已删除*/
public static final String FIELD_COMPANY_CODE = "companyCode"; /* å…¬å�¸ç¼–ç �*/ public static final String FIELD_COMPANY_CODE = "companyCode"; /* 公司编码*/
public static final String FIELD_COMPANY_NAME = "companyName"; /* å…¬å�¸å��称*/ public static final String FIELD_COMPANY_NAME = "companyName"; /* 公司名称*/
public static final String FIELD_YEAR = "year"; /* 年份*/ public static final String FIELD_YEAR = "year"; /* 年份*/
public static final String FIELD_MONTH = "month"; /* 月份*/ public static final String FIELD_MONTH = "month"; /* 月份*/
public static final String FIELD_AMOUNT = "amount"; /* 费用金é¢�*/ public static final String FIELD_AMOUNT = "amount"; /* 费用金额*/
public static final String FIELD_HGCW051_ID = "hgcw051Id"; /* 主表ID*/ public static final String FIELD_HGCW051_ID = "hgcw051Id"; /* 主表ID*/
public static final String FIELD_COST_TYPE = "costType"; /* 费用类型*/ public static final String FIELD_COST_TYPE = "costType"; /* 费用类型*/
public static final String FIELD_COST_ITEM = "costItem"; /* 费用项*/ public static final String FIELD_COST_ITEM = "costItem"; /* 费用项*/
public static final String FIELD_ITEM_NAME = "itemName"; /* 项目å��称*/ public static final String FIELD_ITEM_NAME = "itemName"; /* 项目名称*/
public static final String FIELD_ITEM_CODE = "itemCode"; /* 项目编å�·*/ public static final String FIELD_ITEM_CODE = "itemCode"; /* 项目编号*/
public static final String FIELD_IS_SHARE = "isShare"; /* 是å�¦åˆ†æ‘Šè´¹ç”¨*/ public static final String FIELD_IS_SHARE = "isShare"; /* 是否分摊费用*/
public static final String FIELD_ACCOUNT = "account"; /* 企业编码*/
public static final String FIELD_DEP_CODE = "depCode"; /* 部门编码*/
public static final String COL_ID = "ID"; public static final String COL_ID = "ID";
public static final String COL_CREATED_BY = "CREATED_BY"; /* 记录创建者*/ public static final String COL_CREATED_BY = "CREATED_BY"; /* 记录创建者*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 记录创建å��称*/ public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 记录创建名称*/
public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 记录创建时间*/ public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 记录创建时间*/
public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 记录修改者*/ public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 记录修改者*/
public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 记录修改å��称*/ public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 记录修改名称*/
public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 记录修改时间*/ public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 记录修改时间*/
public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 0-未删除,1-已删除*/ public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 0-未删除,1-已删除*/
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* å…¬å�¸ç¼–ç �*/ public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 公司编码*/
public static final String COL_COMPANY_NAME = "COMPANY_NAME"; /* å…¬å�¸å��称*/ public static final String COL_COMPANY_NAME = "COMPANY_NAME"; /* 公司名称*/
public static final String COL_YEAR = "YEAR"; /* 年份*/ public static final String COL_YEAR = "YEAR"; /* 年份*/
public static final String COL_MONTH = "MONTH"; /* 月份*/ public static final String COL_MONTH = "MONTH"; /* 月份*/
public static final String COL_AMOUNT = "AMOUNT"; /* 费用金é¢�*/ public static final String COL_AMOUNT = "AMOUNT"; /* 费用金额*/
public static final String COL_HGCW051_ID = "HGCW051_ID"; /* 主表ID*/ public static final String COL_HGCW051_ID = "HGCW051_ID"; /* 主表ID*/
public static final String COL_COST_TYPE = "COST_TYPE"; /* 费用类型*/ public static final String COL_COST_TYPE = "COST_TYPE"; /* 费用类型*/
public static final String COL_COST_ITEM = "COST_ITEM"; /* 费用项*/ public static final String COL_COST_ITEM = "COST_ITEM"; /* 费用项*/
public static final String COL_ITEM_NAME = "ITEM_NAME"; /* 项目å��称*/ public static final String COL_ITEM_NAME = "ITEM_NAME"; /* 项目名称*/
public static final String COL_ITEM_CODE = "ITEM_CODE"; /* 项目编å�·*/ public static final String COL_ITEM_CODE = "ITEM_CODE"; /* 项目编号*/
public static final String COL_IS_SHARE = "IS_SHARE"; /* 是å�¦åˆ†æ‘Šè´¹ç”¨*/ public static final String COL_IS_SHARE = "IS_SHARE"; /* 是否分摊费用*/
public static final String COL_ACCOUNT = "ACCOUNT"; /* 企业编码*/
public static final String COL_DEP_CODE = "DEP_CODE"; /* 部门编码*/
public static final String QUERY = "HGCW052.query"; public static final String QUERY = "HGCW052.query";
public static final String COUNT = "HGCW052.count"; public static final String COUNT = "HGCW052.count";
...@@ -69,24 +73,26 @@ public class HGCW052 extends DaoEPBase { ...@@ -69,24 +73,26 @@ public class HGCW052 extends DaoEPBase {
public static final String DELETE = "HGCW052.delete"; public static final String DELETE = "HGCW052.delete";
private Long id = new Long(0); private Long id = new Long(0);
private String createdBy = " "; /* 记录创建者*/ private String createdBy = " "; /* 记录创建者*/
private String createdName = " "; /* 记录创建å��称*/ private String createdName = " "; /* 记录创建名称*/
private String createdTime = " "; /* 记录创建时间*/ private String createdTime = " "; /* 记录创建时间*/
private String updatedBy = " "; /* 记录修改者*/ private String updatedBy = " "; /* 记录修改者*/
private String updatedName = " "; /* 记录修改å��称*/ private String updatedName = " "; /* 记录修改名称*/
private String updatedTime = " "; /* 记录修改时间*/ private String updatedTime = " "; /* 记录修改时间*/
private Boolean deleteFlag; /* 0-未删除,1-已删除*/ private Boolean deleteFlag; /* 0-未删除,1-已删除*/
private String companyCode = " "; /* å…¬å�¸ç¼–ç �*/ private String companyCode = " "; /* 公司编码*/
private String companyName = " "; /* å…¬å�¸å��称*/ private String companyName = " "; /* 公司名称*/
private String year = " "; /* 年份*/ private String year = " "; /* 年份*/
private String month = " "; /* 月份*/ private String month = " "; /* 月份*/
private BigDecimal amount = new BigDecimal("0"); /* 费用金é¢�*/ private BigDecimal amount = new BigDecimal("0"); /* 费用金额*/
private Long hgcw051Id = new Long(0); /* 主表ID*/ private Long hgcw051Id = new Long(0); /* 主表ID*/
private String costType = " "; /* 费用类型*/ private String costType = " "; /* 费用类型*/
private String costItem = " "; /* 费用项*/ private String costItem = " "; /* 费用项*/
private String itemName = " "; /* 项目å��称*/ private String itemName = " "; /* 项目名称*/
private String itemCode = " "; /* 项目编å�·*/ private String itemCode = " "; /* 项目编号*/
private String isShare = " "; /* 是å�¦åˆ†æ‘Šè´¹ç”¨*/ private String isShare = " "; /* 是否分摊费用*/
private String account = " "; /* 企业编码*/
private String depCode = " "; /* 部门编码*/
/** /**
* initialize the metadata. * initialize the metadata.
...@@ -100,78 +106,86 @@ public class HGCW052 extends DaoEPBase { ...@@ -100,78 +106,86 @@ public class HGCW052 extends DaoEPBase {
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_BY); eiColumn = new EiColumn(FIELD_CREATED_BY);
eiColumn.setDescName("记录创建者"); eiColumn.setDescName("记录创建者");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_NAME); eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiColumn.setDescName("记录创建å��称"); eiColumn.setDescName("记录创建名称");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_TIME); eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiColumn.setDescName("记录创建时间"); eiColumn.setDescName("记录创建时间");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_BY); eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiColumn.setDescName("记录修改者"); eiColumn.setDescName("记录修改者");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_NAME); eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiColumn.setDescName("记录修改å��称"); eiColumn.setDescName("记录修改名称");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_TIME); eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiColumn.setDescName("记录修改时间"); eiColumn.setDescName("记录修改时间");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DELETE_FLAG); eiColumn = new EiColumn(FIELD_DELETE_FLAG);
eiColumn.setDescName("0-未删除,1-已删除"); eiColumn.setDescName("0-未删除,1-已删除");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_CODE); eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiColumn.setDescName("å…¬å�¸ç¼–ç �"); eiColumn.setDescName("公司编码");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_NAME); eiColumn = new EiColumn(FIELD_COMPANY_NAME);
eiColumn.setDescName("å…¬å�¸å��称"); eiColumn.setDescName("公司名称");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_YEAR); eiColumn = new EiColumn(FIELD_YEAR);
eiColumn.setDescName("年份"); eiColumn.setDescName("年份");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_MONTH); eiColumn = new EiColumn(FIELD_MONTH);
eiColumn.setDescName("月份"); eiColumn.setDescName("月份");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_AMOUNT); eiColumn = new EiColumn(FIELD_AMOUNT);
eiColumn.setType("N"); eiColumn.setType("N");
eiColumn.setScaleLength(3); eiColumn.setScaleLength(3);
eiColumn.setFieldLength(12); eiColumn.setFieldLength(12);
eiColumn.setDescName("费用金é¢�"); eiColumn.setDescName("费用金额");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_HGCW051_ID); eiColumn = new EiColumn(FIELD_HGCW051_ID);
eiColumn.setDescName("主表ID"); eiColumn.setDescName("主表ID");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COST_TYPE); eiColumn = new EiColumn(FIELD_COST_TYPE);
eiColumn.setDescName("费用类型"); eiColumn.setDescName("费用类型");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COST_ITEM); eiColumn = new EiColumn(FIELD_COST_ITEM);
eiColumn.setDescName("费用项"); eiColumn.setDescName("费用项");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_ITEM_NAME); eiColumn = new EiColumn(FIELD_ITEM_NAME);
eiColumn.setDescName("项目å��称"); eiColumn.setDescName("项目名称");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_ITEM_CODE); eiColumn = new EiColumn(FIELD_ITEM_CODE);
eiColumn.setDescName("项目编å�·"); eiColumn.setDescName("项目编号");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_IS_SHARE); eiColumn = new EiColumn(FIELD_IS_SHARE);
eiColumn.setDescName("是å�¦åˆ†æ‘Šè´¹ç”¨"); eiColumn.setDescName("是否分摊费用");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_ACCOUNT);
eiColumn.setDescName("企业编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DEP_CODE);
eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
...@@ -201,7 +215,7 @@ public class HGCW052 extends DaoEPBase { ...@@ -201,7 +215,7 @@ public class HGCW052 extends DaoEPBase {
this.id = id; this.id = id;
} }
/** /**
* get the createdBy - 记录创建者. * get the createdBy - 记录创建者.
* @return the createdBy * @return the createdBy
*/ */
public String getCreatedBy() { public String getCreatedBy() {
...@@ -209,15 +223,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -209,15 +223,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the createdBy - 记录创建者. * set the createdBy - 记录创建者.
* *
* @param createdBy - 记录创建者 * @param createdBy - 记录创建者
*/ */
public void setCreatedBy(String createdBy) { public void setCreatedBy(String createdBy) {
this.createdBy = createdBy; this.createdBy = createdBy;
} }
/** /**
* get the createdName - 记录创建å��称. * get the createdName - 记录创建名称.
* @return the createdName * @return the createdName
*/ */
public String getCreatedName() { public String getCreatedName() {
...@@ -225,15 +239,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -225,15 +239,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the createdName - 记录创建å��称. * set the createdName - 记录创建名称.
* *
* @param createdName - 记录创建å��称 * @param createdName - 记录创建名称
*/ */
public void setCreatedName(String createdName) { public void setCreatedName(String createdName) {
this.createdName = createdName; this.createdName = createdName;
} }
/** /**
* get the createdTime - 记录创建时间. * get the createdTime - 记录创建时间.
* @return the createdTime * @return the createdTime
*/ */
public String getCreatedTime() { public String getCreatedTime() {
...@@ -241,15 +255,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -241,15 +255,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the createdTime - 记录创建时间. * set the createdTime - 记录创建时间.
* *
* @param createdTime - 记录创建时间 * @param createdTime - 记录创建时间
*/ */
public void setCreatedTime(String createdTime) { public void setCreatedTime(String createdTime) {
this.createdTime = createdTime; this.createdTime = createdTime;
} }
/** /**
* get the updatedBy - 记录修改者. * get the updatedBy - 记录修改者.
* @return the updatedBy * @return the updatedBy
*/ */
public String getUpdatedBy() { public String getUpdatedBy() {
...@@ -257,15 +271,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -257,15 +271,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the updatedBy - 记录修改者. * set the updatedBy - 记录修改者.
* *
* @param updatedBy - 记录修改者 * @param updatedBy - 记录修改者
*/ */
public void setUpdatedBy(String updatedBy) { public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy; this.updatedBy = updatedBy;
} }
/** /**
* get the updatedName - 记录修改å��称. * get the updatedName - 记录修改名称.
* @return the updatedName * @return the updatedName
*/ */
public String getUpdatedName() { public String getUpdatedName() {
...@@ -273,15 +287,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -273,15 +287,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the updatedName - 记录修改å��称. * set the updatedName - 记录修改名称.
* *
* @param updatedName - 记录修改å��称 * @param updatedName - 记录修改名称
*/ */
public void setUpdatedName(String updatedName) { public void setUpdatedName(String updatedName) {
this.updatedName = updatedName; this.updatedName = updatedName;
} }
/** /**
* get the updatedTime - 记录修改时间. * get the updatedTime - 记录修改时间.
* @return the updatedTime * @return the updatedTime
*/ */
public String getUpdatedTime() { public String getUpdatedTime() {
...@@ -289,15 +303,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -289,15 +303,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the updatedTime - 记录修改时间. * set the updatedTime - 记录修改时间.
* *
* @param updatedTime - 记录修改时间 * @param updatedTime - 记录修改时间
*/ */
public void setUpdatedTime(String updatedTime) { public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime; this.updatedTime = updatedTime;
} }
/** /**
* get the deleteFlag - 0-未删除,1-已删除. * get the deleteFlag - 0-未删除,1-已删除.
* @return the deleteFlag * @return the deleteFlag
*/ */
public Boolean getDeleteFlag() { public Boolean getDeleteFlag() {
...@@ -305,15 +319,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -305,15 +319,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the deleteFlag - 0-未删除,1-已删除. * set the deleteFlag - 0-未删除,1-已删除.
* *
* @param deleteFlag - 0-未删除,1-已删除 * @param deleteFlag - 0-未删除,1-已删除
*/ */
public void setDeleteFlag(Boolean deleteFlag) { public void setDeleteFlag(Boolean deleteFlag) {
this.deleteFlag = deleteFlag; this.deleteFlag = deleteFlag;
} }
/** /**
* get the companyCode - å…¬å�¸ç¼–ç �. * get the companyCode - 公司编码.
* @return the companyCode * @return the companyCode
*/ */
public String getCompanyCode() { public String getCompanyCode() {
...@@ -321,15 +335,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -321,15 +335,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the companyCode - å…¬å�¸ç¼–ç �. * set the companyCode - 公司编码.
* *
* @param companyCode - å…¬å�¸ç¼–ç � * @param companyCode - 公司编码
*/ */
public void setCompanyCode(String companyCode) { public void setCompanyCode(String companyCode) {
this.companyCode = companyCode; this.companyCode = companyCode;
} }
/** /**
* get the companyName - å…¬å�¸å��称. * get the companyName - 公司名称.
* @return the companyName * @return the companyName
*/ */
public String getCompanyName() { public String getCompanyName() {
...@@ -337,15 +351,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -337,15 +351,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the companyName - å…¬å�¸å��称. * set the companyName - 公司名称.
* *
* @param companyName - å…¬å�¸å��称 * @param companyName - 公司名称
*/ */
public void setCompanyName(String companyName) { public void setCompanyName(String companyName) {
this.companyName = companyName; this.companyName = companyName;
} }
/** /**
* get the year - 年份. * get the year - 年份.
* @return the year * @return the year
*/ */
public String getYear() { public String getYear() {
...@@ -353,15 +367,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -353,15 +367,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the year - 年份. * set the year - 年份.
* *
* @param year - 年份 * @param year - 年份
*/ */
public void setYear(String year) { public void setYear(String year) {
this.year = year; this.year = year;
} }
/** /**
* get the month - 月份. * get the month - 月份.
* @return the month * @return the month
*/ */
public String getMonth() { public String getMonth() {
...@@ -369,15 +383,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -369,15 +383,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the month - 月份. * set the month - 月份.
* *
* @param month - 月份 * @param month - 月份
*/ */
public void setMonth(String month) { public void setMonth(String month) {
this.month = month; this.month = month;
} }
/** /**
* get the amount - 费用金é¢�. * get the amount - 费用金额.
* @return the amount * @return the amount
*/ */
public BigDecimal getAmount() { public BigDecimal getAmount() {
...@@ -385,15 +399,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -385,15 +399,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the amount - 费用金é¢�. * set the amount - 费用金额.
* *
* @param amount - 费用金é¢� * @param amount - 费用金额
*/ */
public void setAmount(BigDecimal amount) { public void setAmount(BigDecimal amount) {
this.amount = amount; this.amount = amount;
} }
/** /**
* get the hgcw051Id - 主表ID. * get the hgcw051Id - 主表ID.
* @return the hgcw051Id * @return the hgcw051Id
*/ */
public Long getHgcw051Id() { public Long getHgcw051Id() {
...@@ -401,15 +415,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -401,15 +415,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the hgcw051Id - 主表ID. * set the hgcw051Id - 主表ID.
* *
* @param hgcw051Id - 主表ID * @param hgcw051Id - 主表ID
*/ */
public void setHgcw051Id(Long hgcw051Id) { public void setHgcw051Id(Long hgcw051Id) {
this.hgcw051Id = hgcw051Id; this.hgcw051Id = hgcw051Id;
} }
/** /**
* get the costType - 费用类型. * get the costType - 费用类型.
* @return the costType * @return the costType
*/ */
public String getCostType() { public String getCostType() {
...@@ -417,15 +431,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -417,15 +431,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the costType - 费用类型. * set the costType - 费用类型.
* *
* @param costType - 费用类型 * @param costType - 费用类型
*/ */
public void setCostType(String costType) { public void setCostType(String costType) {
this.costType = costType; this.costType = costType;
} }
/** /**
* get the costItem - 费用项. * get the costItem - 费用项.
* @return the costItem * @return the costItem
*/ */
public String getCostItem() { public String getCostItem() {
...@@ -433,15 +447,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -433,15 +447,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the costItem - 费用项. * set the costItem - 费用项.
* *
* @param costItem - 费用项 * @param costItem - 费用项
*/ */
public void setCostItem(String costItem) { public void setCostItem(String costItem) {
this.costItem = costItem; this.costItem = costItem;
} }
/** /**
* get the itemName - 项目å��称. * get the itemName - 项目名称.
* @return the itemName * @return the itemName
*/ */
public String getItemName() { public String getItemName() {
...@@ -449,15 +463,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -449,15 +463,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the itemName - 项目å��称. * set the itemName - 项目名称.
* *
* @param itemName - 项目å��称 * @param itemName - 项目名称
*/ */
public void setItemName(String itemName) { public void setItemName(String itemName) {
this.itemName = itemName; this.itemName = itemName;
} }
/** /**
* get the itemCode - 项目编å�·. * get the itemCode - 项目编号.
* @return the itemCode * @return the itemCode
*/ */
public String getItemCode() { public String getItemCode() {
...@@ -465,15 +479,15 @@ public class HGCW052 extends DaoEPBase { ...@@ -465,15 +479,15 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the itemCode - 项目编å�·. * set the itemCode - 项目编号.
* *
* @param itemCode - 项目编å�· * @param itemCode - 项目编号
*/ */
public void setItemCode(String itemCode) { public void setItemCode(String itemCode) {
this.itemCode = itemCode; this.itemCode = itemCode;
} }
/** /**
* get the isShare - 是å�¦åˆ†æ‘Šè´¹ç”¨. * get the isShare - 是否分摊费用.
* @return the isShare * @return the isShare
*/ */
public String getIsShare() { public String getIsShare() {
...@@ -481,14 +495,46 @@ public class HGCW052 extends DaoEPBase { ...@@ -481,14 +495,46 @@ public class HGCW052 extends DaoEPBase {
} }
/** /**
* set the isShare - 是å�¦åˆ†æ‘Šè´¹ç”¨. * set the isShare - 是否分摊费用.
* *
* @param isShare - 是å�¦åˆ†æ‘Šè´¹ç”¨ * @param isShare - 是否分摊费用
*/ */
public void setIsShare(String isShare) { public void setIsShare(String isShare) {
this.isShare = isShare; this.isShare = isShare;
} }
/** /**
* get the account - 企业编码.
* @return the account
*/
public String getAccount() {
return this.account;
}
/**
* set the account - 企业编码.
*
* @param account - 企业编码
*/
public void setAccount(String account) {
this.account = account;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public String getDepCode() {
return this.depCode;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public void setDepCode(String depCode) {
this.depCode = depCode;
}
/**
* get the value from Map. * get the value from Map.
* *
* @param map - source data map * @param map - source data map
...@@ -515,6 +561,8 @@ public class HGCW052 extends DaoEPBase { ...@@ -515,6 +561,8 @@ public class HGCW052 extends DaoEPBase {
setItemName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ITEM_NAME)), itemName)); setItemName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ITEM_NAME)), itemName));
setItemCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ITEM_CODE)), itemCode)); setItemCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ITEM_CODE)), itemCode));
setIsShare(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_IS_SHARE)), isShare)); setIsShare(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_IS_SHARE)), isShare));
setAccount(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ACCOUNT)), account));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DEP_CODE)), depCode));
} }
/** /**
...@@ -543,6 +591,8 @@ public class HGCW052 extends DaoEPBase { ...@@ -543,6 +591,8 @@ public class HGCW052 extends DaoEPBase {
map.put(FIELD_ITEM_NAME, StringUtils.toString(itemName, eiMetadata.getMeta(FIELD_ITEM_NAME))); map.put(FIELD_ITEM_NAME, StringUtils.toString(itemName, eiMetadata.getMeta(FIELD_ITEM_NAME)));
map.put(FIELD_ITEM_CODE, StringUtils.toString(itemCode, eiMetadata.getMeta(FIELD_ITEM_CODE))); map.put(FIELD_ITEM_CODE, StringUtils.toString(itemCode, eiMetadata.getMeta(FIELD_ITEM_CODE)));
map.put(FIELD_IS_SHARE, StringUtils.toString(isShare, eiMetadata.getMeta(FIELD_IS_SHARE))); map.put(FIELD_IS_SHARE, StringUtils.toString(isShare, eiMetadata.getMeta(FIELD_IS_SHARE)));
map.put(FIELD_ACCOUNT, StringUtils.toString(account, eiMetadata.getMeta(FIELD_ACCOUNT)));
map.put(FIELD_DEP_CODE, StringUtils.toString(depCode, eiMetadata.getMeta(FIELD_DEP_CODE)));
return map; return map;
} }
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information
Generate time : 2024-06-26 15:09:24 Generate time : 2024-07-01 10:27:27
Version : 1.0 Version : 1.0
schema : hggp schema : hggp
tableName : HGCW051 tableName : HGCW051
...@@ -16,7 +16,9 @@ ...@@ -16,7 +16,9 @@
COMPANY_NAME VARCHAR, COMPANY_NAME VARCHAR,
YEAR VARCHAR NOT NULL, YEAR VARCHAR NOT NULL,
MONTH VARCHAR NOT NULL, MONTH VARCHAR NOT NULL,
AMOUNT DECIMAL AMOUNT DECIMAL,
ACCOUNT VARCHAR,
DEP_CODE VARCHAR
--> -->
<sqlMap namespace="HGCW051"> <sqlMap namespace="HGCW051">
...@@ -60,6 +62,12 @@ ...@@ -60,6 +62,12 @@
<isNotEmpty prepend=" AND " property="amount"> <isNotEmpty prepend=" AND " property="amount">
AMOUNT = #amount# AMOUNT = #amount#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="account">
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
</sql> </sql>
<select id="query" parameterClass="java.util.HashMap" <select id="query" parameterClass="java.util.HashMap"
...@@ -129,24 +137,32 @@ ...@@ -129,24 +137,32 @@
<isNotEmpty prepend=" AND " property="amount"> <isNotEmpty prepend=" AND " property="amount">
AMOUNT = #amount# AMOUNT = #amount#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="account">
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
--> -->
<insert id="insert"> <insert id="insert">
INSERT INTO ${hggpSchema}.HGCW051 (ID, INSERT INTO ${hggpSchema}.HGCW051 (ID,
CREATED_BY, <!-- 记录创建者 --> CREATED_BY, <!-- 记录创建者 -->
CREATED_NAME, <!-- 记录创建å��称 --> CREATED_NAME, <!-- 记录创建名称 -->
CREATED_TIME, <!-- 记录创建时间 --> CREATED_TIME, <!-- 记录创建时间 -->
UPDATED_BY, <!-- 记录修改者 --> UPDATED_BY, <!-- 记录修改者 -->
UPDATED_NAME, <!-- 记录修改å��称 --> UPDATED_NAME, <!-- 记录修改名称 -->
UPDATED_TIME, <!-- 记录修改时间 --> UPDATED_TIME, <!-- 记录修改时间 -->
DELETE_FLAG, <!-- 0-未删除,1-已删除 --> DELETE_FLAG, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE, <!-- å…¬å�¸ç¼–ç � --> COMPANY_CODE, <!-- 公司编码 -->
COMPANY_NAME, <!-- å…¬å�¸å��称 --> COMPANY_NAME, <!-- 公司名称 -->
YEAR, <!-- 年份 --> YEAR, <!-- 年份 -->
MONTH, <!-- 月份 --> MONTH, <!-- 月份 -->
AMOUNT <!-- 费用金é¢� --> AMOUNT, <!-- 费用金额 -->
ACCOUNT, <!-- 企业编码 -->
DEP_CODE <!-- 部门编码 -->
) )
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#) VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#, #account#, #depCode#)
</insert> </insert>
<delete id="delete"> <delete id="delete">
...@@ -157,18 +173,20 @@ ...@@ -157,18 +173,20 @@
<update id="update"> <update id="update">
UPDATE ${hggpSchema}.HGCW051 UPDATE ${hggpSchema}.HGCW051
SET SET
CREATED_BY = #createdBy#, <!-- 记录创建者 --> CREATED_BY = #createdBy#, <!-- 记录创建者 -->
CREATED_NAME = #createdName#, <!-- 记录创建å��称 --> CREATED_NAME = #createdName#, <!-- 记录创建名称 -->
CREATED_TIME = #createdTime#, <!-- 记录创建时间 --> CREATED_TIME = #createdTime#, <!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 记录修改者 --> UPDATED_BY = #updatedBy#, <!-- 记录修改者 -->
UPDATED_NAME = #updatedName#, <!-- 记录修改å��称 --> UPDATED_NAME = #updatedName#, <!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#, <!-- 记录修改时间 --> UPDATED_TIME = #updatedTime#, <!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 0-未删除,1-已删除 --> DELETE_FLAG = #deleteFlag#, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#, <!-- å…¬å�¸ç¼–ç � --> COMPANY_CODE = #companyCode#, <!-- 公司编码 -->
COMPANY_NAME = #companyName#, <!-- å…¬å�¸å��称 --> COMPANY_NAME = #companyName#, <!-- 公司名称 -->
YEAR = #year#, <!-- 年份 --> YEAR = #year#, <!-- 年份 -->
MONTH = #month#, <!-- 月份 --> MONTH = #month#, <!-- 月份 -->
AMOUNT = #amount# <!-- 费用金é¢� --> AMOUNT = #amount#, <!-- 费用金额 -->
ACCOUNT = #account#, <!-- 企业编码 -->
DEP_CODE = #depCode# <!-- 部门编码 -->
WHERE WHERE
ID = #id# ID = #id#
</update> </update>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information
Generate time : 2024-06-26 15:09:39 Generate time : 2024-07-01 10:27:33
Version : 1.0 Version : 1.0
schema : hggp schema : hggp
tableName : HGCW052 tableName : HGCW052
...@@ -22,242 +22,259 @@ ...@@ -22,242 +22,259 @@
COST_ITEM VARCHAR, COST_ITEM VARCHAR,
ITEM_NAME VARCHAR, ITEM_NAME VARCHAR,
ITEM_CODE VARCHAR, ITEM_CODE VARCHAR,
IS_SHARE VARCHAR IS_SHARE VARCHAR,
ACCOUNT VARCHAR,
DEP_CODE VARCHAR
--> -->
<sqlMap namespace="HGCW052"> <sqlMap namespace="HGCW052">
<sql id="condition"> <sql id="condition">
<isNotEmpty prepend=" AND " property="id"> <isNotEmpty prepend=" AND " property="id">
ID = #id# ID = #id#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy"> <isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy# CREATED_BY = #createdBy#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName"> <isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName# CREATED_NAME = #createdName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime"> <isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime# CREATED_TIME = #createdTime#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy"> <isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy# UPDATED_BY = #updatedBy#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName"> <isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName# UPDATED_NAME = #updatedName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime"> <isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime# UPDATED_TIME = #updatedTime#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag"> <isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag# DELETE_FLAG = #deleteFlag#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode"> <isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode# COMPANY_CODE = #companyCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName"> <isNotEmpty prepend=" AND " property="companyName">
COMPANY_NAME = #companyName# COMPANY_NAME = #companyName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="year"> <isNotEmpty prepend=" AND " property="year">
YEAR = #year# YEAR = #year#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="month"> <isNotEmpty prepend=" AND " property="month">
MONTH = #month# MONTH = #month#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="amount"> <isNotEmpty prepend=" AND " property="amount">
AMOUNT = #amount# AMOUNT = #amount#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="hgcw051Id"> <isNotEmpty prepend=" AND " property="hgcw051Id">
HGCW051_ID = #hgcw051Id# HGCW051_ID = #hgcw051Id#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="costType"> <isNotEmpty prepend=" AND " property="costType">
COST_TYPE = #costType# COST_TYPE = #costType#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="costItem"> <isNotEmpty prepend=" AND " property="costItem">
COST_ITEM = like '%'||#costItem#||'%' COST_ITEM = like '%'||#costItem#||'%'
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="itemName"> <isNotEmpty prepend=" AND " property="itemName">
ITEM_NAME = #itemName# ITEM_NAME = #itemName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="itemCode"> <isNotEmpty prepend=" AND " property="itemCode">
ITEM_CODE = #itemCode# ITEM_CODE = #itemCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="isShare"> <isNotEmpty prepend=" AND " property="isShare">
IS_SHARE = #isShare# IS_SHARE = #isShare#
</isNotEmpty> </isNotEmpty>
</sql> <isNotEmpty prepend=" AND " property="account">
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap" <select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hggp.hg.cw.domain.HGCW052"> resultClass="com.baosight.hggp.hg.cw.domain.HGCW052">
SELECT SELECT
ID as "id", ID as "id",
CREATED_BY as "createdBy", <!-- 记录创建者 --> CREATED_BY as "createdBy", <!-- 记录创建者 -->
CREATED_NAME as "createdName", <!-- 记录创建å��称 --> CREATED_NAME as "createdName", <!-- 记录创建名称 -->
CREATED_TIME as "createdTime", <!-- 记录创建时间 --> CREATED_TIME as "createdTime", <!-- 记录创建时间 -->
UPDATED_BY as "updatedBy", <!-- 记录修改者 --> UPDATED_BY as "updatedBy", <!-- 记录修改者 -->
UPDATED_NAME as "updatedName", <!-- 记录修改å��称 --> UPDATED_NAME as "updatedName", <!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime", <!-- 记录修改时间 --> UPDATED_TIME as "updatedTime", <!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag", <!-- 0-未删除,1-已删除 --> DELETE_FLAG as "deleteFlag", <!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode", <!-- å…¬å�¸ç¼–ç � --> COMPANY_CODE as "companyCode", <!-- 公司编码 -->
COMPANY_NAME as "companyName", <!-- å…¬å�¸å��称 --> COMPANY_NAME as "companyName", <!-- 公司名称 -->
YEAR as "year", <!-- 年份 --> YEAR as "year", <!-- 年份 -->
MONTH as "month", <!-- 月份 --> MONTH as "month", <!-- 月份 -->
AMOUNT as "amount", <!-- 费用金é¢� --> AMOUNT as "amount", <!-- 费用金额 -->
HGCW051_ID as "hgcw051Id", <!-- 主表ID --> HGCW051_ID as "hgcw051Id", <!-- 主表ID -->
COST_TYPE as "costType", <!-- 费用类型 --> COST_TYPE as "costType", <!-- 费用类型 -->
COST_ITEM as "costItem", <!-- 费用项 --> COST_ITEM as "costItem", <!-- 费用项 -->
ITEM_NAME as "itemName", <!-- 项目å��称 --> ITEM_NAME as "itemName", <!-- 项目名称 -->
ITEM_CODE as "itemCode", <!-- 项目编å�· --> ITEM_CODE as "itemCode", <!-- 项目编号 -->
IS_SHARE as "isShare" <!-- 是å�¦åˆ†æ‘Šè´¹ç”¨ --> IS_SHARE as "isShare", <!-- 是否分摊费用 -->
FROM ${hggpSchema}.HGCW052 WHERE 1=1 ACCOUNT as "account", <!-- 企业编码 -->
<include refid="condition"/> DEP_CODE as "depCode" <!-- 部门编码 -->
<dynamic prepend="ORDER BY"> FROM ${hggpSchema}.HGCW052 WHERE 1=1
<isNotEmpty property="orderBy"> <include refid="condition" />
$orderBy$ <dynamic prepend="ORDER BY">
</isNotEmpty> <isNotEmpty property="orderBy">
<isEmpty property="orderBy"> $orderBy$
ID asc </isNotEmpty>
</isEmpty> <isEmpty property="orderBy">
</dynamic> ID asc
</isEmpty>
</dynamic>
</select> </select>
<select id="query1" parameterClass="java.util.HashMap" <select id="query1" parameterClass="java.util.HashMap"
resultClass="java.util.HashMap"> resultClass="java.util.HashMap">
SELECT PROJ_NAME AS projName, SELECT PROJ_NAME AS projName,
PROJ_CODE AS projCode PROJ_CODE AS projCode
FROM hggp.hgsc001 FROM hggp.hgsc001
WHERE 1=1 WHERE 1=1
<isNotEmpty prepend=" AND " property="companyCode"> <isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode# COMPANY_CODE = #companyCode#
</isNotEmpty> </isNotEmpty>
AND PROJ_STATUS = '0' AND PROJ_STATUS = '0'
OR OR
( (
SUBSTR(UPDATED_TIME,1,6) = #updateTime# SUBSTR(UPDATED_TIME,1,6) = #updateTime#
AND PROJ_STATUS = '1' AND PROJ_STATUS = '1'
) )
</select> </select>
<select id="count" resultClass="int"> <select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hggpSchema}.HGCW052 WHERE 1=1 SELECT COUNT(*) FROM ${hggpSchema}.HGCW052 WHERE 1=1
<include refid="condition"/> <include refid="condition" />
</select> </select>
<!-- <!--
<isNotEmpty prepend=" AND " property="id"> <isNotEmpty prepend=" AND " property="id">
ID = #id# ID = #id#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy"> <isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy# CREATED_BY = #createdBy#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName"> <isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName# CREATED_NAME = #createdName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime"> <isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime# CREATED_TIME = #createdTime#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy"> <isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy# UPDATED_BY = #updatedBy#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName"> <isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName# UPDATED_NAME = #updatedName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime"> <isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime# UPDATED_TIME = #updatedTime#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag"> <isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag# DELETE_FLAG = #deleteFlag#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode"> <isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode# COMPANY_CODE = #companyCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName"> <isNotEmpty prepend=" AND " property="companyName">
COMPANY_NAME = #companyName# COMPANY_NAME = #companyName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="year"> <isNotEmpty prepend=" AND " property="year">
YEAR = #year# YEAR = #year#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="month"> <isNotEmpty prepend=" AND " property="month">
MONTH = #month# MONTH = #month#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="amount"> <isNotEmpty prepend=" AND " property="amount">
AMOUNT = #amount# AMOUNT = #amount#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="hgcw051Id"> <isNotEmpty prepend=" AND " property="hgcw051Id">
HGCW051_ID = #hgcw051Id# HGCW051_ID = #hgcw051Id#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="costType"> <isNotEmpty prepend=" AND " property="costType">
COST_TYPE = #costType# COST_TYPE = #costType#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="costItem"> <isNotEmpty prepend=" AND " property="costItem">
COST_ITEM = #costItem# COST_ITEM = #costItem#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="itemName"> <isNotEmpty prepend=" AND " property="itemName">
ITEM_NAME = #itemName# ITEM_NAME = #itemName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="itemCode"> <isNotEmpty prepend=" AND " property="itemCode">
ITEM_CODE = #itemCode# ITEM_CODE = #itemCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="isShare"> <isNotEmpty prepend=" AND " property="isShare">
IS_SHARE = #isShare# IS_SHARE = #isShare#
</isNotEmpty> </isNotEmpty>
--> <isNotEmpty prepend=" AND " property="account">
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
-->
<insert id="insert"> <insert id="insert">
INSERT INTO ${hggpSchema}.HGCW052 (ID, INSERT INTO ${hggpSchema}.HGCW052 (ID,
CREATED_BY, <!-- 记录创建者 --> CREATED_BY, <!-- 记录创建者 -->
CREATED_NAME, <!-- 记录创建å��称 --> CREATED_NAME, <!-- 记录创建名称 -->
CREATED_TIME, <!-- 记录创建时间 --> CREATED_TIME, <!-- 记录创建时间 -->
UPDATED_BY, <!-- 记录修改者 --> UPDATED_BY, <!-- 记录修改者 -->
UPDATED_NAME, <!-- 记录修改å��称 --> UPDATED_NAME, <!-- 记录修改名称 -->
UPDATED_TIME, <!-- 记录修改时间 --> UPDATED_TIME, <!-- 记录修改时间 -->
DELETE_FLAG, <!-- 0-未删除,1-已删除 --> DELETE_FLAG, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE, <!-- å…¬å�¸ç¼–ç � --> COMPANY_CODE, <!-- 公司编码 -->
COMPANY_NAME, <!-- å…¬å�¸å��称 --> COMPANY_NAME, <!-- 公司名称 -->
YEAR, <!-- 年份 --> YEAR, <!-- 年份 -->
MONTH, <!-- 月份 --> MONTH, <!-- 月份 -->
AMOUNT, <!-- 费用金é¢� --> AMOUNT, <!-- 费用金额 -->
HGCW051_ID, <!-- 主表ID --> HGCW051_ID, <!-- 主表ID -->
COST_TYPE, <!-- 费用类型 --> COST_TYPE, <!-- 费用类型 -->
COST_ITEM, <!-- 费用项 --> COST_ITEM, <!-- 费用项 -->
ITEM_NAME, <!-- 项目å��称 --> ITEM_NAME, <!-- 项目名称 -->
ITEM_CODE, <!-- 项目编å�· --> ITEM_CODE, <!-- 项目编号 -->
IS_SHARE <!-- 是å�¦åˆ†æ‘Šè´¹ç”¨ --> IS_SHARE, <!-- 是否分摊费用 -->
) ACCOUNT, <!-- 企业编码 -->
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, DEP_CODE <!-- 部门编码 -->
#deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#, #hgcw051Id#, #costType#, #costItem#, )
#itemName#, #itemCode#, #isShare#) VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#, #hgcw051Id#, #costType#, #costItem#, #itemName#, #itemCode#, #isShare#, #account#, #depCode#)
</insert> </insert>
<delete id="delete"> <delete id="delete">
DELETE DELETE FROM ${hggpSchema}.HGCW052 WHERE
FROM ${hggpSchema}.HGCW052 ID = #id#
WHERE ID = #id# </delete>
</delete>
<update id="update"> <update id="update">
UPDATE ${hggpSchema}.HGCW052 UPDATE ${hggpSchema}.HGCW052
SET SET
CREATED_BY = #createdBy#, <!-- 记录创建者 --> CREATED_BY = #createdBy#, <!-- 记录创建者 -->
CREATED_NAME = #createdName#, <!-- 记录创建å��称 --> CREATED_NAME = #createdName#, <!-- 记录创建名称 -->
CREATED_TIME = #createdTime#, <!-- 记录创建时间 --> CREATED_TIME = #createdTime#, <!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 记录修改者 --> UPDATED_BY = #updatedBy#, <!-- 记录修改者 -->
UPDATED_NAME = #updatedName#, <!-- 记录修改å��称 --> UPDATED_NAME = #updatedName#, <!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#, <!-- 记录修改时间 --> UPDATED_TIME = #updatedTime#, <!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 0-未删除,1-已删除 --> DELETE_FLAG = #deleteFlag#, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#, <!-- å…¬å�¸ç¼–ç � --> COMPANY_CODE = #companyCode#, <!-- 公司编码 -->
COMPANY_NAME = #companyName#, <!-- å…¬å�¸å��称 --> COMPANY_NAME = #companyName#, <!-- 公司名称 -->
YEAR = #year#, <!-- 年份 --> YEAR = #year#, <!-- 年份 -->
MONTH = #month#, <!-- 月份 --> MONTH = #month#, <!-- 月份 -->
AMOUNT = #amount#, <!-- 费用金é¢� --> AMOUNT = #amount#, <!-- 费用金额 -->
HGCW051_ID = #hgcw051Id#, <!-- 主表ID --> HGCW051_ID = #hgcw051Id#, <!-- 主表ID -->
COST_TYPE = #costType#, <!-- 费用类型 --> COST_TYPE = #costType#, <!-- 费用类型 -->
COST_ITEM = #costItem#, <!-- 费用项 --> COST_ITEM = #costItem#, <!-- 费用项 -->
ITEM_NAME = #itemName#, <!-- 项目å��称 --> ITEM_NAME = #itemName#, <!-- 项目名称 -->
ITEM_CODE = #itemCode#, <!-- 项目编å�· --> ITEM_CODE = #itemCode#, <!-- 项目编号 -->
IS_SHARE = #isShare# <!-- 是å�¦åˆ†æ‘Šè´¹ç”¨ --> IS_SHARE = #isShare#, <!-- 是否分摊费用 -->
WHERE ACCOUNT = #account#, <!-- 企业编码 -->
ID = #id# DEP_CODE = #depCode# <!-- 部门编码 -->
</update> WHERE
ID = #id#
</update>
</sqlMap> </sqlMap>
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