Commit aee1cf10 by YG8429

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

parent eeacca29
......@@ -10,45 +10,49 @@ import com.baosight.iplat4j.core.util.StringUtils;
/**
* Project: <br>
* Title:HGCW051.java <br>
* Title:Hgcw051.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-06-26 15:09:24 create
* @history 2024-07-01 10:27:27 create
*/
public class HGCW051 extends DaoEPBase {
private static final long serialVersionUID = 1L;
public static final String FIELD_ID = "id";
public static final String FIELD_CREATED_BY = "createdBy"; /* 记录创建者*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 记录创建�称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 记录创建时间*/
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_DELETE_FLAG = "deleteFlag"; /* 0-未删除,1-已删除*/
public static final String FIELD_COMPANY_CODE = "companyCode"; /* 公�编�*/
public static final String FIELD_COMPANY_NAME = "companyName"; /* 公��称*/
public static final String FIELD_YEAR = "year"; /* 年份*/
public static final String FIELD_MONTH = "month"; /* 月份*/
public static final String FIELD_AMOUNT = "amount"; /* 费用金�*/
public static final String FIELD_CREATED_BY = "createdBy"; /* 记录创建者*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 记录创建名称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 记录创建时间*/
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_DELETE_FLAG = "deleteFlag"; /* 0-未删除,1-已删除*/
public static final String FIELD_COMPANY_CODE = "companyCode"; /* 公司编码*/
public static final String FIELD_COMPANY_NAME = "companyName"; /* 公司名称*/
public static final String FIELD_YEAR = "year"; /* 年份*/
public static final String FIELD_MONTH = "month"; /* 月份*/
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_CREATED_BY = "CREATED_BY"; /* 记录创建者*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 记录创建�称*/
public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 记录创建时间*/
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_DELETE_FLAG = "DELETE_FLAG"; /* 0-未删除,1-已删除*/
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 公�编�*/
public static final String COL_COMPANY_NAME = "COMPANY_NAME"; /* 公��称*/
public static final String COL_YEAR = "YEAR"; /* 年份*/
public static final String COL_MONTH = "MONTH"; /* 月份*/
public static final String COL_AMOUNT = "AMOUNT"; /* 费用金�*/
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"; /* 记录创建时间*/
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_DELETE_FLAG = "DELETE_FLAG"; /* 0-未删除,1-已删除*/
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 公司编码*/
public static final String COL_COMPANY_NAME = "COMPANY_NAME"; /* 公司名称*/
public static final String COL_YEAR = "YEAR"; /* 年份*/
public static final String COL_MONTH = "MONTH"; /* 月份*/
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 COUNT = "HGCW051.count";
......@@ -57,18 +61,20 @@ public class HGCW051 extends DaoEPBase {
public static final String DELETE = "HGCW051.delete";
private Long id = new Long(0);
private String createdBy = " "; /* 记录创建者*/
private String createdName = " "; /* 记录创建�称*/
private String createdTime = " "; /* 记录创建时间*/
private String updatedBy = " "; /* 记录修改者*/
private String updatedName = " "; /* 记录修改�称*/
private String updatedTime = " "; /* 记录修改时间*/
private Boolean deleteFlag; /* 0-未删除,1-已删除*/
private String companyCode = " "; /* 公�编�*/
private String companyName = " "; /* 公��称*/
private String year = " "; /* 年份*/
private String month = " "; /* 月份*/
private BigDecimal amount = new BigDecimal("0"); /* 费用金�*/
private String createdBy = " "; /* 记录创建者*/
private String createdName = " "; /* 记录创建名称*/
private String createdTime = " "; /* 记录创建时间*/
private String updatedBy = " "; /* 记录修改者*/
private String updatedName = " "; /* 记录修改名称*/
private String updatedTime = " "; /* 记录修改时间*/
private Boolean deleteFlag; /* 0-未删除,1-已删除*/
private String companyCode = " "; /* 公司编码*/
private String companyName = " "; /* 公司名称*/
private String year = " "; /* 年份*/
private String month = " "; /* 月份*/
private BigDecimal amount = new BigDecimal("0"); /* 费用金额*/
private String account = " "; /* 企业编码*/
private String depCode = " "; /* 部门编码*/
/**
* initialize the metadata.
......@@ -82,54 +88,62 @@ public class HGCW051 extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_BY);
eiColumn.setDescName("记录创建者");
eiColumn.setDescName("记录创建者");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiColumn.setDescName("记录创建�称");
eiColumn.setDescName("记录创建名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiColumn.setDescName("记录创建时间");
eiColumn.setDescName("记录创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiColumn.setDescName("记录修改者");
eiColumn.setDescName("记录修改者");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiColumn.setDescName("记录修改�称");
eiColumn.setDescName("记录修改名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiColumn.setDescName("记录修改时间");
eiColumn.setDescName("记录修改时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DELETE_FLAG);
eiColumn.setDescName("0-未删除,1-已删除");
eiColumn.setDescName("0-未删除,1-已删除");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiColumn.setDescName("公�编�");
eiColumn.setDescName("公司编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_NAME);
eiColumn.setDescName("公��称");
eiColumn.setDescName("公司名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_YEAR);
eiColumn.setDescName("年份");
eiColumn.setDescName("年份");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_MONTH);
eiColumn.setDescName("月份");
eiColumn.setDescName("月份");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_AMOUNT);
eiColumn.setType("N");
eiColumn.setScaleLength(3);
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);
......@@ -159,7 +173,7 @@ public class HGCW051 extends DaoEPBase {
this.id = id;
}
/**
* get the createdBy - 记录创建者.
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public String getCreatedBy() {
......@@ -167,15 +181,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the createdBy - 记录创建者.
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
* @param createdBy - 记录创建者
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
* get the createdName - 记录创建�称.
* get the createdName - 记录创建名称.
* @return the createdName
*/
public String getCreatedName() {
......@@ -183,15 +197,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the createdName - 记录创建�称.
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建�称
* @param createdName - 记录创建名称
*/
public void setCreatedName(String createdName) {
this.createdName = createdName;
}
/**
* get the createdTime - 记录创建时间.
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public String getCreatedTime() {
......@@ -199,15 +213,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the createdTime - 记录创建时间.
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
* @param createdTime - 记录创建时间
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
* get the updatedBy - 记录修改者.
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public String getUpdatedBy() {
......@@ -215,15 +229,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the updatedBy - 记录修改者.
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
* @param updatedBy - 记录修改者
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
/**
* get the updatedName - 记录修改�称.
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public String getUpdatedName() {
......@@ -231,15 +245,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the updatedName - 记录修改�称.
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改�称
* @param updatedName - 记录修改名称
*/
public void setUpdatedName(String updatedName) {
this.updatedName = updatedName;
}
/**
* get the updatedTime - 记录修改时间.
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public String getUpdatedTime() {
......@@ -247,15 +261,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the updatedTime - 记录修改时间.
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
* @param updatedTime - 记录修改时间
*/
public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime;
}
/**
* get the deleteFlag - 0-未删除,1-已删除.
* get the deleteFlag - 0-未删除,1-已删除.
* @return the deleteFlag
*/
public Boolean getDeleteFlag() {
......@@ -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) {
this.deleteFlag = deleteFlag;
}
/**
* get the companyCode - 公�编�.
* get the companyCode - 公司编码.
* @return the companyCode
*/
public String getCompanyCode() {
......@@ -279,15 +293,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the companyCode - 公�编�.
* set the companyCode - 公司编码.
*
* @param companyCode - 公�编�
* @param companyCode - 公司编码
*/
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
/**
* get the companyName - 公��称.
* get the companyName - 公司名称.
* @return the companyName
*/
public String getCompanyName() {
......@@ -295,15 +309,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the companyName - 公��称.
* set the companyName - 公司名称.
*
* @param companyName - 公��称
* @param companyName - 公司名称
*/
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
/**
* get the year - 年份.
* get the year - 年份.
* @return the year
*/
public String getYear() {
......@@ -311,15 +325,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the year - 年份.
* set the year - 年份.
*
* @param year - 年份
* @param year - 年份
*/
public void setYear(String year) {
this.year = year;
}
/**
* get the month - 月份.
* get the month - 月份.
* @return the month
*/
public String getMonth() {
......@@ -327,15 +341,15 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the month - 月份.
* set the month - 月份.
*
* @param month - 月份
* @param month - 月份
*/
public void setMonth(String month) {
this.month = month;
}
/**
* get the amount - 费用金�.
* get the amount - 费用金额.
* @return the amount
*/
public BigDecimal getAmount() {
......@@ -343,14 +357,46 @@ public class HGCW051 extends DaoEPBase {
}
/**
* set the amount - 费用金�.
* set the amount - 费用金额.
*
* @param amount - 费用金�
* @param amount - 费用金额
*/
public void setAmount(BigDecimal 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.
*
* @param map - source data map
......@@ -371,6 +417,8 @@ public class HGCW051 extends DaoEPBase {
setYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_YEAR)), year));
setMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_MONTH)), month));
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 {
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_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;
}
......
......@@ -10,57 +10,61 @@ import com.baosight.iplat4j.core.util.StringUtils;
/**
* Project: <br>
* Title:HGCW052.java <br>
* Title:Hgcw052.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-06-26 15:09:39 create
* @history 2024-07-01 10:27:33 create
*/
public class HGCW052 extends DaoEPBase {
private static final long serialVersionUID = 1L;
public static final String FIELD_ID = "id";
public static final String FIELD_CREATED_BY = "createdBy"; /* 记录创建者*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 记录创建�称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 记录创建时间*/
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_DELETE_FLAG = "deleteFlag"; /* 0-未删除,1-已删除*/
public static final String FIELD_COMPANY_CODE = "companyCode"; /* 公�编�*/
public static final String FIELD_COMPANY_NAME = "companyName"; /* 公��称*/
public static final String FIELD_YEAR = "year"; /* 年份*/
public static final String FIELD_MONTH = "month"; /* 月份*/
public static final String FIELD_AMOUNT = "amount"; /* 费用金�*/
public static final String FIELD_HGCW051_ID = "hgcw051Id"; /* 主表ID*/
public static final String FIELD_COST_TYPE = "costType"; /* 费用类型*/
public static final String FIELD_COST_ITEM = "costItem"; /* 费用项*/
public static final String FIELD_ITEM_NAME = "itemName"; /* 项目�称*/
public static final String FIELD_ITEM_CODE = "itemCode"; /* 项目编�*/
public static final String FIELD_IS_SHARE = "isShare"; /* 是�分摊费用*/
public static final String FIELD_CREATED_BY = "createdBy"; /* 记录创建者*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 记录创建名称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 记录创建时间*/
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_DELETE_FLAG = "deleteFlag"; /* 0-未删除,1-已删除*/
public static final String FIELD_COMPANY_CODE = "companyCode"; /* 公司编码*/
public static final String FIELD_COMPANY_NAME = "companyName"; /* 公司名称*/
public static final String FIELD_YEAR = "year"; /* 年份*/
public static final String FIELD_MONTH = "month"; /* 月份*/
public static final String FIELD_AMOUNT = "amount"; /* 费用金额*/
public static final String FIELD_HGCW051_ID = "hgcw051Id"; /* 主表ID*/
public static final String FIELD_COST_TYPE = "costType"; /* 费用类型*/
public static final String FIELD_COST_ITEM = "costItem"; /* 费用项*/
public static final String FIELD_ITEM_NAME = "itemName"; /* 项目名称*/
public static final String FIELD_ITEM_CODE = "itemCode"; /* 项目编号*/
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_CREATED_BY = "CREATED_BY"; /* 记录创建者*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 记录创建�称*/
public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 记录创建时间*/
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_DELETE_FLAG = "DELETE_FLAG"; /* 0-未删除,1-已删除*/
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 公�编�*/
public static final String COL_COMPANY_NAME = "COMPANY_NAME"; /* 公��称*/
public static final String COL_YEAR = "YEAR"; /* 年份*/
public static final String COL_MONTH = "MONTH"; /* 月份*/
public static final String COL_AMOUNT = "AMOUNT"; /* 费用金�*/
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_ITEM = "COST_ITEM"; /* 费用项*/
public static final String COL_ITEM_NAME = "ITEM_NAME"; /* 项目�称*/
public static final String COL_ITEM_CODE = "ITEM_CODE"; /* 项目编�*/
public static final String COL_IS_SHARE = "IS_SHARE"; /* 是�分摊费用*/
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"; /* 记录创建时间*/
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_DELETE_FLAG = "DELETE_FLAG"; /* 0-未删除,1-已删除*/
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 公司编码*/
public static final String COL_COMPANY_NAME = "COMPANY_NAME"; /* 公司名称*/
public static final String COL_YEAR = "YEAR"; /* 年份*/
public static final String COL_MONTH = "MONTH"; /* 月份*/
public static final String COL_AMOUNT = "AMOUNT"; /* 费用金额*/
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_ITEM = "COST_ITEM"; /* 费用项*/
public static final String COL_ITEM_NAME = "ITEM_NAME"; /* 项目名称*/
public static final String COL_ITEM_CODE = "ITEM_CODE"; /* 项目编号*/
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 COUNT = "HGCW052.count";
......@@ -69,24 +73,26 @@ public class HGCW052 extends DaoEPBase {
public static final String DELETE = "HGCW052.delete";
private Long id = new Long(0);
private String createdBy = " "; /* 记录创建者*/
private String createdName = " "; /* 记录创建�称*/
private String createdTime = " "; /* 记录创建时间*/
private String updatedBy = " "; /* 记录修改者*/
private String updatedName = " "; /* 记录修改�称*/
private String updatedTime = " "; /* 记录修改时间*/
private Boolean deleteFlag; /* 0-未删除,1-已删除*/
private String companyCode = " "; /* 公�编�*/
private String companyName = " "; /* 公��称*/
private String year = " "; /* 年份*/
private String month = " "; /* 月份*/
private BigDecimal amount = new BigDecimal("0"); /* 费用金�*/
private Long hgcw051Id = new Long(0); /* 主表ID*/
private String costType = " "; /* 费用类型*/
private String costItem = " "; /* 费用项*/
private String itemName = " "; /* 项目�称*/
private String itemCode = " "; /* 项目编�*/
private String isShare = " "; /* 是�分摊费用*/
private String createdBy = " "; /* 记录创建者*/
private String createdName = " "; /* 记录创建名称*/
private String createdTime = " "; /* 记录创建时间*/
private String updatedBy = " "; /* 记录修改者*/
private String updatedName = " "; /* 记录修改名称*/
private String updatedTime = " "; /* 记录修改时间*/
private Boolean deleteFlag; /* 0-未删除,1-已删除*/
private String companyCode = " "; /* 公司编码*/
private String companyName = " "; /* 公司名称*/
private String year = " "; /* 年份*/
private String month = " "; /* 月份*/
private BigDecimal amount = new BigDecimal("0"); /* 费用金额*/
private Long hgcw051Id = new Long(0); /* 主表ID*/
private String costType = " "; /* 费用类型*/
private String costItem = " "; /* 费用项*/
private String itemName = " "; /* 项目名称*/
private String itemCode = " "; /* 项目编号*/
private String isShare = " "; /* 是否分摊费用*/
private String account = " "; /* 企业编码*/
private String depCode = " "; /* 部门编码*/
/**
* initialize the metadata.
......@@ -100,78 +106,86 @@ public class HGCW052 extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_BY);
eiColumn.setDescName("记录创建者");
eiColumn.setDescName("记录创建者");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiColumn.setDescName("记录创建�称");
eiColumn.setDescName("记录创建名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiColumn.setDescName("记录创建时间");
eiColumn.setDescName("记录创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiColumn.setDescName("记录修改者");
eiColumn.setDescName("记录修改者");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiColumn.setDescName("记录修改�称");
eiColumn.setDescName("记录修改名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiColumn.setDescName("记录修改时间");
eiColumn.setDescName("记录修改时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DELETE_FLAG);
eiColumn.setDescName("0-未删除,1-已删除");
eiColumn.setDescName("0-未删除,1-已删除");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiColumn.setDescName("公�编�");
eiColumn.setDescName("公司编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_NAME);
eiColumn.setDescName("公��称");
eiColumn.setDescName("公司名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_YEAR);
eiColumn.setDescName("年份");
eiColumn.setDescName("年份");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_MONTH);
eiColumn.setDescName("月份");
eiColumn.setDescName("月份");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_AMOUNT);
eiColumn.setType("N");
eiColumn.setScaleLength(3);
eiColumn.setFieldLength(12);
eiColumn.setDescName("费用金�");
eiColumn.setDescName("费用金额");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_HGCW051_ID);
eiColumn.setDescName("主表ID");
eiColumn.setDescName("主表ID");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COST_TYPE);
eiColumn.setDescName("费用类型");
eiColumn.setDescName("费用类型");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COST_ITEM);
eiColumn.setDescName("费用项");
eiColumn.setDescName("费用项");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_ITEM_NAME);
eiColumn.setDescName("项目�称");
eiColumn.setDescName("项目名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_ITEM_CODE);
eiColumn.setDescName("项目编�");
eiColumn.setDescName("项目编号");
eiMetadata.addMeta(eiColumn);
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);
......@@ -201,7 +215,7 @@ public class HGCW052 extends DaoEPBase {
this.id = id;
}
/**
* get the createdBy - 记录创建者.
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public String getCreatedBy() {
......@@ -209,15 +223,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the createdBy - 记录创建者.
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
* @param createdBy - 记录创建者
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
* get the createdName - 记录创建�称.
* get the createdName - 记录创建名称.
* @return the createdName
*/
public String getCreatedName() {
......@@ -225,15 +239,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the createdName - 记录创建�称.
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建�称
* @param createdName - 记录创建名称
*/
public void setCreatedName(String createdName) {
this.createdName = createdName;
}
/**
* get the createdTime - 记录创建时间.
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public String getCreatedTime() {
......@@ -241,15 +255,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the createdTime - 记录创建时间.
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
* @param createdTime - 记录创建时间
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
* get the updatedBy - 记录修改者.
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public String getUpdatedBy() {
......@@ -257,15 +271,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the updatedBy - 记录修改者.
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
* @param updatedBy - 记录修改者
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
/**
* get the updatedName - 记录修改�称.
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public String getUpdatedName() {
......@@ -273,15 +287,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the updatedName - 记录修改�称.
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改�称
* @param updatedName - 记录修改名称
*/
public void setUpdatedName(String updatedName) {
this.updatedName = updatedName;
}
/**
* get the updatedTime - 记录修改时间.
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public String getUpdatedTime() {
......@@ -289,15 +303,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the updatedTime - 记录修改时间.
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
* @param updatedTime - 记录修改时间
*/
public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime;
}
/**
* get the deleteFlag - 0-未删除,1-已删除.
* get the deleteFlag - 0-未删除,1-已删除.
* @return the deleteFlag
*/
public Boolean getDeleteFlag() {
......@@ -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) {
this.deleteFlag = deleteFlag;
}
/**
* get the companyCode - 公�编�.
* get the companyCode - 公司编码.
* @return the companyCode
*/
public String getCompanyCode() {
......@@ -321,15 +335,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the companyCode - 公�编�.
* set the companyCode - 公司编码.
*
* @param companyCode - 公�编�
* @param companyCode - 公司编码
*/
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
/**
* get the companyName - 公��称.
* get the companyName - 公司名称.
* @return the companyName
*/
public String getCompanyName() {
......@@ -337,15 +351,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the companyName - 公��称.
* set the companyName - 公司名称.
*
* @param companyName - 公��称
* @param companyName - 公司名称
*/
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
/**
* get the year - 年份.
* get the year - 年份.
* @return the year
*/
public String getYear() {
......@@ -353,15 +367,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the year - 年份.
* set the year - 年份.
*
* @param year - 年份
* @param year - 年份
*/
public void setYear(String year) {
this.year = year;
}
/**
* get the month - 月份.
* get the month - 月份.
* @return the month
*/
public String getMonth() {
......@@ -369,15 +383,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the month - 月份.
* set the month - 月份.
*
* @param month - 月份
* @param month - 月份
*/
public void setMonth(String month) {
this.month = month;
}
/**
* get the amount - 费用金�.
* get the amount - 费用金额.
* @return the amount
*/
public BigDecimal getAmount() {
......@@ -385,15 +399,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the amount - 费用金�.
* set the amount - 费用金额.
*
* @param amount - 费用金�
* @param amount - 费用金额
*/
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
/**
* get the hgcw051Id - 主表ID.
* get the hgcw051Id - 主表ID.
* @return the hgcw051Id
*/
public Long getHgcw051Id() {
......@@ -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) {
this.hgcw051Id = hgcw051Id;
}
/**
* get the costType - 费用类型.
* get the costType - 费用类型.
* @return the costType
*/
public String getCostType() {
......@@ -417,15 +431,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the costType - 费用类型.
* set the costType - 费用类型.
*
* @param costType - 费用类型
* @param costType - 费用类型
*/
public void setCostType(String costType) {
this.costType = costType;
}
/**
* get the costItem - 费用项.
* get the costItem - 费用项.
* @return the costItem
*/
public String getCostItem() {
......@@ -433,15 +447,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the costItem - 费用项.
* set the costItem - 费用项.
*
* @param costItem - 费用项
* @param costItem - 费用项
*/
public void setCostItem(String costItem) {
this.costItem = costItem;
}
/**
* get the itemName - 项目�称.
* get the itemName - 项目名称.
* @return the itemName
*/
public String getItemName() {
......@@ -449,15 +463,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the itemName - 项目�称.
* set the itemName - 项目名称.
*
* @param itemName - 项目�称
* @param itemName - 项目名称
*/
public void setItemName(String itemName) {
this.itemName = itemName;
}
/**
* get the itemCode - 项目编�.
* get the itemCode - 项目编号.
* @return the itemCode
*/
public String getItemCode() {
......@@ -465,15 +479,15 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the itemCode - 项目编�.
* set the itemCode - 项目编号.
*
* @param itemCode - 项目编�
* @param itemCode - 项目编号
*/
public void setItemCode(String itemCode) {
this.itemCode = itemCode;
}
/**
* get the isShare - 是�分摊费用.
* get the isShare - 是否分摊费用.
* @return the isShare
*/
public String getIsShare() {
......@@ -481,14 +495,46 @@ public class HGCW052 extends DaoEPBase {
}
/**
* set the isShare - 是�分摊费用.
* set the isShare - 是否分摊费用.
*
* @param isShare - 是�分摊费用
* @param isShare - 是否分摊费用
*/
public void setIsShare(String 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.
*
* @param map - source data map
......@@ -515,6 +561,8 @@ public class HGCW052 extends DaoEPBase {
setItemName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ITEM_NAME)), itemName));
setItemCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ITEM_CODE)), itemCode));
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 {
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_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;
}
......
<?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
Generate time : 2024-06-26 15:09:24
Generate time : 2024-07-01 10:27:27
Version : 1.0
schema : hggp
tableName : HGCW051
......@@ -16,7 +16,9 @@
COMPANY_NAME VARCHAR,
YEAR VARCHAR NOT NULL,
MONTH VARCHAR NOT NULL,
AMOUNT DECIMAL
AMOUNT DECIMAL,
ACCOUNT VARCHAR,
DEP_CODE VARCHAR
-->
<sqlMap namespace="HGCW051">
......@@ -60,6 +62,12 @@
<isNotEmpty prepend=" AND " property="amount">
AMOUNT = #amount#
</isNotEmpty>
<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"
......@@ -129,24 +137,32 @@
<isNotEmpty prepend=" AND " property="amount">
AMOUNT = #amount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="account">
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
-->
<insert id="insert">
INSERT INTO ${hggpSchema}.HGCW051 (ID,
CREATED_BY, <!-- 记录创建者 -->
CREATED_NAME, <!-- 记录创建�称 -->
CREATED_TIME, <!-- 记录创建时间 -->
UPDATED_BY, <!-- 记录修改者 -->
UPDATED_NAME, <!-- 记录修改�称 -->
UPDATED_TIME, <!-- 记录修改时间 -->
DELETE_FLAG, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE, <!-- 公�编� -->
COMPANY_NAME, <!-- 公��称 -->
YEAR, <!-- 年份 -->
MONTH, <!-- 月份 -->
AMOUNT <!-- 费用金� -->
CREATED_BY, <!-- 记录创建者 -->
CREATED_NAME, <!-- 记录创建名称 -->
CREATED_TIME, <!-- 记录创建时间 -->
UPDATED_BY, <!-- 记录修改者 -->
UPDATED_NAME, <!-- 记录修改名称 -->
UPDATED_TIME, <!-- 记录修改时间 -->
DELETE_FLAG, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE, <!-- 公司编码 -->
COMPANY_NAME, <!-- 公司名称 -->
YEAR, <!-- 年份 -->
MONTH, <!-- 月份 -->
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>
<delete id="delete">
......@@ -157,18 +173,20 @@
<update id="update">
UPDATE ${hggpSchema}.HGCW051
SET
CREATED_BY = #createdBy#, <!-- 记录创建者 -->
CREATED_NAME = #createdName#, <!-- 记录创建�称 -->
CREATED_TIME = #createdTime#, <!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 记录修改者 -->
UPDATED_NAME = #updatedName#, <!-- 记录修改�称 -->
UPDATED_TIME = #updatedTime#, <!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#, <!-- 公�编� -->
COMPANY_NAME = #companyName#, <!-- 公��称 -->
YEAR = #year#, <!-- 年份 -->
MONTH = #month#, <!-- 月份 -->
AMOUNT = #amount# <!-- 费用金� -->
CREATED_BY = #createdBy#, <!-- 记录创建者 -->
CREATED_NAME = #createdName#, <!-- 记录创建名称 -->
CREATED_TIME = #createdTime#, <!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 记录修改者 -->
UPDATED_NAME = #updatedName#, <!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#, <!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#, <!-- 公司编码 -->
COMPANY_NAME = #companyName#, <!-- 公司名称 -->
YEAR = #year#, <!-- 年份 -->
MONTH = #month#, <!-- 月份 -->
AMOUNT = #amount#, <!-- 费用金额 -->
ACCOUNT = #account#, <!-- 企业编码 -->
DEP_CODE = #depCode# <!-- 部门编码 -->
WHERE
ID = #id#
</update>
......
<?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
Generate time : 2024-06-26 15:09:39
Generate time : 2024-07-01 10:27:33
Version : 1.0
schema : hggp
tableName : HGCW052
......@@ -22,7 +22,9 @@
COST_ITEM VARCHAR,
ITEM_NAME VARCHAR,
ITEM_CODE VARCHAR,
IS_SHARE VARCHAR
IS_SHARE VARCHAR,
ACCOUNT VARCHAR,
DEP_CODE VARCHAR
-->
<sqlMap namespace="HGCW052">
......@@ -84,32 +86,40 @@
<isNotEmpty prepend=" AND " property="isShare">
IS_SHARE = #isShare#
</isNotEmpty>
<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"
resultClass="com.baosight.hggp.hg.cw.domain.HGCW052">
SELECT
ID as "id",
CREATED_BY as "createdBy", <!-- 记录创建者 -->
CREATED_NAME as "createdName", <!-- 记录创建�称 -->
CREATED_TIME as "createdTime", <!-- 记录创建时间 -->
UPDATED_BY as "updatedBy", <!-- 记录修改者 -->
UPDATED_NAME as "updatedName", <!-- 记录修改�称 -->
UPDATED_TIME as "updatedTime", <!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag", <!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode", <!-- 公�编� -->
COMPANY_NAME as "companyName", <!-- 公��称 -->
YEAR as "year", <!-- 年份 -->
MONTH as "month", <!-- 月份 -->
AMOUNT as "amount", <!-- 费用金� -->
HGCW051_ID as "hgcw051Id", <!-- 主表ID -->
COST_TYPE as "costType", <!-- 费用类型 -->
COST_ITEM as "costItem", <!-- 费用项 -->
ITEM_NAME as "itemName", <!-- 项目�称 -->
ITEM_CODE as "itemCode", <!-- 项目编� -->
IS_SHARE as "isShare" <!-- 是�分摊费用 -->
CREATED_BY as "createdBy", <!-- 记录创建者 -->
CREATED_NAME as "createdName", <!-- 记录创建名称 -->
CREATED_TIME as "createdTime", <!-- 记录创建时间 -->
UPDATED_BY as "updatedBy", <!-- 记录修改者 -->
UPDATED_NAME as "updatedName", <!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime", <!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag", <!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode", <!-- 公司编码 -->
COMPANY_NAME as "companyName", <!-- 公司名称 -->
YEAR as "year", <!-- 年份 -->
MONTH as "month", <!-- 月份 -->
AMOUNT as "amount", <!-- 费用金额 -->
HGCW051_ID as "hgcw051Id", <!-- 主表ID -->
COST_TYPE as "costType", <!-- 费用类型 -->
COST_ITEM as "costItem", <!-- 费用项 -->
ITEM_NAME as "itemName", <!-- 项目名称 -->
ITEM_CODE as "itemCode", <!-- 项目编号 -->
IS_SHARE as "isShare", <!-- 是否分摊费用 -->
ACCOUNT as "account", <!-- 企业编码 -->
DEP_CODE as "depCode" <!-- 部门编码 -->
FROM ${hggpSchema}.HGCW052 WHERE 1=1
<include refid="condition"/>
<include refid="condition" />
<dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy">
$orderBy$
......@@ -140,7 +150,7 @@
<select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hggpSchema}.HGCW052 WHERE 1=1
<include refid="condition"/>
<include refid="condition" />
</select>
<!--
......@@ -201,61 +211,68 @@
<isNotEmpty prepend=" AND " property="isShare">
IS_SHARE = #isShare#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="account">
ACCOUNT = #account#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
-->
<insert id="insert">
INSERT INTO ${hggpSchema}.HGCW052 (ID,
CREATED_BY, <!-- 记录创建者 -->
CREATED_NAME, <!-- 记录创建�称 -->
CREATED_TIME, <!-- 记录创建时间 -->
UPDATED_BY, <!-- 记录修改者 -->
UPDATED_NAME, <!-- 记录修改�称 -->
UPDATED_TIME, <!-- 记录修改时间 -->
DELETE_FLAG, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE, <!-- 公�编� -->
COMPANY_NAME, <!-- 公��称 -->
YEAR, <!-- 年份 -->
MONTH, <!-- 月份 -->
AMOUNT, <!-- 费用金� -->
HGCW051_ID, <!-- 主表ID -->
COST_TYPE, <!-- 费用类型 -->
COST_ITEM, <!-- 费用项 -->
ITEM_NAME, <!-- 项目�称 -->
ITEM_CODE, <!-- 项目编� -->
IS_SHARE <!-- 是�分摊费用 -->
CREATED_BY, <!-- 记录创建者 -->
CREATED_NAME, <!-- 记录创建名称 -->
CREATED_TIME, <!-- 记录创建时间 -->
UPDATED_BY, <!-- 记录修改者 -->
UPDATED_NAME, <!-- 记录修改名称 -->
UPDATED_TIME, <!-- 记录修改时间 -->
DELETE_FLAG, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE, <!-- 公司编码 -->
COMPANY_NAME, <!-- 公司名称 -->
YEAR, <!-- 年份 -->
MONTH, <!-- 月份 -->
AMOUNT, <!-- 费用金额 -->
HGCW051_ID, <!-- 主表ID -->
COST_TYPE, <!-- 费用类型 -->
COST_ITEM, <!-- 费用项 -->
ITEM_NAME, <!-- 项目名称 -->
ITEM_CODE, <!-- 项目编号 -->
IS_SHARE, <!-- 是否分摊费用 -->
ACCOUNT, <!-- 企业编码 -->
DEP_CODE <!-- 部门编码 -->
)
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#,
#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>
<delete id="delete">
DELETE
FROM ${hggpSchema}.HGCW052
WHERE ID = #id#
DELETE FROM ${hggpSchema}.HGCW052 WHERE
ID = #id#
</delete>
<update id="update">
UPDATE ${hggpSchema}.HGCW052
SET
CREATED_BY = #createdBy#, <!-- 记录创建者 -->
CREATED_NAME = #createdName#, <!-- 记录创建�称 -->
CREATED_TIME = #createdTime#, <!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 记录修改者 -->
UPDATED_NAME = #updatedName#, <!-- 记录修改�称 -->
UPDATED_TIME = #updatedTime#, <!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#, <!-- 公�编� -->
COMPANY_NAME = #companyName#, <!-- 公��称 -->
YEAR = #year#, <!-- 年份 -->
MONTH = #month#, <!-- 月份 -->
AMOUNT = #amount#, <!-- 费用金� -->
HGCW051_ID = #hgcw051Id#, <!-- 主表ID -->
COST_TYPE = #costType#, <!-- 费用类型 -->
COST_ITEM = #costItem#, <!-- 费用项 -->
ITEM_NAME = #itemName#, <!-- 项目�称 -->
ITEM_CODE = #itemCode#, <!-- 项目编� -->
IS_SHARE = #isShare# <!-- 是�分摊费用 -->
CREATED_BY = #createdBy#, <!-- 记录创建者 -->
CREATED_NAME = #createdName#, <!-- 记录创建名称 -->
CREATED_TIME = #createdTime#, <!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 记录修改者 -->
UPDATED_NAME = #updatedName#, <!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#, <!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#, <!-- 公司编码 -->
COMPANY_NAME = #companyName#, <!-- 公司名称 -->
YEAR = #year#, <!-- 年份 -->
MONTH = #month#, <!-- 月份 -->
AMOUNT = #amount#, <!-- 费用金额 -->
HGCW051_ID = #hgcw051Id#, <!-- 主表ID -->
COST_TYPE = #costType#, <!-- 费用类型 -->
COST_ITEM = #costItem#, <!-- 费用项 -->
ITEM_NAME = #itemName#, <!-- 项目名称 -->
ITEM_CODE = #itemCode#, <!-- 项目编号 -->
IS_SHARE = #isShare#, <!-- 是否分摊费用 -->
ACCOUNT = #account#, <!-- 企业编码 -->
DEP_CODE = #depCode# <!-- 部门编码 -->
WHERE
ID = #id#
</update>
......
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