Commit 1e8f8ce7 by 宋祥

Merge remote-tracking branch 'origin/dev' into dev

parents 0b0b26c3 dbaedf35
......@@ -47,6 +47,7 @@ public class HPCG003A extends DaoEPBase {
public static final String FIELD_FACTORY_CODE = "factoryCode"; /* 厂区编码*/
public static final String FIELD_FACTORY_NAME = "factoryName"; /* 厂区名称*/
public static final String FIELD_PARENT_ID = "parentId"; /* 父级ID*/
public static final String FIELD_CUST_CODE = "custCode"; /* 供应商编码*/
public static final String COL_ID = "ID"; /* ID*/
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 公司编码*/
......@@ -121,6 +122,7 @@ public class HPCG003A extends DaoEPBase {
private String material = " "; /* 材质*/
private BigDecimal coefficient = new BigDecimal(0.000); /* 系数*/
private String unit = " "; /* 单位*/
private String custCode = " "; /* 供应商编码*/
/**
* initialize the metadata.
......@@ -284,6 +286,9 @@ public class HPCG003A extends DaoEPBase {
eiColumn.setDescName("单位");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CUST_CODE);
eiColumn.setDescName("供应商编码");
eiMetadata.addMeta(eiColumn);
}
/**
......@@ -807,6 +812,14 @@ public class HPCG003A extends DaoEPBase {
this.unit = unit;
}
public String getCustCode() {
return custCode;
}
public void setCustCode(String custCode) {
this.custCode = custCode;
}
/**
* get the value from Map.
*
......@@ -848,6 +861,7 @@ public class HPCG003A extends DaoEPBase {
setMaterial(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_MATERIAL)), material));
setCoefficient(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_COEFFICIENT)), coefficient));
setUnit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UNIT)), unit));
setCustCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CUST_CODE)), custCode));
}
/**
......@@ -890,6 +904,7 @@ public class HPCG003A extends DaoEPBase {
map.put(FIELD_MATERIAL, StringUtils.toString(material, eiMetadata.getMeta(FIELD_MATERIAL)));
map.put(FIELD_COEFFICIENT, StringUtils.toString(coefficient, eiMetadata.getMeta(FIELD_COEFFICIENT)));
map.put(FIELD_UNIT, StringUtils.toString(unit, eiMetadata.getMeta(FIELD_UNIT)));
map.put(FIELD_CUST_CODE, StringUtils.toString(custCode, eiMetadata.getMeta(FIELD_CUST_CODE)));
return map;
}
......
......@@ -180,45 +180,34 @@ public class ServiceHPCG002A extends ServiceBase {
DaoUtils.update(HPCG002.CHECK, hpcg002.toMap());
//全部提交后,生成采购订单
List<Map<Object,Object>> list = outBlock.getRows();
Map<Object,List<Map>> listMap = list.stream().collect(Collectors.groupingBy(map -> map.get(HPCG002A.FIELD_CUST_CODE)));
//Map<Object,List<Map>> listMap = list.stream().collect(Collectors.groupingBy(map -> map.get(HPCG002A.FIELD_CUST_CODE)));
//获取采购计划
List<HPCG002> hpcg002s = this.dao.query(HPCG002.QUERY,new HashMap<String,Object>(){{
put(HPCG002.FIELD_ID,hpcg002.getId());
}});
//生成采购订单详情
for (Object str: listMap.keySet()) {
HPCG003 hpcg003 = new HPCG003();
hpcg003.toMap();
hpcg003.setProOrderDate(StringUtil.removeHorizontalLine(DateUtils.date()));
hpcg003.setCustCode(str.toString());
//hpcg003.setCustCode(str.toString());
hpcg003.setInventType(inventType);
hpcg003.setProPlanNo(hpcg002s.get(0).getProPlanNo());
//生成采购订单单号
hpcg003.setProOrderNo(SequenceGenerator.getNextSequence(HPConstant.SequenceId.PRO_ORDER_NO));
//添加采购订单
DaoUtils.insert(HPCG003.INSERT,hpcg003);
List<HPCG003> hpcg003s = this.dao.query(HPCG003.QUERY,new HashMap<String,Object>(){{
put(HPCG003.FIELD_INVENT_TYPE,hpcg003.getInventType());
put(HPCG003.FIELD_PRO_ORDER_DATE,hpcg003.getProOrderDate());
put(HPCG003.FIELD_PRO_ORDER_NO,hpcg003.getProOrderNo());
put(HPCG003.FIELD_PRO_PLAN_NO,hpcg003.getProPlanNo());
put(HPCG003.COL_CUST_CODE,hpcg003.getCustCode());
}});
List<Map> hpcg002aList = listMap.get(str);
for (Map value : hpcg002aList) {
//生成采购订单详情
for (Map value : list) {
HPCG002A hpcg002a = new HPCG002A();
hpcg002a.fromMap(value);
//添加采购订单详情
HPCG003A hpcg003a = new HPCG003A();
hpcg003a.fromMap(value);
hpcg003a.setParentId(hpcg003s.get(0).getId());
hpcg003a.setParentId(hpcg003.getId());
hpcg003a.setId(0L);
hpcg003a.setProAmount(hpcg002a.getPlanAmount());
hpcg003a.setProWeight(hpcg002a.getPlanWeight());
DaoUtils.insert(HPCG003A.INSERT, hpcg003a);
}
}
}else if(num!=outBlock.getRowCount()&&hpcg002.getProPlanStatus()!=1){
//部分交更新状态
hpcg002.setProPlanStatus(1);
......
......@@ -47,7 +47,7 @@ public class ServiceHPCG003A extends ServiceBase {
queryMap.put("inventTypes", DEFAULT_INVENT_CODE);
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.INVENT_NAME_BLOCK_ID), queryMap);
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.SPEC_NAME_BLOCK_ID), queryMap);
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.INVENT_ALL_BLOCK_ID), queryMap, false);
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.INVENT_ALL_BLOCK_ID,DdynamicEnum.SUPPLIER_RECORD_BLOCK_ID), queryMap, false);
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPCG003A().eiMetadata);
} catch (PlatException e) {
LogUtils.setDetailMsg(inInfo, e, "初始化失败");
......
......@@ -88,7 +88,7 @@
$orderBy$
</isNotEmpty>
<isEmpty property="orderBy">
PRO_PLAN_DATE,CREATED_TIME desc
PRO_PLAN_DATE desc, CREATED_TIME desc
</isEmpty>
</dynamic>
......
......@@ -189,6 +189,9 @@
INVENT_TYPE <!-- 存货类型 -->
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #proOrderDate#, #proOrderNo#, #proPlanNo#, #custCode#, #inventType#)
<selectKey resultClass="java.lang.Long" keyProperty="id" >
SELECT MAX(ID) AS "id" FROM ${hpjxSchema}.T_HPCG003
</selectKey>
</insert>
<delete id="delete">
......
......@@ -115,6 +115,9 @@
<isNotEmpty prepend=" AND " property="parentId">
A.PARENT_ID = #parentId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="custCode">
A.CUST_CODE = #custCode#
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap"
......@@ -151,7 +154,8 @@
A.REMARK as "remark", <!-- 备注 -->
A.FACTORY_CODE as "factoryCode", <!-- 厂区编码 -->
A.FACTORY_NAME as "factoryName", <!-- 厂区名称 -->
A.PARENT_ID as "parentId" <!-- 父级ID -->
A.PARENT_ID as "parentId", <!-- 父级ID -->
A.CUST_CODE as "custCode"
FROM ${hpjxSchema}.T_HPCG003A A
LEFT JOIN ${hpjxSchema}.T_HPPZ006 B ON B.ID = A.INVENT_RECORD_ID
WHERE 1=1
......@@ -277,9 +281,13 @@
REMARK, <!-- 备注 -->
FACTORY_CODE, <!-- 厂区编码 -->
FACTORY_NAME, <!-- 厂区名称 -->
PARENT_ID <!-- 父级ID -->
PARENT_ID, <!-- 父级ID -->
CUST_CODE
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #whCode#, #whName#, #inventType#, #inventCode#, #inventName#, #inventRecordId#, #planAmount#, #planWeight#, #proAmount#, #proWeight#, #proMoney#, #remark#, #factoryCode#, #factoryName#, #parentId#)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#,
#updatedTime#, #deleteFlag#, #whCode#, #whName#, #inventType#, #inventCode#, #inventName#, #inventRecordId#,
#planAmount#, #planWeight#, #proAmount#, #proWeight#, #proMoney#, #remark#, #factoryCode#, #factoryName#,
#parentId#, #custCode#)
</insert>
<delete id="delete">
......@@ -313,7 +321,8 @@
REMARK = #remark#, <!-- 备注 -->
FACTORY_CODE = #factoryCode#, <!-- 厂区编码 -->
FACTORY_NAME = #factoryName#, <!-- 厂区名称 -->
PARENT_ID = #parentId# <!-- 父级ID -->
PARENT_ID = #parentId#, <!-- 父级ID -->
CUST_CODE = #custCode#
WHERE
ID = #id#
</update>
......
/**
* Generate time : 2024-10-17 8:42:19
* Version : 1.0
*/
package com.baosight.hpjx.hp.pz.domain;
import com.baosight.iplat4j.core.data.DaoEPBase;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.util.NumberUtils;
import com.baosight.iplat4j.core.util.StringUtils;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
/**
* Tgzpz01
*
*/
public class HPPZ022 extends DaoEPBase {
public static final String QUERY = "HPPZ022.query";
public static final String COUNT = "HPPZ022.count";
public static final String INSERT = "HPPZ022.insert";
public static final String UPDATE = "HPPZ022.update";
public static final String DELETE = "HPPZ022.delete";
public static final String UPDATE_BILL_STATUS = "HPPZ022.updateBillStatus";
private String billMainId = " "; /* 抛账单据主表ID*/
private String billMainNo = " "; /* 抛账单据主表编码*/
private String inAccount = " "; /* 账套*/
private String billDate ; /* 单据日期*/
private String periodCode = " "; /* 会计期*/
private String billNo = " "; /* 标财单据号*/
private String billType = " "; /* 标财单据类型*/
private String sysId = " "; /* 系统别*/
private String sourceBillType = " "; /* 业务类型*/
private String sourceBillId = " "; /* 业务单据ID*/
private String sourceBillNo = " "; /* 业务单据号*/
private BigDecimal totalAmount = new BigDecimal("0"); /* 单据金额*/
private String billStatus = " "; /* 抛账状态*/
private String functionalCurrency = " "; /* 本位币代码*/
private BigDecimal exchangeRate = new BigDecimal("0"); /* 汇率*/
private String exchangeType = " "; /* 汇率类型*/
private String redFlag = " "; /* 红冲/作废标记*/
private String redBillId = " "; /* 被红冲单据ID*/
private String redBillNo = " "; /* 被红冲单据号*/
private String inputCode = " "; /* 制单人编号*/
private String inputName = " "; /* 制单人名称*/
private String voucherCode = " "; /* 凭证号*/
private String voucherDate ; /* 凭证日期*/
private String voucherSummary = " "; /* 凭证摘要*/
private Integer voucherAffixNum = 0; /* 附件张数*/
private String msgReturn = " "; /* 标财反馈*/
private String isDeleted = " "; /* 删除标记*/
private String remark = " "; /* 备注*/
private String createdUserId = " "; /* 创建人ID*/
private String createdUserName = " "; /* 创建人名称*/
private String createdTime = " "; /* 创建时间*/
private String modifiedUserId = " "; /* 更新人ID*/
private String modifiedUserName = " "; /* 更新人名称*/
private String modifiedTime = " "; /* 更新时间*/
private String extCol1 = " ";
private String extCol2 = " ";
private String extCol3 = " ";
private String extCol4 = " ";
private String extCol5 = " ";
private String voucherDateStar;
private String voucherDateEnd;
/**
* initialize the metadata
*/
public void initMetaData() {
EiColumn eiColumn;
eiColumn = new EiColumn("billMainId");
eiColumn.setFieldLength(64);
eiColumn.setDescName("抛账单据主表ID");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("billMainNo");
eiColumn.setFieldLength(32);
eiColumn.setDescName("抛账单据主表编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("inAccount");
eiColumn.setFieldLength(8);
eiColumn.setDescName("账套");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("billDate");
eiColumn.setDescName("单据日期");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("periodCode");
eiColumn.setFieldLength(20);
eiColumn.setDescName("会计期");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("billNo");
eiColumn.setFieldLength(64);
eiColumn.setDescName("标财单据号");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("billType");
eiColumn.setFieldLength(10);
eiColumn.setDescName("标财单据类型");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("sysId");
eiColumn.setFieldLength(10);
eiColumn.setDescName("系统别");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("sourceBillType");
eiColumn.setFieldLength(30);
eiColumn.setDescName("业务类型");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("sourceBillId");
eiColumn.setFieldLength(64);
eiColumn.setDescName("业务单据ID");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("sourceBillNo");
eiColumn.setFieldLength(64);
eiColumn.setDescName("业务单据号");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("totalAmount");
eiColumn.setType("N");
eiColumn.setScaleLength(2);
eiColumn.setFieldLength(20);
eiColumn.setDescName("单据金额");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("billStatus");
eiColumn.setFieldLength(10);
eiColumn.setDescName("抛账状态");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("functionalCurrency");
eiColumn.setFieldLength(3);
eiColumn.setDescName("本位币代码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("exchangeRate");
eiColumn.setType("N");
eiColumn.setScaleLength(10);
eiColumn.setFieldLength(20);
eiColumn.setDescName("汇率");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("exchangeType");
eiColumn.setFieldLength(4);
eiColumn.setDescName("汇率类型");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("redFlag");
eiColumn.setFieldLength(4);
eiColumn.setDescName("红冲/作废标记");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("redBillId");
eiColumn.setFieldLength(64);
eiColumn.setDescName("被红冲单据ID");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("redBillNo");
eiColumn.setFieldLength(32);
eiColumn.setDescName("被红冲单据号");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("inputCode");
eiColumn.setFieldLength(50);
eiColumn.setDescName("制单人编号");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("inputName");
eiColumn.setFieldLength(20);
eiColumn.setDescName("制单人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("voucherCode");
eiColumn.setFieldLength(20);
eiColumn.setDescName("凭证号");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("voucherDate");
eiColumn.setDescName("凭证日期");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("voucherSummary");
eiColumn.setFieldLength(100);
eiColumn.setDescName("凭证摘要");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("voucherAffixNum");
eiColumn.setType("N");
eiColumn.setScaleLength(0);
eiColumn.setFieldLength(3);
eiColumn.setDescName("附件张数");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("msgReturn");
eiColumn.setFieldLength(256);
eiColumn.setDescName("标财反馈");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("isDeleted");
eiColumn.setFieldLength(1);
eiColumn.setDescName("删除标记");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("remark");
eiColumn.setFieldLength(1000);
eiColumn.setDescName("备注");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("createdUserId");
eiColumn.setFieldLength(64);
eiColumn.setDescName("创建人ID");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("createdUserName");
eiColumn.setFieldLength(32);
eiColumn.setDescName("创建人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("createdTime");
eiColumn.setFieldLength(50);
eiColumn.setDescName("创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("modifiedUserId");
eiColumn.setFieldLength(64);
eiColumn.setDescName("更新人ID");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("modifiedUserName");
eiColumn.setFieldLength(32);
eiColumn.setDescName("更新人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("modifiedTime");
eiColumn.setFieldLength(50);
eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol1");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol2");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol3");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol4");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol5");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
}
/**
* the constructor
*/
public HPPZ022() {
initMetaData();
}
public String getVoucherDateStar() {
return voucherDateStar;
}
public void setVoucherDateStar(String voucherDateStar) {
this.voucherDateStar = voucherDateStar;
}
public String getVoucherDateEnd() {
return voucherDateEnd;
}
public void setVoucherDateEnd(String voucherDateEnd) {
this.voucherDateEnd = voucherDateEnd;
}
/**
* get the billMainId - 抛账单据主表ID
* @return the billMainId
*/
public String getBillMainId() {
return this.billMainId;
}
/**
* set the billMainId - 抛账单据主表ID
*/
public void setBillMainId(String billMainId) {
this.billMainId = billMainId;
}
/**
* get the billMainNo - 抛账单据主表编码
* @return the billMainNo
*/
public String getBillMainNo() {
return this.billMainNo;
}
/**
* set the billMainNo - 抛账单据主表编码
*/
public void setBillMainNo(String billMainNo) {
this.billMainNo = billMainNo;
}
/**
* get the inAccount - 账套
* @return the inAccount
*/
public String getInAccount() {
return this.inAccount;
}
/**
* set the inAccount - 账套
*/
public void setInAccount(String inAccount) {
this.inAccount = inAccount;
}
/**
* get the billDate - 单据日期
* @return the billDate
*/
public String getBillDate() {
return this.billDate;
}
/**
* set the billDate - 单据日期
*/
public void setBillDate(String billDate) {
this.billDate = billDate;
}
/**
* get the periodCode - 会计期
* @return the periodCode
*/
public String getPeriodCode() {
return this.periodCode;
}
/**
* set the periodCode - 会计期
*/
public void setPeriodCode(String periodCode) {
this.periodCode = periodCode;
}
/**
* get the billNo - 标财单据号
* @return the billNo
*/
public String getBillNo() {
return this.billNo;
}
/**
* set the billNo - 标财单据号
*/
public void setBillNo(String billNo) {
this.billNo = billNo;
}
/**
* get the billType - 标财单据类型
* @return the billType
*/
public String getBillType() {
return this.billType;
}
/**
* set the billType - 标财单据类型
*/
public void setBillType(String billType) {
this.billType = billType;
}
/**
* get the sysId - 系统别
* @return the sysId
*/
public String getSysId() {
return this.sysId;
}
/**
* set the sysId - 系统别
*/
public void setSysId(String sysId) {
this.sysId = sysId;
}
/**
* get the sourceBillType - 业务类型
* @return the sourceBillType
*/
public String getSourceBillType() {
return this.sourceBillType;
}
/**
* set the sourceBillType - 业务类型
*/
public void setSourceBillType(String sourceBillType) {
this.sourceBillType = sourceBillType;
}
/**
* get the sourceBillId - 业务单据ID
* @return the sourceBillId
*/
public String getSourceBillId() {
return this.sourceBillId;
}
/**
* set the sourceBillId - 业务单据ID
*/
public void setSourceBillId(String sourceBillId) {
this.sourceBillId = sourceBillId;
}
/**
* get the sourceBillNo - 业务单据号
* @return the sourceBillNo
*/
public String getSourceBillNo() {
return this.sourceBillNo;
}
/**
* set the sourceBillNo - 业务单据号
*/
public void setSourceBillNo(String sourceBillNo) {
this.sourceBillNo = sourceBillNo;
}
/**
* get the totalAmount - 单据金额
* @return the totalAmount
*/
public BigDecimal getTotalAmount() {
return this.totalAmount;
}
/**
* set the totalAmount - 单据金额
*/
public void setTotalAmount(BigDecimal totalAmount) {
this.totalAmount = totalAmount;
}
/**
* get the billStatus - 抛账状态
* @return the billStatus
*/
public String getBillStatus() {
return this.billStatus;
}
/**
* set the billStatus - 抛账状态
*/
public void setBillStatus(String billStatus) {
this.billStatus = billStatus;
}
/**
* get the functionalCurrency - 本位币代码
* @return the functionalCurrency
*/
public String getFunctionalCurrency() {
return this.functionalCurrency;
}
/**
* set the functionalCurrency - 本位币代码
*/
public void setFunctionalCurrency(String functionalCurrency) {
this.functionalCurrency = functionalCurrency;
}
/**
* get the exchangeRate - 汇率
* @return the exchangeRate
*/
public BigDecimal getExchangeRate() {
return this.exchangeRate;
}
/**
* set the exchangeRate - 汇率
*/
public void setExchangeRate(BigDecimal exchangeRate) {
this.exchangeRate = exchangeRate;
}
/**
* get the exchangeType - 汇率类型
* @return the exchangeType
*/
public String getExchangeType() {
return this.exchangeType;
}
/**
* set the exchangeType - 汇率类型
*/
public void setExchangeType(String exchangeType) {
this.exchangeType = exchangeType;
}
/**
* get the redFlag - 红冲/作废标记
* @return the redFlag
*/
public String getRedFlag() {
return this.redFlag;
}
/**
* set the redFlag - 红冲/作废标记
*/
public void setRedFlag(String redFlag) {
this.redFlag = redFlag;
}
/**
* get the redBillId - 被红冲单据ID
* @return the redBillId
*/
public String getRedBillId() {
return this.redBillId;
}
/**
* set the redBillId - 被红冲单据ID
*/
public void setRedBillId(String redBillId) {
this.redBillId = redBillId;
}
/**
* get the redBillNo - 被红冲单据号
* @return the redBillNo
*/
public String getRedBillNo() {
return this.redBillNo;
}
/**
* set the redBillNo - 被红冲单据号
*/
public void setRedBillNo(String redBillNo) {
this.redBillNo = redBillNo;
}
/**
* get the inputCode - 制单人编号
* @return the inputCode
*/
public String getInputCode() {
return this.inputCode;
}
/**
* set the inputCode - 制单人编号
*/
public void setInputCode(String inputCode) {
this.inputCode = inputCode;
}
/**
* get the inputName - 制单人名称
* @return the inputName
*/
public String getInputName() {
return this.inputName;
}
/**
* set the inputName - 制单人名称
*/
public void setInputName(String inputName) {
this.inputName = inputName;
}
/**
* get the voucherCode - 凭证号
* @return the voucherCode
*/
public String getVoucherCode() {
return this.voucherCode;
}
/**
* set the voucherCode - 凭证号
*/
public void setVoucherCode(String voucherCode) {
this.voucherCode = voucherCode;
}
/**
* get the voucherDate - 凭证日期
* @return the voucherDate
*/
public String getVoucherDate() {
return this.voucherDate;
}
/**
* set the voucherDate - 凭证日期
*/
public void setVoucherDate(String voucherDate) {
this.voucherDate = voucherDate;
}
/**
* get the voucherSummary - 凭证摘要
* @return the voucherSummary
*/
public String getVoucherSummary() {
return this.voucherSummary;
}
/**
* set the voucherSummary - 凭证摘要
*/
public void setVoucherSummary(String voucherSummary) {
this.voucherSummary = voucherSummary;
}
/**
* get the voucherAffixNum - 附件张数
* @return the voucherAffixNum
*/
public Integer getVoucherAffixNum() {
return this.voucherAffixNum;
}
/**
* set the voucherAffixNum - 附件张数
*/
public void setVoucherAffixNum(Integer voucherAffixNum) {
this.voucherAffixNum = voucherAffixNum;
}
/**
* get the msgReturn - 标财反馈
* @return the msgReturn
*/
public String getMsgReturn() {
return this.msgReturn;
}
/**
* set the msgReturn - 标财反馈
*/
public void setMsgReturn(String msgReturn) {
this.msgReturn = msgReturn;
}
/**
* get the isDeleted - 删除标记
* @return the isDeleted
*/
public String getIsDeleted() {
return this.isDeleted;
}
/**
* set the isDeleted - 删除标记
*/
public void setIsDeleted(String isDeleted) {
this.isDeleted = isDeleted;
}
/**
* get the remark - 备注
* @return the remark
*/
public String getRemark() {
return this.remark;
}
/**
* set the remark - 备注
*/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* get the createdUserId - 创建人ID
* @return the createdUserId
*/
public String getCreatedUserId() {
return this.createdUserId;
}
/**
* set the createdUserId - 创建人ID
*/
public void setCreatedUserId(String createdUserId) {
this.createdUserId = createdUserId;
}
/**
* get the createdUserName - 创建人名称
* @return the createdUserName
*/
public String getCreatedUserName() {
return this.createdUserName;
}
/**
* set the createdUserName - 创建人名称
*/
public void setCreatedUserName(String createdUserName) {
this.createdUserName = createdUserName;
}
/**
* get the createdTime - 创建时间
* @return the createdTime
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
* set the createdTime - 创建时间
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
* get the modifiedUserId - 更新人ID
* @return the modifiedUserId
*/
public String getModifiedUserId() {
return this.modifiedUserId;
}
/**
* set the modifiedUserId - 更新人ID
*/
public void setModifiedUserId(String modifiedUserId) {
this.modifiedUserId = modifiedUserId;
}
/**
* get the modifiedUserName - 更新人名称
* @return the modifiedUserName
*/
public String getModifiedUserName() {
return this.modifiedUserName;
}
/**
* set the modifiedUserName - 更新人名称
*/
public void setModifiedUserName(String modifiedUserName) {
this.modifiedUserName = modifiedUserName;
}
/**
* get the modifiedTime - 更新时间
* @return the modifiedTime
*/
public String getModifiedTime() {
return this.modifiedTime;
}
/**
* set the modifiedTime - 更新时间
*/
public void setModifiedTime(String modifiedTime) {
this.modifiedTime = modifiedTime;
}
/**
* get the extCol1
* @return the extCol1
*/
public String getExtCol1() {
return this.extCol1;
}
/**
* set the extCol1
*/
public void setExtCol1(String extCol1) {
this.extCol1 = extCol1;
}
/**
* get the extCol2
* @return the extCol2
*/
public String getExtCol2() {
return this.extCol2;
}
/**
* set the extCol2
*/
public void setExtCol2(String extCol2) {
this.extCol2 = extCol2;
}
/**
* get the extCol3
* @return the extCol3
*/
public String getExtCol3() {
return this.extCol3;
}
/**
* set the extCol3
*/
public void setExtCol3(String extCol3) {
this.extCol3 = extCol3;
}
/**
* get the extCol4
* @return the extCol4
*/
public String getExtCol4() {
return this.extCol4;
}
/**
* set the extCol4
*/
public void setExtCol4(String extCol4) {
this.extCol4 = extCol4;
}
/**
* get the extCol5
* @return the extCol5
*/
public String getExtCol5() {
return this.extCol5;
}
/**
* set the extCol5
*/
public void setExtCol5(String extCol5) {
this.extCol5 = extCol5;
}
/**
* get the value from Map
*/
public void fromMap(Map map) {
setBillMainId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("billMainId")), billMainId));
setBillMainNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("billMainNo")), billMainNo));
setInAccount(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inAccount")), inAccount));
setBillDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("billDate")), billDate));
setPeriodCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("periodCode")), periodCode));
setBillNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("billNo")), billNo));
setBillType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("billType")), billType));
setSysId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("sysId")), sysId));
setSourceBillType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("sourceBillType")), sourceBillType));
setSourceBillId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("sourceBillId")), sourceBillId));
setSourceBillNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("sourceBillNo")), sourceBillNo));
setTotalAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get("totalAmount")), totalAmount));
setBillStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("billStatus")), billStatus));
setFunctionalCurrency(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("functionalCurrency")), functionalCurrency));
setExchangeRate(NumberUtils.toBigDecimal(StringUtils.toString(map.get("exchangeRate")), exchangeRate));
setExchangeType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("exchangeType")), exchangeType));
setRedFlag(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("redFlag")), redFlag));
setRedBillId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("redBillId")), redBillId));
setRedBillNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("redBillNo")), redBillNo));
setInputCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inputCode")), inputCode));
setInputName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inputName")), inputName));
setVoucherCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("voucherCode")), voucherCode));
setVoucherDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("voucherDate")), voucherDate));
setVoucherSummary(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("voucherSummary")), voucherSummary));
setVoucherAffixNum(NumberUtils.toInteger(StringUtils.toString(map.get("voucherAffixNum")), voucherAffixNum));
setMsgReturn(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("msgReturn")), msgReturn));
setIsDeleted(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("isDeleted")), isDeleted));
setRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("remark")), remark));
setCreatedUserId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdUserId")), createdUserId));
setCreatedUserName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdUserName")), createdUserName));
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdTime")), createdTime));
setModifiedUserId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("modifiedUserId")), modifiedUserId));
setModifiedUserName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("modifiedUserName")), modifiedUserName));
setModifiedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("modifiedTime")), modifiedTime));
setExtCol1(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol1")), extCol1));
setExtCol2(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol2")), extCol2));
setExtCol3(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol3")), extCol3));
setExtCol4(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol4")), extCol4));
setExtCol5(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol5")), extCol5));
}
/**
* set the value to Map
*/
public Map toMap() {
Map map = new HashMap();
map.put("billMainId",StringUtils.toString(billMainId, eiMetadata.getMeta("billMainId")));
map.put("billMainNo",StringUtils.toString(billMainNo, eiMetadata.getMeta("billMainNo")));
map.put("inAccount",StringUtils.toString(inAccount, eiMetadata.getMeta("inAccount")));
map.put("billDate",StringUtils.toString(billDate, eiMetadata.getMeta("billDate")));
map.put("periodCode",StringUtils.toString(periodCode, eiMetadata.getMeta("periodCode")));
map.put("billNo",StringUtils.toString(billNo, eiMetadata.getMeta("billNo")));
map.put("billType",StringUtils.toString(billType, eiMetadata.getMeta("billType")));
map.put("sysId",StringUtils.toString(sysId, eiMetadata.getMeta("sysId")));
map.put("sourceBillType",StringUtils.toString(sourceBillType, eiMetadata.getMeta("sourceBillType")));
map.put("sourceBillId",StringUtils.toString(sourceBillId, eiMetadata.getMeta("sourceBillId")));
map.put("sourceBillNo",StringUtils.toString(sourceBillNo, eiMetadata.getMeta("sourceBillNo")));
map.put("totalAmount",StringUtils.toString(totalAmount, eiMetadata.getMeta("totalAmount")));
map.put("billStatus",StringUtils.toString(billStatus, eiMetadata.getMeta("billStatus")));
map.put("functionalCurrency",StringUtils.toString(functionalCurrency, eiMetadata.getMeta("functionalCurrency")));
map.put("exchangeRate",StringUtils.toString(exchangeRate, eiMetadata.getMeta("exchangeRate")));
map.put("exchangeType",StringUtils.toString(exchangeType, eiMetadata.getMeta("exchangeType")));
map.put("redFlag",StringUtils.toString(redFlag, eiMetadata.getMeta("redFlag")));
map.put("redBillId",StringUtils.toString(redBillId, eiMetadata.getMeta("redBillId")));
map.put("redBillNo",StringUtils.toString(redBillNo, eiMetadata.getMeta("redBillNo")));
map.put("inputCode",StringUtils.toString(inputCode, eiMetadata.getMeta("inputCode")));
map.put("inputName",StringUtils.toString(inputName, eiMetadata.getMeta("inputName")));
map.put("voucherCode",StringUtils.toString(voucherCode, eiMetadata.getMeta("voucherCode")));
map.put("voucherDate",StringUtils.toString(voucherDate, eiMetadata.getMeta("voucherDate")));
map.put("voucherSummary",StringUtils.toString(voucherSummary, eiMetadata.getMeta("voucherSummary")));
map.put("voucherAffixNum",StringUtils.toString(voucherAffixNum, eiMetadata.getMeta("voucherAffixNum")));
map.put("msgReturn",StringUtils.toString(msgReturn, eiMetadata.getMeta("msgReturn")));
map.put("isDeleted",StringUtils.toString(isDeleted, eiMetadata.getMeta("isDeleted")));
map.put("remark",StringUtils.toString(remark, eiMetadata.getMeta("remark")));
map.put("createdUserId",StringUtils.toString(createdUserId, eiMetadata.getMeta("createdUserId")));
map.put("createdUserName",StringUtils.toString(createdUserName, eiMetadata.getMeta("createdUserName")));
map.put("createdTime",StringUtils.toString(createdTime, eiMetadata.getMeta("createdTime")));
map.put("modifiedUserId",StringUtils.toString(modifiedUserId, eiMetadata.getMeta("modifiedUserId")));
map.put("modifiedUserName",StringUtils.toString(modifiedUserName, eiMetadata.getMeta("modifiedUserName")));
map.put("modifiedTime",StringUtils.toString(modifiedTime, eiMetadata.getMeta("modifiedTime")));
map.put("extCol1",StringUtils.toString(extCol1, eiMetadata.getMeta("extCol1")));
map.put("extCol2",StringUtils.toString(extCol2, eiMetadata.getMeta("extCol2")));
map.put("extCol3",StringUtils.toString(extCol3, eiMetadata.getMeta("extCol3")));
map.put("extCol4",StringUtils.toString(extCol4, eiMetadata.getMeta("extCol4")));
map.put("extCol5",StringUtils.toString(extCol5, eiMetadata.getMeta("extCol5")));
return map;
}
}
/**
* Generate time : 2024-10-17 8:47:05
* Version : 1.0
*/
package com.baosight.hpjx.hp.pz.domain;
import com.baosight.iplat4j.core.data.DaoEPBase;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.util.NumberUtils;
import com.baosight.iplat4j.core.util.StringUtils;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
/**
* Tgzpz011
*
*/
public class HPPZ022A extends DaoEPBase {
public static final String QUERY = "HPPZ022A.query";
public static final String COUNT = "HPPZ022A.count";
public static final String INSERT = "HPPZ022A.insert";
public static final String UPDATE = "HPPZ022A.update";
public static final String DELETE = "HPPZ022A.delete";
private String billLineId = " "; /* 抛帐明细表ID*/
private String billLineNo = " "; /* 抛账明细编码*/
private String billMainId = " "; /* 抛账单据主表ID*/
private String inAccount = " "; /* 账套*/
private String assetFlag = " "; /* 资产类型*/
private String zeeoType = " "; /* 资产大类*/
private String useStatus = " "; /* 使用状态*/
private String costCenter = " "; /* 责任中心编码*/
private String costCenterName = " "; /* 责任中心名称*/
private String projectCode = " "; /* 项目编号*/
private BigDecimal documentAmount = new BigDecimal("0"); /* 单据原币不含税金额*/
private BigDecimal documentAmountTax = new BigDecimal("0"); /* 单据原币税额*/
private BigDecimal functionalAmount = new BigDecimal("0"); /* 本位币不含税金额*/
private BigDecimal functionalAmountTax = new BigDecimal("0"); /* 本位币税额*/
private BigDecimal taxRate = new BigDecimal("0"); /* 税率*/
private BigDecimal quantity = new BigDecimal("0"); /* 数量*/
private String quantityUnit = " "; /* 数量单位*/
private String detailReserveC1 = " ";
private String detailReserveC2 = " ";
private String detailReserveC3 = " ";
private String detailReserveC4 = " ";
private String detailReserveC5 = " ";
private String detailReserveC6 = " ";
private String detailReserveC7 = " ";
private String detailReserveC8 = " ";
private String detailReserveC9 = " ";
private String detailReserveC10 = " ";
private String detailReserveC11 = " ";
private String detailReserveC12 = " ";
private String detailReserveC13 = " ";
private String detailReserveC14 = " ";
private String detailReserveC15 = " ";
private String detailReserveC16 = " ";
private String detailReserveC17 = " ";
private String detailReserveC18 = " ";
private String detailReserveC19 = " ";
private String detailReserveC20 = " ";
private String detailReserveC21 = " ";
private String detailReserveC22 = " ";
private String detailReserveC23 = " ";
private String detailReserveC24 = " ";
private String detailReserveC25 = " ";
private String detailReserveC26 = " ";
private String detailReserveC27 = " ";
private String detailReserveC28 = " ";
private String detailReserveC29 = " ";
private String detailReserveC30 = " ";
private BigDecimal detailReserveN1 = new BigDecimal("0");
private BigDecimal detailReserveN2 = new BigDecimal("0");
private BigDecimal detailReserveN3 = new BigDecimal("0");
private BigDecimal detailReserveN4 = new BigDecimal("0");
private BigDecimal detailReserveN5 = new BigDecimal("0");
private String isDeleted = " ";
private String remark = " ";
private String createdUserId = " ";
private String createdUserName = " ";
private String createdTime = " ";
private String modifiedUserId = " ";
private String modifiedUserName = " ";
private String modifiedTime = " ";
private String extCol1 = " ";
private String extCol2 = " ";
private String extCol3 = " ";
private String extCol4 = " ";
private String extCol5 = " ";
//暂存抛帐管理表ID,用于给抛帐管理表分组后赋值所属的明细ID
private String tgzzb0104ID = " ";
/**
* initialize the metadata
*/
public void initMetaData() {
EiColumn eiColumn;
eiColumn = new EiColumn("billLineId");
eiColumn.setFieldLength(64);
eiColumn.setDescName("抛帐明细表ID");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("billLineNo");
eiColumn.setFieldLength(64);
eiColumn.setDescName("抛账明细编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("billMainId");
eiColumn.setFieldLength(64);
eiColumn.setDescName("抛账单据主表ID");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("inAccount");
eiColumn.setFieldLength(8);
eiColumn.setDescName("账套");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("assetFlag");
eiColumn.setFieldLength(10);
eiColumn.setDescName("资产类型");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("zeeoType");
eiColumn.setFieldLength(10);
eiColumn.setDescName("资产大类");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("useStatus");
eiColumn.setFieldLength(10);
eiColumn.setDescName("使用状态");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("costCenter");
eiColumn.setFieldLength(20);
eiColumn.setDescName("责任中心编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("costCenterName");
eiColumn.setFieldLength(64);
eiColumn.setDescName("责任中心名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("projectCode");
eiColumn.setFieldLength(64);
eiColumn.setDescName("项目编号");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("documentAmount");
eiColumn.setType("N");
eiColumn.setScaleLength(2);
eiColumn.setFieldLength(20);
eiColumn.setDescName("单据原币不含税金额");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("documentAmountTax");
eiColumn.setType("N");
eiColumn.setScaleLength(2);
eiColumn.setFieldLength(20);
eiColumn.setDescName("单据原币税额");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("functionalAmount");
eiColumn.setType("N");
eiColumn.setScaleLength(2);
eiColumn.setFieldLength(20);
eiColumn.setDescName("本位币不含税金额");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("functionalAmountTax");
eiColumn.setType("N");
eiColumn.setScaleLength(2);
eiColumn.setFieldLength(20);
eiColumn.setDescName("本位币税额");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("taxRate");
eiColumn.setType("N");
eiColumn.setScaleLength(9);
eiColumn.setFieldLength(20);
eiColumn.setDescName("税率");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("quantity");
eiColumn.setType("N");
eiColumn.setScaleLength(6);
eiColumn.setFieldLength(20);
eiColumn.setDescName("数量");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("quantityUnit");
eiColumn.setFieldLength(10);
eiColumn.setDescName("数量单位");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC1");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC2");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC3");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC4");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC5");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC6");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC7");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC8");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC9");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC10");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC11");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC12");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC13");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC14");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC15");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC16");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC17");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC18");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC19");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC20");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC21");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC22");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC23");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC24");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC25");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC26");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC27");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC28");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC29");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveC30");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveN1");
eiColumn.setType("N");
eiColumn.setScaleLength(6);
eiColumn.setFieldLength(20);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveN2");
eiColumn.setType("N");
eiColumn.setScaleLength(6);
eiColumn.setFieldLength(20);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveN3");
eiColumn.setType("N");
eiColumn.setScaleLength(6);
eiColumn.setFieldLength(20);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveN4");
eiColumn.setType("N");
eiColumn.setScaleLength(6);
eiColumn.setFieldLength(20);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("detailReserveN5");
eiColumn.setType("N");
eiColumn.setScaleLength(6);
eiColumn.setFieldLength(20);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("isDeleted");
eiColumn.setFieldLength(1);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("remark");
eiColumn.setFieldLength(1000);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("createdUserId");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("createdUserName");
eiColumn.setFieldLength(32);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("createdTime");
eiColumn.setFieldLength(50);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("modifiedUserId");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("modifiedUserName");
eiColumn.setFieldLength(32);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("modifiedTime");
eiColumn.setFieldLength(50);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol1");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol2");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol3");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol4");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("extCol5");
eiColumn.setFieldLength(500);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn("tgzzb0104ID");
eiColumn.setFieldLength(64);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
}
/**
* the constructor
*/
public HPPZ022A() {
initMetaData();
}
/**
* get the billLineId - 抛帐明细表ID
* @return the billLineId
*/
public String getBillLineId() {
return this.billLineId;
}
/**
* set the billLineId - 抛帐明细表ID
*/
public void setBillLineId(String billLineId) {
this.billLineId = billLineId;
}
/**
* get the billLineNo - 抛账明细编码
* @return the billLineNo
*/
public String getBillLineNo() {
return this.billLineNo;
}
/**
* set the billLineNo - 抛账明细编码
*/
public void setBillLineNo(String billLineNo) {
this.billLineNo = billLineNo;
}
/**
* get the billMainId - 抛账单据主表ID
* @return the billMainId
*/
public String getBillMainId() {
return this.billMainId;
}
/**
* set the billMainId - 抛账单据主表ID
*/
public void setBillMainId(String billMainId) {
this.billMainId = billMainId;
}
/**
* get the inAccount - 账套
* @return the inAccount
*/
public String getInAccount() {
return this.inAccount;
}
/**
* set the inAccount - 账套
*/
public void setInAccount(String inAccount) {
this.inAccount = inAccount;
}
/**
* get the assetFlag - 资产类型
* @return the assetFlag
*/
public String getAssetFlag() {
return this.assetFlag;
}
/**
* set the assetFlag - 资产类型
*/
public void setAssetFlag(String assetFlag) {
this.assetFlag = assetFlag;
}
/**
* get the zeeoType - 资产大类
* @return the zeeoType
*/
public String getZeeoType() {
return this.zeeoType;
}
/**
* set the zeeoType - 资产大类
*/
public void setZeeoType(String zeeoType) {
this.zeeoType = zeeoType;
}
/**
* get the useStatus - 使用状态
* @return the useStatus
*/
public String getUseStatus() {
return this.useStatus;
}
/**
* set the useStatus - 使用状态
*/
public void setUseStatus(String useStatus) {
this.useStatus = useStatus;
}
/**
* get the costCenter - 责任中心编码
* @return the costCenter
*/
public String getCostCenter() {
return this.costCenter;
}
/**
* set the costCenter - 责任中心编码
*/
public void setCostCenter(String costCenter) {
this.costCenter = costCenter;
}
/**
* get the costCenterName - 责任中心名称
* @return the costCenterName
*/
public String getCostCenterName() {
return this.costCenterName;
}
/**
* set the costCenterName - 责任中心名称
*/
public void setCostCenterName(String costCenterName) {
this.costCenterName = costCenterName;
}
/**
* get the projectCode - 项目编号
* @return the projectCode
*/
public String getProjectCode() {
return this.projectCode;
}
/**
* set the projectCode - 项目编号
*/
public void setProjectCode(String projectCode) {
this.projectCode = projectCode;
}
/**
* get the documentAmount - 单据原币不含税金额
* @return the documentAmount
*/
public BigDecimal getDocumentAmount() {
return this.documentAmount;
}
/**
* set the documentAmount - 单据原币不含税金额
*/
public void setDocumentAmount(BigDecimal documentAmount) {
this.documentAmount = documentAmount;
}
/**
* get the documentAmountTax - 单据原币税额
* @return the documentAmountTax
*/
public BigDecimal getDocumentAmountTax() {
return this.documentAmountTax;
}
/**
* set the documentAmountTax - 单据原币税额
*/
public void setDocumentAmountTax(BigDecimal documentAmountTax) {
this.documentAmountTax = documentAmountTax;
}
/**
* get the functionalAmount - 本位币不含税金额
* @return the functionalAmount
*/
public BigDecimal getFunctionalAmount() {
return this.functionalAmount;
}
/**
* set the functionalAmount - 本位币不含税金额
*/
public void setFunctionalAmount(BigDecimal functionalAmount) {
this.functionalAmount = functionalAmount;
}
/**
* get the functionalAmountTax - 本位币税额
* @return the functionalAmountTax
*/
public BigDecimal getFunctionalAmountTax() {
return this.functionalAmountTax;
}
/**
* set the functionalAmountTax - 本位币税额
*/
public void setFunctionalAmountTax(BigDecimal functionalAmountTax) {
this.functionalAmountTax = functionalAmountTax;
}
/**
* get the taxRate - 税率
* @return the taxRate
*/
public BigDecimal getTaxRate() {
return this.taxRate;
}
/**
* set the taxRate - 税率
*/
public void setTaxRate(BigDecimal taxRate) {
this.taxRate = taxRate;
}
/**
* get the quantity - 数量
* @return the quantity
*/
public BigDecimal getQuantity() {
return this.quantity;
}
/**
* set the quantity - 数量
*/
public void setQuantity(BigDecimal quantity) {
this.quantity = quantity;
}
/**
* get the quantityUnit - 数量单位
* @return the quantityUnit
*/
public String getQuantityUnit() {
return this.quantityUnit;
}
/**
* set the quantityUnit - 数量单位
*/
public void setQuantityUnit(String quantityUnit) {
this.quantityUnit = quantityUnit;
}
/**
* get the detailReserveC1
* @return the detailReserveC1
*/
public String getDetailReserveC1() {
return this.detailReserveC1;
}
/**
* set the detailReserveC1
*/
public void setDetailReserveC1(String detailReserveC1) {
this.detailReserveC1 = detailReserveC1;
}
/**
* get the detailReserveC2
* @return the detailReserveC2
*/
public String getDetailReserveC2() {
return this.detailReserveC2;
}
/**
* set the detailReserveC2
*/
public void setDetailReserveC2(String detailReserveC2) {
this.detailReserveC2 = detailReserveC2;
}
/**
* get the detailReserveC3
* @return the detailReserveC3
*/
public String getDetailReserveC3() {
return this.detailReserveC3;
}
/**
* set the detailReserveC3
*/
public void setDetailReserveC3(String detailReserveC3) {
this.detailReserveC3 = detailReserveC3;
}
/**
* get the detailReserveC4
* @return the detailReserveC4
*/
public String getDetailReserveC4() {
return this.detailReserveC4;
}
/**
* set the detailReserveC4
*/
public void setDetailReserveC4(String detailReserveC4) {
this.detailReserveC4 = detailReserveC4;
}
/**
* get the detailReserveC5
* @return the detailReserveC5
*/
public String getDetailReserveC5() {
return this.detailReserveC5;
}
/**
* set the detailReserveC5
*/
public void setDetailReserveC5(String detailReserveC5) {
this.detailReserveC5 = detailReserveC5;
}
/**
* get the detailReserveC6
* @return the detailReserveC6
*/
public String getDetailReserveC6() {
return this.detailReserveC6;
}
/**
* set the detailReserveC6
*/
public void setDetailReserveC6(String detailReserveC6) {
this.detailReserveC6 = detailReserveC6;
}
/**
* get the detailReserveC7
* @return the detailReserveC7
*/
public String getDetailReserveC7() {
return this.detailReserveC7;
}
/**
* set the detailReserveC7
*/
public void setDetailReserveC7(String detailReserveC7) {
this.detailReserveC7 = detailReserveC7;
}
/**
* get the detailReserveC8
* @return the detailReserveC8
*/
public String getDetailReserveC8() {
return this.detailReserveC8;
}
/**
* set the detailReserveC8
*/
public void setDetailReserveC8(String detailReserveC8) {
this.detailReserveC8 = detailReserveC8;
}
/**
* get the detailReserveC9
* @return the detailReserveC9
*/
public String getDetailReserveC9() {
return this.detailReserveC9;
}
/**
* set the detailReserveC9
*/
public void setDetailReserveC9(String detailReserveC9) {
this.detailReserveC9 = detailReserveC9;
}
/**
* get the detailReserveC10
* @return the detailReserveC10
*/
public String getDetailReserveC10() {
return this.detailReserveC10;
}
/**
* set the detailReserveC10
*/
public void setDetailReserveC10(String detailReserveC10) {
this.detailReserveC10 = detailReserveC10;
}
/**
* get the detailReserveC11
* @return the detailReserveC11
*/
public String getDetailReserveC11() {
return this.detailReserveC11;
}
/**
* set the detailReserveC11
*/
public void setDetailReserveC11(String detailReserveC11) {
this.detailReserveC11 = detailReserveC11;
}
/**
* get the detailReserveC12
* @return the detailReserveC12
*/
public String getDetailReserveC12() {
return this.detailReserveC12;
}
/**
* set the detailReserveC12
*/
public void setDetailReserveC12(String detailReserveC12) {
this.detailReserveC12 = detailReserveC12;
}
/**
* get the detailReserveC13
* @return the detailReserveC13
*/
public String getDetailReserveC13() {
return this.detailReserveC13;
}
/**
* set the detailReserveC13
*/
public void setDetailReserveC13(String detailReserveC13) {
this.detailReserveC13 = detailReserveC13;
}
/**
* get the detailReserveC14
* @return the detailReserveC14
*/
public String getDetailReserveC14() {
return this.detailReserveC14;
}
/**
* set the detailReserveC14
*/
public void setDetailReserveC14(String detailReserveC14) {
this.detailReserveC14 = detailReserveC14;
}
/**
* get the detailReserveC15
* @return the detailReserveC15
*/
public String getDetailReserveC15() {
return this.detailReserveC15;
}
/**
* set the detailReserveC15
*/
public void setDetailReserveC15(String detailReserveC15) {
this.detailReserveC15 = detailReserveC15;
}
/**
* get the detailReserveC16
* @return the detailReserveC16
*/
public String getDetailReserveC16() {
return this.detailReserveC16;
}
/**
* set the detailReserveC16
*/
public void setDetailReserveC16(String detailReserveC16) {
this.detailReserveC16 = detailReserveC16;
}
/**
* get the detailReserveC17
* @return the detailReserveC17
*/
public String getDetailReserveC17() {
return this.detailReserveC17;
}
/**
* set the detailReserveC17
*/
public void setDetailReserveC17(String detailReserveC17) {
this.detailReserveC17 = detailReserveC17;
}
/**
* get the detailReserveC18
* @return the detailReserveC18
*/
public String getDetailReserveC18() {
return this.detailReserveC18;
}
/**
* set the detailReserveC18
*/
public void setDetailReserveC18(String detailReserveC18) {
this.detailReserveC18 = detailReserveC18;
}
/**
* get the detailReserveC19
* @return the detailReserveC19
*/
public String getDetailReserveC19() {
return this.detailReserveC19;
}
/**
* set the detailReserveC19
*/
public void setDetailReserveC19(String detailReserveC19) {
this.detailReserveC19 = detailReserveC19;
}
/**
* get the detailReserveC20
* @return the detailReserveC20
*/
public String getDetailReserveC20() {
return this.detailReserveC20;
}
/**
* set the detailReserveC20
*/
public void setDetailReserveC20(String detailReserveC20) {
this.detailReserveC20 = detailReserveC20;
}
/**
* get the detailReserveC21
* @return the detailReserveC21
*/
public String getDetailReserveC21() {
return this.detailReserveC21;
}
/**
* set the detailReserveC21
*/
public void setDetailReserveC21(String detailReserveC21) {
this.detailReserveC21 = detailReserveC21;
}
/**
* get the detailReserveC22
* @return the detailReserveC22
*/
public String getDetailReserveC22() {
return this.detailReserveC22;
}
/**
* set the detailReserveC22
*/
public void setDetailReserveC22(String detailReserveC22) {
this.detailReserveC22 = detailReserveC22;
}
/**
* get the detailReserveC23
* @return the detailReserveC23
*/
public String getDetailReserveC23() {
return this.detailReserveC23;
}
/**
* set the detailReserveC23
*/
public void setDetailReserveC23(String detailReserveC23) {
this.detailReserveC23 = detailReserveC23;
}
/**
* get the detailReserveC24
* @return the detailReserveC24
*/
public String getDetailReserveC24() {
return this.detailReserveC24;
}
/**
* set the detailReserveC24
*/
public void setDetailReserveC24(String detailReserveC24) {
this.detailReserveC24 = detailReserveC24;
}
/**
* get the detailReserveC25
* @return the detailReserveC25
*/
public String getDetailReserveC25() {
return this.detailReserveC25;
}
/**
* set the detailReserveC25
*/
public void setDetailReserveC25(String detailReserveC25) {
this.detailReserveC25 = detailReserveC25;
}
/**
* get the detailReserveC26
* @return the detailReserveC26
*/
public String getDetailReserveC26() {
return this.detailReserveC26;
}
/**
* set the detailReserveC26
*/
public void setDetailReserveC26(String detailReserveC26) {
this.detailReserveC26 = detailReserveC26;
}
/**
* get the detailReserveC27
* @return the detailReserveC27
*/
public String getDetailReserveC27() {
return this.detailReserveC27;
}
/**
* set the detailReserveC27
*/
public void setDetailReserveC27(String detailReserveC27) {
this.detailReserveC27 = detailReserveC27;
}
/**
* get the detailReserveC28
* @return the detailReserveC28
*/
public String getDetailReserveC28() {
return this.detailReserveC28;
}
/**
* set the detailReserveC28
*/
public void setDetailReserveC28(String detailReserveC28) {
this.detailReserveC28 = detailReserveC28;
}
/**
* get the detailReserveC29
* @return the detailReserveC29
*/
public String getDetailReserveC29() {
return this.detailReserveC29;
}
/**
* set the detailReserveC29
*/
public void setDetailReserveC29(String detailReserveC29) {
this.detailReserveC29 = detailReserveC29;
}
/**
* get the detailReserveC30
* @return the detailReserveC30
*/
public String getDetailReserveC30() {
return this.detailReserveC30;
}
/**
* set the detailReserveC30
*/
public void setDetailReserveC30(String detailReserveC30) {
this.detailReserveC30 = detailReserveC30;
}
/**
* get the detailReserveN1
* @return the detailReserveN1
*/
public BigDecimal getDetailReserveN1() {
return this.detailReserveN1;
}
/**
* set the detailReserveN1
*/
public void setDetailReserveN1(BigDecimal detailReserveN1) {
this.detailReserveN1 = detailReserveN1;
}
/**
* get the detailReserveN2
* @return the detailReserveN2
*/
public BigDecimal getDetailReserveN2() {
return this.detailReserveN2;
}
/**
* set the detailReserveN2
*/
public void setDetailReserveN2(BigDecimal detailReserveN2) {
this.detailReserveN2 = detailReserveN2;
}
/**
* get the detailReserveN3
* @return the detailReserveN3
*/
public BigDecimal getDetailReserveN3() {
return this.detailReserveN3;
}
/**
* set the detailReserveN3
*/
public void setDetailReserveN3(BigDecimal detailReserveN3) {
this.detailReserveN3 = detailReserveN3;
}
/**
* get the detailReserveN4
* @return the detailReserveN4
*/
public BigDecimal getDetailReserveN4() {
return this.detailReserveN4;
}
/**
* set the detailReserveN4
*/
public void setDetailReserveN4(BigDecimal detailReserveN4) {
this.detailReserveN4 = detailReserveN4;
}
/**
* get the isDeleted
* @return the isDeleted
*/
public String getIsDeleted() {
return this.isDeleted;
}
/**
* set the isDeleted
*/
public void setIsDeleted(String isDeleted) {
this.isDeleted = isDeleted;
}
/**
* get the remark
* @return the remark
*/
public String getRemark() {
return this.remark;
}
/**
* set the remark
*/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* get the createdUserId
* @return the createdUserId
*/
public String getCreatedUserId() {
return this.createdUserId;
}
/**
* set the createdUserId
*/
public void setCreatedUserId(String createdUserId) {
this.createdUserId = createdUserId;
}
/**
* get the createdUserName
* @return the createdUserName
*/
public String getCreatedUserName() {
return this.createdUserName;
}
/**
* set the createdUserName
*/
public void setCreatedUserName(String createdUserName) {
this.createdUserName = createdUserName;
}
/**
* get the createdTime
* @return the createdTime
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
* set the createdTime
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
* get the modifiedUserId
* @return the modifiedUserId
*/
public String getModifiedUserId() {
return this.modifiedUserId;
}
/**
* set the modifiedUserId
*/
public void setModifiedUserId(String modifiedUserId) {
this.modifiedUserId = modifiedUserId;
}
/**
* get the modifiedUserName
* @return the modifiedUserName
*/
public String getModifiedUserName() {
return this.modifiedUserName;
}
/**
* set the modifiedUserName
*/
public void setModifiedUserName(String modifiedUserName) {
this.modifiedUserName = modifiedUserName;
}
/**
* get the modifiedTime
* @return the modifiedTime
*/
public String getModifiedTime() {
return this.modifiedTime;
}
/**
* set the modifiedTime
*/
public void setModifiedTime(String modifiedTime) {
this.modifiedTime = modifiedTime;
}
/**
* get the extCol1
* @return the extCol1
*/
public String getExtCol1() {
return this.extCol1;
}
/**
* set the extCol1
*/
public void setExtCol1(String extCol1) {
this.extCol1 = extCol1;
}
/**
* get the extCol2
* @return the extCol2
*/
public String getExtCol2() {
return this.extCol2;
}
/**
* set the extCol2
*/
public void setExtCol2(String extCol2) {
this.extCol2 = extCol2;
}
/**
* get the extCol3
* @return the extCol3
*/
public String getExtCol3() {
return this.extCol3;
}
/**
* set the extCol3
*/
public void setExtCol3(String extCol3) {
this.extCol3 = extCol3;
}
/**
* get the extCol4
* @return the extCol4
*/
public String getExtCol4() {
return this.extCol4;
}
/**
* set the extCol4
*/
public void setExtCol4(String extCol4) {
this.extCol4 = extCol4;
}
/**
* get the extCol5
* @return the extCol5
*/
public String getExtCol5() {
return this.extCol5;
}
/**
* set the extCol5
*/
public void setExtCol5(String extCol5) {
this.extCol5 = extCol5;
}
public String getTgzzb0104ID() {
return tgzzb0104ID;
}
public void setTgzzb0104ID(String tgzzb0104ID) {
this.tgzzb0104ID = tgzzb0104ID;
}
public BigDecimal getDetailReserveN5() {
return detailReserveN5;
}
public void setDetailReserveN5(BigDecimal detailReserveN5) {
this.detailReserveN5 = detailReserveN5;
}
/**
* get the value from Map
*/
@Override
public void fromMap(Map map) {
setBillLineId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("billLineId")), billLineId));
setBillLineNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("billLineNo")), billLineNo));
setBillMainId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("billMainId")), billMainId));
setInAccount(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inAccount")), inAccount));
setAssetFlag(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("assetFlag")), assetFlag));
setZeeoType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("zeeoType")), zeeoType));
setUseStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("useStatus")), useStatus));
setCostCenter(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("costCenter")), costCenter));
setCostCenterName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("costCenterName")), costCenterName));
setProjectCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("projectCode")), projectCode));
setDocumentAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get("documentAmount")), documentAmount));
setDocumentAmountTax(NumberUtils.toBigDecimal(StringUtils.toString(map.get("documentAmountTax")), documentAmountTax));
setFunctionalAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get("functionalAmount")), functionalAmount));
setFunctionalAmountTax(NumberUtils.toBigDecimal(StringUtils.toString(map.get("functionalAmountTax")), functionalAmountTax));
setTaxRate(NumberUtils.toBigDecimal(StringUtils.toString(map.get("taxRate")), taxRate));
setQuantity(NumberUtils.toBigDecimal(StringUtils.toString(map.get("quantity")), quantity));
setQuantityUnit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("quantityUnit")), quantityUnit));
setDetailReserveC1(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC1")), detailReserveC1));
setDetailReserveC2(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC2")), detailReserveC2));
setDetailReserveC3(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC3")), detailReserveC3));
setDetailReserveC4(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC4")), detailReserveC4));
setDetailReserveC5(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC5")), detailReserveC5));
setDetailReserveC6(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC6")), detailReserveC6));
setDetailReserveC7(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC7")), detailReserveC7));
setDetailReserveC8(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC8")), detailReserveC8));
setDetailReserveC9(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC9")), detailReserveC9));
setDetailReserveC10(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC10")), detailReserveC10));
setDetailReserveC11(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC11")), detailReserveC11));
setDetailReserveC12(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC12")), detailReserveC12));
setDetailReserveC13(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC13")), detailReserveC13));
setDetailReserveC14(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC14")), detailReserveC14));
setDetailReserveC15(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC15")), detailReserveC15));
setDetailReserveC16(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC16")), detailReserveC16));
setDetailReserveC17(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC17")), detailReserveC17));
setDetailReserveC18(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC18")), detailReserveC18));
setDetailReserveC19(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC19")), detailReserveC19));
setDetailReserveC20(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC20")), detailReserveC20));
setDetailReserveC21(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC21")), detailReserveC21));
setDetailReserveC22(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC22")), detailReserveC22));
setDetailReserveC23(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC23")), detailReserveC23));
setDetailReserveC24(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC24")), detailReserveC24));
setDetailReserveC25(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC25")), detailReserveC25));
setDetailReserveC26(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC26")), detailReserveC26));
setDetailReserveC27(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC27")), detailReserveC27));
setDetailReserveC28(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC28")), detailReserveC28));
setDetailReserveC29(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC29")), detailReserveC29));
setDetailReserveC30(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("detailReserveC30")), detailReserveC30));
setDetailReserveN1(NumberUtils.toBigDecimal(StringUtils.toString(map.get("detailReserveN1")), detailReserveN1));
setDetailReserveN2(NumberUtils.toBigDecimal(StringUtils.toString(map.get("detailReserveN2")), detailReserveN2));
setDetailReserveN3(NumberUtils.toBigDecimal(StringUtils.toString(map.get("detailReserveN3")), detailReserveN3));
setDetailReserveN4(NumberUtils.toBigDecimal(StringUtils.toString(map.get("detailReserveN4")), detailReserveN4));
setDetailReserveN5(NumberUtils.toBigDecimal(StringUtils.toString(map.get("detailReserveN5")), detailReserveN5));
setIsDeleted(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("isDeleted")), isDeleted));
setRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("remark")), remark));
setCreatedUserId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdUserId")), createdUserId));
setCreatedUserName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdUserName")), createdUserName));
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createdTime")), createdTime));
setModifiedUserId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("modifiedUserId")), modifiedUserId));
setModifiedUserName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("modifiedUserName")), modifiedUserName));
setModifiedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("modifiedTime")), modifiedTime));
setExtCol1(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol1")), extCol1));
setExtCol2(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol2")), extCol2));
setExtCol3(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol3")), extCol3));
setExtCol4(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol4")), extCol4));
setExtCol5(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("extCol5")), extCol5));
setTgzzb0104ID(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("tgzzb0104ID")), tgzzb0104ID));
}
/**
* set the value to Map
*/
public Map toMap() {
Map map = new HashMap();
map.put("billLineId",StringUtils.toString(billLineId, eiMetadata.getMeta("billLineId")));
map.put("billLineNo",StringUtils.toString(billLineNo, eiMetadata.getMeta("billLineNo")));
map.put("billMainId",StringUtils.toString(billMainId, eiMetadata.getMeta("billMainId")));
map.put("inAccount",StringUtils.toString(inAccount, eiMetadata.getMeta("inAccount")));
map.put("assetFlag",StringUtils.toString(assetFlag, eiMetadata.getMeta("assetFlag")));
map.put("zeeoType",StringUtils.toString(zeeoType, eiMetadata.getMeta("zeeoType")));
map.put("useStatus",StringUtils.toString(useStatus, eiMetadata.getMeta("useStatus")));
map.put("costCenter",StringUtils.toString(costCenter, eiMetadata.getMeta("costCenter")));
map.put("costCenterName",StringUtils.toString(costCenterName, eiMetadata.getMeta("costCenterName")));
map.put("projectCode",StringUtils.toString(projectCode, eiMetadata.getMeta("projectCode")));
map.put("documentAmount",StringUtils.toString(documentAmount, eiMetadata.getMeta("documentAmount")));
map.put("documentAmountTax",StringUtils.toString(documentAmountTax, eiMetadata.getMeta("documentAmountTax")));
map.put("functionalAmount",StringUtils.toString(functionalAmount, eiMetadata.getMeta("functionalAmount")));
map.put("functionalAmountTax",StringUtils.toString(functionalAmountTax, eiMetadata.getMeta("functionalAmountTax")));
map.put("taxRate",StringUtils.toString(taxRate, eiMetadata.getMeta("taxRate")));
map.put("quantity",StringUtils.toString(quantity, eiMetadata.getMeta("quantity")));
map.put("quantityUnit",StringUtils.toString(quantityUnit, eiMetadata.getMeta("quantityUnit")));
map.put("detailReserveC1",StringUtils.toString(detailReserveC1, eiMetadata.getMeta("detailReserveC1")));
map.put("detailReserveC2",StringUtils.toString(detailReserveC2, eiMetadata.getMeta("detailReserveC2")));
map.put("detailReserveC3",StringUtils.toString(detailReserveC3, eiMetadata.getMeta("detailReserveC3")));
map.put("detailReserveC4",StringUtils.toString(detailReserveC4, eiMetadata.getMeta("detailReserveC4")));
map.put("detailReserveC5",StringUtils.toString(detailReserveC5, eiMetadata.getMeta("detailReserveC5")));
map.put("detailReserveC6",StringUtils.toString(detailReserveC6, eiMetadata.getMeta("detailReserveC6")));
map.put("detailReserveC7",StringUtils.toString(detailReserveC7, eiMetadata.getMeta("detailReserveC7")));
map.put("detailReserveC8",StringUtils.toString(detailReserveC8, eiMetadata.getMeta("detailReserveC8")));
map.put("detailReserveC9",StringUtils.toString(detailReserveC9, eiMetadata.getMeta("detailReserveC9")));
map.put("detailReserveC10",StringUtils.toString(detailReserveC10, eiMetadata.getMeta("detailReserveC10")));
map.put("detailReserveC11",StringUtils.toString(detailReserveC11, eiMetadata.getMeta("detailReserveC11")));
map.put("detailReserveC12",StringUtils.toString(detailReserveC12, eiMetadata.getMeta("detailReserveC12")));
map.put("detailReserveC13",StringUtils.toString(detailReserveC13, eiMetadata.getMeta("detailReserveC13")));
map.put("detailReserveC14",StringUtils.toString(detailReserveC14, eiMetadata.getMeta("detailReserveC14")));
map.put("detailReserveC15",StringUtils.toString(detailReserveC15, eiMetadata.getMeta("detailReserveC15")));
map.put("detailReserveC16",StringUtils.toString(detailReserveC16, eiMetadata.getMeta("detailReserveC16")));
map.put("detailReserveC17",StringUtils.toString(detailReserveC17, eiMetadata.getMeta("detailReserveC17")));
map.put("detailReserveC18",StringUtils.toString(detailReserveC18, eiMetadata.getMeta("detailReserveC18")));
map.put("detailReserveC19",StringUtils.toString(detailReserveC19, eiMetadata.getMeta("detailReserveC19")));
map.put("detailReserveC20",StringUtils.toString(detailReserveC20, eiMetadata.getMeta("detailReserveC20")));
map.put("detailReserveC21",StringUtils.toString(detailReserveC21, eiMetadata.getMeta("detailReserveC21")));
map.put("detailReserveC22",StringUtils.toString(detailReserveC22, eiMetadata.getMeta("detailReserveC22")));
map.put("detailReserveC23",StringUtils.toString(detailReserveC23, eiMetadata.getMeta("detailReserveC23")));
map.put("detailReserveC24",StringUtils.toString(detailReserveC24, eiMetadata.getMeta("detailReserveC24")));
map.put("detailReserveC25",StringUtils.toString(detailReserveC25, eiMetadata.getMeta("detailReserveC25")));
map.put("detailReserveC26",StringUtils.toString(detailReserveC26, eiMetadata.getMeta("detailReserveC26")));
map.put("detailReserveC27",StringUtils.toString(detailReserveC27, eiMetadata.getMeta("detailReserveC27")));
map.put("detailReserveC28",StringUtils.toString(detailReserveC28, eiMetadata.getMeta("detailReserveC28")));
map.put("detailReserveC29",StringUtils.toString(detailReserveC29, eiMetadata.getMeta("detailReserveC29")));
map.put("detailReserveC30",StringUtils.toString(detailReserveC30, eiMetadata.getMeta("detailReserveC30")));
map.put("detailReserveN1",StringUtils.toString(detailReserveN1, eiMetadata.getMeta("detailReserveN1")));
map.put("detailReserveN2",StringUtils.toString(detailReserveN2, eiMetadata.getMeta("detailReserveN2")));
map.put("detailReserveN3",StringUtils.toString(detailReserveN3, eiMetadata.getMeta("detailReserveN3")));
map.put("detailReserveN4",StringUtils.toString(detailReserveN4, eiMetadata.getMeta("detailReserveN4")));
map.put("detailReserveN5",StringUtils.toString(detailReserveN5, eiMetadata.getMeta("detailReserveN5")));
map.put("isDeleted",StringUtils.toString(isDeleted, eiMetadata.getMeta("isDeleted")));
map.put("remark",StringUtils.toString(remark, eiMetadata.getMeta("remark")));
map.put("createdUserId",StringUtils.toString(createdUserId, eiMetadata.getMeta("createdUserId")));
map.put("createdUserName",StringUtils.toString(createdUserName, eiMetadata.getMeta("createdUserName")));
map.put("createdTime",StringUtils.toString(createdTime, eiMetadata.getMeta("createdTime")));
map.put("modifiedUserId",StringUtils.toString(modifiedUserId, eiMetadata.getMeta("modifiedUserId")));
map.put("modifiedUserName",StringUtils.toString(modifiedUserName, eiMetadata.getMeta("modifiedUserName")));
map.put("modifiedTime",StringUtils.toString(modifiedTime, eiMetadata.getMeta("modifiedTime")));
map.put("extCol1",StringUtils.toString(extCol1, eiMetadata.getMeta("extCol1")));
map.put("extCol2",StringUtils.toString(extCol2, eiMetadata.getMeta("extCol2")));
map.put("extCol3",StringUtils.toString(extCol3, eiMetadata.getMeta("extCol3")));
map.put("extCol4",StringUtils.toString(extCol4, eiMetadata.getMeta("extCol4")));
map.put("extCol5",StringUtils.toString(extCol5, eiMetadata.getMeta("extCol5")));
map.put("tgzzb0104ID",StringUtils.toString(tgzzb0104ID, eiMetadata.getMeta("tgzzb0104ID")));
return map;
}
}
......@@ -182,14 +182,14 @@ public class ServiceHPPZ019 extends ServiceEPBase {
}else {
hppz020.setSerialNum(1L);
}
BigDecimal notaxPrice = hppz020.getNotaxPrice(); //不含税单价
/*BigDecimal notaxPrice = hppz020.getNotaxPrice(); //不含税单价
BigDecimal taxRate = hppz020.getTaxRate(); //税率
BigDecimal quantity = BigDecimal.valueOf(hppz020.getQuantity());
BigDecimal nottaxAmount = notaxPrice.multiply(quantity); //不含税金额
BigDecimal taxAmount = nottaxAmount.multiply(taxRate.add(BigDecimal.valueOf(1)));
hppz020.setNotaxAmount(nottaxAmount); //不含税金额
hppz020.setTaxAmount(taxAmount); //含税金额
hppz020.setTheAmount(taxAmount.subtract(nottaxAmount)); //税额
hppz020.setTheAmount(taxAmount.subtract(nottaxAmount)); //税额*/
DaoUtils.insert(HPPZ020.INSERT, hppz020);
}
......@@ -197,14 +197,14 @@ public class ServiceHPPZ019 extends ServiceEPBase {
* 修改明细操作
*/
public void modifyDetail(HPPZ020 hppz020) {
BigDecimal notaxPrice = hppz020.getNotaxPrice(); //不含税单价
/*BigDecimal notaxPrice = hppz020.getNotaxPrice(); //不含税单价
BigDecimal taxRate = hppz020.getTaxRate(); //税率
BigDecimal quantity = BigDecimal.valueOf(hppz020.getQuantity());
BigDecimal nottaxAmount = notaxPrice.multiply(quantity); //不含税金额
BigDecimal taxAmount = nottaxAmount.multiply(taxRate.add(BigDecimal.valueOf(1)));
hppz020.setNotaxAmount(nottaxAmount); //不含税金额
hppz020.setTaxAmount(taxAmount); //含税金额
hppz020.setTheAmount(taxAmount.subtract(nottaxAmount)); //税额
hppz020.setTheAmount(taxAmount.subtract(nottaxAmount)); //税额*/
DaoUtils.update(HPPZ020.UPDATE, hppz020);
}
......
package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.pz.domain.HPPZ022;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException;
import com.baosight.iplat4j.core.service.impl.ServiceBase;
import java.util.List;
import java.util.Map;
/**
* 抛帐管理
*
* @author:
* @date:2024/1/15,11:20
*/
public class ServiceHPPZ022 extends ServiceBase {
/**
* 画面初始化
*
* @param inInfo
* @return
*/
@Override
public EiInfo initLoad(EiInfo inInfo) {
try {
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPPZ022().eiMetadata);
} catch (PlatException e) {
logError("初始化失败", e.getMessage());
}
return inInfo;
}
/**
* 查询数据列表
*
* @param inInfo
* @return
*/
@Override
@OperationLogAnnotation(operModul = "抛帐管理", operType = "查询", operDesc = "查询")
public EiInfo query(EiInfo inInfo) {
try {
inInfo = super.query(inInfo, HPPZ022.QUERY, new HPPZ022());
} catch (Exception e) {
logError("查询失败", e.getMessage());
}
return inInfo;
}
/**
* 删除操作
*
* @param inInfo
* @return
*/
@Override
public EiInfo delete(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
for (Map resultRow : resultRows) {
HPPZ022 hppz022 = new HPPZ022();
hppz022.fromMap(resultRow);
DaoUtils.update(HPPZ022.DELETE, hppz022);
}
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据删除成功!");
} catch (Exception e) {
logError("删除失败", e.getMessage());
}
return inInfo;
}
/**
* 红冲操作
*
* @param inInfo
* @return
*/
public EiInfo redFlush(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
for (Map resultRow : resultRows) {
HPPZ022 hppz022 = new HPPZ022();
hppz022.fromMap(resultRow);
}
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据红冲成功!");
} catch (Exception e) {
logError("红冲失败", e.getMessage());
}
return inInfo;
}
/**
* 重抛操作
*
* @param inInfo
* @return
*/
public EiInfo againSend(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
for (Map resultRow : resultRows) {
HPPZ022 hppz022 = new HPPZ022();
hppz022.fromMap(resultRow);
}
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据重抛成功!");
} catch (Exception e) {
logError("重抛失败", e.getMessage());
}
return inInfo;
}
}
package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.hp.pz.domain.HPPZ022A;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException;
import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
/**
* 抛帐管理明细
*
* @author:songx
* @date:2024/1/25,15:25
*/
public class ServiceHPPZ022A extends ServiceEPBase {
/**
* 画面初始化
*
* @param inInfo
* @return
*/
public EiInfo initLoad(EiInfo inInfo) {
try {
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPPZ022A().eiMetadata);
} catch (PlatException e) {
logError("初始化失败", e.getMessage());
}
return inInfo;
}
/**
* 查询操作
*
* @param inInfo
* @return
*/
@Override
public EiInfo query(EiInfo inInfo) {
try {
inInfo = super.query(inInfo, "HPPZ022A.query", new HPPZ022A());
} catch (Throwable e) {
logError("查询失败", e.getMessage());
}
return inInfo;
}
}
......@@ -132,25 +132,7 @@
<select id="queryMax" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.pz.domain.HPPZ020">
SELECT
ID as "id", <!-- ID -->
COMPANY_CODE as "companyCode", <!-- 企业编码 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 修改人 -->
UPDATED_NAME as "updatedName", <!-- 修改人名称 -->
UPDATED_TIME as "updatedTime", <!-- 修改时间 -->
DELETE_FLAG as "deleteFlag", <!-- 是否删除0:否1.是 -->
CONTRACT_CODE as "contractCode", <!-- 合同号 -->
MAX(SERIAL_NUM) as "serialNum", <!-- 序号 -->
PRDT_CODE as "prdtCode", <!-- 产品编码 -->
QUANTITY as "quantity", <!-- 数量 -->
TAX_RATE as "taxRate", <!-- 税率 -->
NOTAX_PRICE as "notaxPrice", <!-- 不含税单价 -->
NOTAX_AMOUNT as "notaxAmount", <!-- 不含税金额 -->
THE_AMOUNT as "theAmount", <!-- 税额 -->
TAX_AMOUNT as "taxAmount" <!-- 含税金额 -->
MAX(SERIAL_NUM) as "serialNum" <!-- 序号 -->
FROM ${hpjxSchema}.T_HPPZ020 WHERE 1=1
<include refid="condition" />
<dynamic prepend="ORDER BY">
......
<?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">
<sqlMap namespace="HPPZ022">
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.pz.domain.HPPZ022">
SELECT
BILL_MAIN_ID as "billMainId", <!-- 抛账单据主表ID -->
BILL_MAIN_NO as "billMainNo", <!-- 抛账单据主表编码 -->
IN_ACCOUNT as "inAccount", <!-- 账套 -->
BILL_DATE as "billDate", <!-- 单据日期 -->
PERIOD_CODE as "periodCode", <!-- 会计期 -->
BILL_NO as "billNo", <!-- 标财单据号 -->
BILL_TYPE as "billType", <!-- 标财单据类型 -->
SYS_ID as "sysId", <!-- 系统别 -->
SOURCE_BILL_TYPE as "sourceBillType", <!-- 业务类型 -->
SOURCE_BILL_ID as "sourceBillId", <!-- 业务单据ID -->
SOURCE_BILL_NO as "sourceBillNo", <!-- 业务单据号 -->
TOTAL_AMOUNT as "totalAmount", <!-- 单据金额 -->
BILL_STATUS as "billStatus", <!-- 抛账状态 -->
FUNCTIONAL_CURRENCY as "functionalCurrency", <!-- 本位币代码 -->
EXCHANGE_RATE as "exchangeRate", <!-- 汇率 -->
EXCHANGE_TYPE as "exchangeType", <!-- 汇率类型 -->
RED_FLAG as "redFlag", <!-- 红冲/作废标记 -->
RED_BILL_ID as "redBillId", <!-- 被红冲单据ID -->
RED_BILL_NO as "redBillNo", <!-- 被红冲单据号 -->
INPUT_CODE as "inputCode", <!-- 制单人编号 -->
INPUT_NAME as "inputName", <!-- 制单人名称 -->
VOUCHER_CODE as "voucherCode", <!-- 凭证号 -->
VOUCHER_DATE as "voucherDate", <!-- 凭证日期 -->
VOUCHER_SUMMARY as "voucherSummary", <!-- 凭证摘要 -->
VOUCHER_AFFIX_NUM as "voucherAffixNum", <!-- 附件张数 -->
MSG_RETURN as "msgReturn", <!-- 标财反馈 -->
IS_DELETED as "isDeleted", <!-- 删除标记 -->
REMARK as "remark", <!-- 备注 -->
CREATED_USER_ID as "createdUserId", <!-- 创建人ID -->
CREATED_USER_NAME as "createdUserName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
MODIFIED_USER_ID as "modifiedUserId", <!-- 更新人ID -->
MODIFIED_USER_NAME as "modifiedUserName", <!-- 更新人名称 -->
MODIFIED_TIME as "modifiedTime", <!-- 更新时间 -->
EXT_COL1 as "extCol1",
EXT_COL2 as "extCol2",
EXT_COL3 as "extCol3",
EXT_COL4 as "extCol4",
EXT_COL5 as "extCol5"
FROM ${hpjxSchema}.HPPZ022 WHERE 1=1
<isNotEmpty prepend=" AND " property="billMainId">
BILL_MAIN_ID = #billMainId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billMainNo">
BILL_MAIN_NO = #billMainNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inAccount">
IN_ACCOUNT = #inAccount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billDate">
BILL_DATE = #billDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="periodCode">
PERIOD_CODE = #periodCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billNo">
BILL_NO = #billNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billType">
BILL_TYPE = #billType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="sysId">
SYS_ID = #sysId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="sourceBillType">
SOURCE_BILL_TYPE = #sourceBillType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="sourceBillId">
SOURCE_BILL_ID = #sourceBillId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="sourceBillNo">
SOURCE_BILL_NO = #sourceBillNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="totalAmount">
TOTAL_AMOUNT = #totalAmount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billStatus">
BILL_STATUS = #billStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="functionalCurrency">
FUNCTIONAL_CURRENCY = #functionalCurrency#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="exchangeRate">
EXCHANGE_RATE = #exchangeRate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="exchangeType">
EXCHANGE_TYPE = #exchangeType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="redFlag">
RED_FLAG = #redFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="redBillId">
RED_BILL_ID = #redBillId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="redBillNo">
RED_BILL_NO = #redBillNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inputCode">
INPUT_CODE = #inputCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inputName">
INPUT_NAME = #inputName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="voucherCode">
VOUCHER_CODE = #voucherCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="voucherDate">
VOUCHER_DATE = #voucherDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="voucherSummary">
VOUCHER_SUMMARY = #voucherSummary#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="voucherAffixNum">
VOUCHER_AFFIX_NUM = #voucherAffixNum#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="msgReturn">
MSG_RETURN = #msgReturn#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="isDeleted">
IS_DELETED = #isDeleted#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="remark">
REMARK = #remark#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdUserId">
CREATED_USER_ID = #createdUserId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdUserName">
CREATED_USER_NAME = #createdUserName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="modifiedUserId">
MODIFIED_USER_ID = #modifiedUserId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="modifiedUserName">
MODIFIED_USER_NAME = #modifiedUserName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="modifiedTime">
MODIFIED_TIME = #modifiedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol1">
EXT_COL1 = #extCol1#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol2">
EXT_COL2 = #extCol2#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol3">
EXT_COL3 = #extCol3#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol4">
EXT_COL4 = #extCol4#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol5">
EXT_COL5 = #extCol5#
</isNotEmpty>
<!-- 处理开始时间 -->
<isNotEmpty prepend=" AND " property="voucherDateStar">
<![CDATA[
(NULLIF(VOUCHER_DATE,' ') IS NOT NULL or NULLIF(VOUCHER_DATE,' ') IS NOT NULL) and (SUBSTR(VOUCHER_DATE, 0, 8) >= REPLACE(#voucherDateStar#, '-')
or SUBSTR(VOUCHER_DATE, 0, 8) >= REPLACE(#voucherDateStar#, '-'))
]]>
</isNotEmpty>
<!-- 处理结束时间 -->
<isNotEmpty prepend=" AND " property="voucherDateEnd">
<![CDATA[
(NULLIF(VOUCHER_DATE,' ') IS NOT NULL or NULLIF(VOUCHER_DATE,' ') IS NOT NULL) and (SUBSTR(VOUCHER_DATE, 0, 8) <= REPLACE(#voucherDateEnd#, '-')
or SUBSTR(VOUCHER_DATE, 0, 8) <= REPLACE(#voucherDateEnd#, '-'))
]]>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billStatusList">
BILL_STATUS in
<iterate prepend="" property="billStatusList" open="(" close=")" conjunction=",">
#billStatusList[]#
</iterate>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="sourceBillTypeList">
SOURCE_BILL_TYPE in
<iterate prepend="" property="sourceBillTypeList" open="(" close=")" conjunction=",">
#sourceBillTypeList[]#
</iterate>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billMainIds">
BILL_MAIN_ID in
<iterate prepend="" property="billMainIds" open="(" close=")" conjunction=",">
#billMainIds[]#
</iterate>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billStatusArr">
BILL_STATUS in
<iterate prepend="" property="billStatusArr" open="(" close=")" conjunction=",">
#billStatusArr[]#
</iterate>
</isNotEmpty>
order by CREATED_TIME desc
</select>
<select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hpjxSchema}.HPPZ022 WHERE 1=1
</select>
<insert id="insert">
INSERT INTO ${hpjxSchema}.HPPZ022 (
<dynamic prepend=" ">
<isNotEmpty prepend=", " property="billMainId">BILL_MAIN_ID</isNotEmpty> <!-- 抛账单据主表ID -->
<isNotEmpty prepend=", " property="billMainNo">BILL_MAIN_NO</isNotEmpty> <!-- 抛账单据主表编码 -->
<isNotEmpty prepend=", " property="inAccount">IN_ACCOUNT</isNotEmpty> <!-- 账套 -->
<isNotEmpty prepend=", " property="billDate">BILL_DATE</isNotEmpty> <!-- 单据日期 -->
<isNotEmpty prepend=", " property="periodCode">PERIOD_CODE</isNotEmpty> <!-- 会计期 -->
<isNotEmpty prepend=", " property="billNo">BILL_NO</isNotEmpty> <!-- 标财单据号 -->
<isNotEmpty prepend=", " property="billType">BILL_TYPE</isNotEmpty> <!-- 标财单据类型 -->
<isNotEmpty prepend=", " property="sysId">SYS_ID</isNotEmpty> <!-- 系统别 -->
<isNotEmpty prepend=", " property="sourceBillType">SOURCE_BILL_TYPE</isNotEmpty> <!-- 业务类型 -->
<isNotEmpty prepend=", " property="sourceBillId">SOURCE_BILL_ID</isNotEmpty> <!-- 业务单据ID -->
<isNotEmpty prepend=", " property="sourceBillNo">SOURCE_BILL_NO</isNotEmpty> <!-- 业务单据号 -->
<isNotEmpty prepend=", " property="totalAmount">TOTAL_AMOUNT</isNotEmpty> <!-- 单据金额 -->
<isNotEmpty prepend=", " property="billStatus">BILL_STATUS</isNotEmpty> <!-- 抛账状态 -->
<isNotEmpty prepend=", " property="functionalCurrency">FUNCTIONAL_CURRENCY</isNotEmpty> <!-- 本位币代码 -->
<isNotEmpty prepend=", " property="exchangeRate">EXCHANGE_RATE</isNotEmpty> <!-- 汇率 -->
<isNotEmpty prepend=", " property="exchangeType">EXCHANGE_TYPE</isNotEmpty> <!-- 汇率类型 -->
<isNotEmpty prepend=", " property="redFlag">RED_FLAG</isNotEmpty> <!-- 红冲/作废标记 -->
<isNotEmpty prepend=", " property="redBillId">RED_BILL_ID</isNotEmpty> <!-- 被红冲单据ID -->
<isNotEmpty prepend=", " property="redBillNo">RED_BILL_NO</isNotEmpty> <!-- 被红冲单据号 -->
<isNotEmpty prepend=", " property="inputCode">INPUT_CODE</isNotEmpty> <!-- 制单人编号 -->
<isNotEmpty prepend=", " property="inputName">INPUT_NAME</isNotEmpty> <!-- 制单人名称 -->
<isNotEmpty prepend=", " property="voucherCode">VOUCHER_CODE</isNotEmpty> <!-- 凭证号 -->
<isNotEmpty prepend=", " property="voucherDate">VOUCHER_DATE</isNotEmpty> <!-- 凭证日期 -->
<isNotEmpty prepend=", " property="voucherSummary">VOUCHER_SUMMARY</isNotEmpty> <!-- 凭证摘要 -->
<isNotEmpty prepend=", " property="voucherAffixNum">VOUCHER_AFFIX_NUM</isNotEmpty> <!-- 附件张数 -->
<isNotEmpty prepend=", " property="msgReturn">MSG_RETURN</isNotEmpty> <!-- 标财反馈 -->
<isNotEmpty prepend=", " property="isDeleted">IS_DELETED</isNotEmpty> <!-- 删除标记 -->
<isNotEmpty prepend=", " property="remark">REMARK</isNotEmpty> <!-- 备注 -->
<isNotEmpty prepend=", " property="createdUserId">CREATED_USER_ID</isNotEmpty> <!-- 创建人ID -->
<isNotEmpty prepend=", " property="createdUserName">CREATED_USER_NAME</isNotEmpty> <!-- 创建人名称 -->
<isNotEmpty prepend=", " property="createdTime">CREATED_TIME</isNotEmpty> <!-- 创建时间 -->
<isNotEmpty prepend=", " property="modifiedUserId">MODIFIED_USER_ID</isNotEmpty> <!-- 更新人ID -->
<isNotEmpty prepend=", " property="modifiedUserName">MODIFIED_USER_NAME</isNotEmpty> <!-- 更新人名称 -->
<isNotEmpty prepend=", " property="modifiedTime">MODIFIED_TIME</isNotEmpty> <!-- 更新时间 -->
<isNotEmpty prepend=", " property="extCol1">EXT_COL1</isNotEmpty>
<isNotEmpty prepend=", " property="extCol2">EXT_COL2</isNotEmpty>
<isNotEmpty prepend=", " property="extCol3">EXT_COL3</isNotEmpty>
<isNotEmpty prepend=", " property="extCol4">EXT_COL4</isNotEmpty>
<isNotEmpty prepend=", " property="extCol5">EXT_COL5</isNotEmpty>
</dynamic>
)
VALUES (
<dynamic prepend=" ">
<isNotEmpty prepend=", " property="billMainId">#billMainId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="billMainNo">#billMainNo:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="inAccount">#inAccount:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="billDate">#billDate:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="periodCode">#periodCode:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="billNo">#billNo:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="billType">#billType:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="sysId">#sysId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="sourceBillType">#sourceBillType:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="sourceBillId">#sourceBillId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="sourceBillNo">#sourceBillNo:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="totalAmount">#totalAmount:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="billStatus">#billStatus:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="functionalCurrency">#functionalCurrency:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="exchangeRate">#exchangeRate:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="exchangeType">#exchangeType:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="redFlag">#redFlag:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="redBillId">#redBillId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="redBillNo">#redBillNo:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="inputCode">#inputCode:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="inputName">#inputName:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="voucherCode">#voucherCode:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="voucherDate">#voucherDate:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="voucherSummary">#voucherSummary:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="voucherAffixNum">#voucherAffixNum:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="msgReturn">#msgReturn:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="isDeleted">#isDeleted:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="remark">#remark:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="createdUserId">#createdUserId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="createdUserName">#createdUserName:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="createdTime">#createdTime:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedUserId">#modifiedUserId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedUserName">#modifiedUserName:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedTime">#modifiedTime:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol1">#extCol1:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol2">#extCol2:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol3">#extCol3:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol4">#extCol4:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol5">#extCol5:VARCHAR#</isNotEmpty>
</dynamic>
)
</insert>
<delete id="delete">
DELETE FROM ${hpjxSchema}.HPPZ022 WHERE
</delete>
<update id="update">
UPDATE ${hpjxSchema}.HPPZ022
SET
<dynamic prepend=" ">
<isNotEmpty prepend=", " property="billMainId">BILL_MAIN_ID = #billMainId#</isNotEmpty> <!-- 抛账单据主表ID -->
<isNotEmpty prepend=", " property="billMainNo">BILL_MAIN_NO = #billMainNo#</isNotEmpty> <!-- 抛账单据主表编码 -->
<isNotEmpty prepend=", " property="inAccount">IN_ACCOUNT = #inAccount#</isNotEmpty> <!-- 账套 -->
<isNotEmpty prepend=", " property="billDate">BILL_DATE = #billDate:VARCHAR#</isNotEmpty> <!-- 单据日期 -->
<isNotEmpty prepend=", " property="periodCode">PERIOD_CODE = #periodCode#</isNotEmpty> <!-- 会计期 -->
<isNotEmpty prepend=", " property="billNo">BILL_NO = #billNo#</isNotEmpty> <!-- 标财单据号 -->
<isNotEmpty prepend=", " property="billType">BILL_TYPE = #billType#</isNotEmpty> <!-- 标财单据类型 -->
<isNotEmpty prepend=", " property="sysId">SYS_ID = #sysId#</isNotEmpty> <!-- 系统别 -->
<isNotEmpty prepend=", " property="sourceBillType">SOURCE_BILL_TYPE = #sourceBillType#
</isNotEmpty> <!-- 业务类型 -->
<isNotEmpty prepend=", " property="sourceBillId">SOURCE_BILL_ID = #sourceBillId#
</isNotEmpty> <!-- 业务单据ID -->
<isNotEmpty prepend=", " property="sourceBillNo">SOURCE_BILL_NO = #sourceBillNo#
</isNotEmpty> <!-- 业务单据号 -->
<isNotEmpty prepend=", " property="totalAmount">TOTAL_AMOUNT = #totalAmount:NUMERIC#
</isNotEmpty> <!-- 单据金额 -->
<isNotEmpty prepend=", " property="billStatus">BILL_STATUS = #billStatus#</isNotEmpty> <!-- 抛账状态 -->
<isNotEmpty prepend=", " property="functionalCurrency">FUNCTIONAL_CURRENCY = #functionalCurrency#
</isNotEmpty> <!-- 本位币代码 -->
<isNotEmpty prepend=", " property="exchangeRate">EXCHANGE_RATE = #exchangeRate:NUMERIC#
</isNotEmpty> <!-- 汇率 -->
<isNotEmpty prepend=", " property="exchangeType">EXCHANGE_TYPE = #exchangeType#</isNotEmpty> <!-- 汇率类型 -->
<isNotEmpty prepend=", " property="redFlag">RED_FLAG = #redFlag#</isNotEmpty> <!-- 红冲/作废标记 -->
<isNotEmpty prepend=", " property="redBillId">RED_BILL_ID = #redBillId#</isNotEmpty> <!-- 被红冲单据ID -->
<isNotEmpty prepend=", " property="redBillNo">RED_BILL_NO = #redBillNo#</isNotEmpty> <!-- 被红冲单据号 -->
<isNotEmpty prepend=", " property="inputCode">INPUT_CODE = #inputCode#</isNotEmpty> <!-- 制单人编号 -->
<isNotEmpty prepend=", " property="inputName">INPUT_NAME = #inputName#</isNotEmpty> <!-- 制单人名称 -->
<isNotEmpty prepend=", " property="voucherCode">VOUCHER_CODE = #voucherCode#</isNotEmpty> <!-- 凭证号 -->
<isNotEmpty prepend=", " property="voucherDate">VOUCHER_DATE = #voucherDate:VARCHAR#
</isNotEmpty> <!-- 凭证日期 -->
<isNotEmpty prepend=", " property="voucherSummary">VOUCHER_SUMMARY = #voucherSummary#
</isNotEmpty> <!-- 凭证摘要 -->
<isNotEmpty prepend=", " property="voucherAffixNum">VOUCHER_AFFIX_NUM = #voucherAffixNum:NUMERIC#
</isNotEmpty> <!-- 附件张数 -->
<isNotEmpty prepend=", " property="msgReturn">MSG_RETURN = #msgReturn#</isNotEmpty> <!-- 标财反馈 -->
<isNotEmpty prepend=", " property="isDeleted">IS_DELETED = #isDeleted#</isNotEmpty> <!-- 删除标记 -->
<isNotEmpty prepend=", " property="remark">REMARK = #remark#</isNotEmpty> <!-- 备注 -->
<isNotEmpty prepend=", " property="createdUserId">CREATED_USER_ID = #createdUserId#
</isNotEmpty> <!-- 创建人ID -->
<isNotEmpty prepend=", " property="createdUserName">CREATED_USER_NAME = #createdUserName#
</isNotEmpty> <!-- 创建人名称 -->
<isNotEmpty prepend=", " property="createdTime">CREATED_TIME = #createdTime#</isNotEmpty> <!-- 创建时间 -->
<isNotEmpty prepend=", " property="modifiedUserId">MODIFIED_USER_ID = #modifiedUserId#
</isNotEmpty> <!-- 更新人ID -->
<isNotEmpty prepend=", " property="modifiedUserName">MODIFIED_USER_NAME = #modifiedUserName#
</isNotEmpty> <!-- 更新人名称 -->
<isNotEmpty prepend=", " property="modifiedTime">MODIFIED_TIME = #modifiedTime#</isNotEmpty> <!-- 更新时间 -->
<isNotEmpty prepend=", " property="extCol1">EXT_COL1 = #extCol1#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol2">EXT_COL2 = #extCol2#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol3">EXT_COL3 = #extCol3#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol4">EXT_COL4 = #extCol4#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol5">EXT_COL5 = #extCol5#</isNotEmpty>
</dynamic>
WHERE BILL_MAIN_ID = #billMainId#
</update>
<!-- 抛送状态修改-->
<update id="updateBillStatus">
UPDATE ${hpjxSchema}.HPPZ022
SET
BILL_STATUS = #billStatus# <!-- 抛送状态:00:未抛送 10:发送中 20:抛帐成功 30:抛帐失败 -->
WHERE BILL_MAIN_ID = #billMainId#
</update>
</sqlMap>
<?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">
<sqlMap namespace="HPPZ022A">
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.pz.domain.HPPZ022A">
SELECT
BILL_LINE_ID as "billLineId", <!-- 抛帐明细表ID -->
BILL_LINE_NO as "billLineNo", <!-- 抛账明细编码 -->
BILL_MAIN_ID as "billMainId", <!-- 抛账单据主表ID -->
IN_ACCOUNT as "inAccount", <!-- 账套 -->
ASSET_FLAG as "assetFlag", <!-- 资产类型 -->
ZEEO_TYPE as "zeeoType", <!-- 资产大类 -->
USE_STATUS as "useStatus", <!-- 使用状态 -->
COST_CENTER as "costCenter", <!-- 责任中心编码 -->
COST_CENTER_NAME as "costCenterName", <!-- 责任中心名称 -->
PROJECT_CODE as "projectCode", <!-- 项目编号 -->
DOCUMENT_AMOUNT as "documentAmount", <!-- 单据原币不含税金额 -->
DOCUMENT_AMOUNT_TAX as "documentAmountTax", <!-- 单据原币税额 -->
FUNCTIONAL_AMOUNT as "functionalAmount", <!-- 本位币不含税金额 -->
FUNCTIONAL_AMOUNT_TAX as "functionalAmountTax", <!-- 本位币税额 -->
TAX_RATE as "taxRate", <!-- 税率 -->
QUANTITY as "quantity", <!-- 数量 -->
QUANTITY_UNIT as "quantityUnit", <!-- 数量单位 -->
DETAIL_RESERVE_C1 as "detailReserveC1",
DETAIL_RESERVE_C2 as "detailReserveC2",
DETAIL_RESERVE_C3 as "detailReserveC3",
DETAIL_RESERVE_C4 as "detailReserveC4",
DETAIL_RESERVE_C5 as "detailReserveC5",
DETAIL_RESERVE_C6 as "detailReserveC6",
DETAIL_RESERVE_C7 as "detailReserveC7",
DETAIL_RESERVE_C8 as "detailReserveC8",
DETAIL_RESERVE_C9 as "detailReserveC9",
DETAIL_RESERVE_C10 as "detailReserveC10",
DETAIL_RESERVE_C11 as "detailReserveC11",
DETAIL_RESERVE_C12 as "detailReserveC12",
DETAIL_RESERVE_C13 as "detailReserveC13",
DETAIL_RESERVE_C14 as "detailReserveC14",
DETAIL_RESERVE_C15 as "detailReserveC15",
DETAIL_RESERVE_C16 as "detailReserveC16",
DETAIL_RESERVE_C17 as "detailReserveC17",
DETAIL_RESERVE_C18 as "detailReserveC18",
DETAIL_RESERVE_C19 as "detailReserveC19",
DETAIL_RESERVE_C20 as "detailReserveC20",
DETAIL_RESERVE_C21 as "detailReserveC21",
DETAIL_RESERVE_C22 as "detailReserveC22",
DETAIL_RESERVE_C23 as "detailReserveC23",
DETAIL_RESERVE_C24 as "detailReserveC24",
DETAIL_RESERVE_C25 as "detailReserveC25",
DETAIL_RESERVE_C26 as "detailReserveC26",
DETAIL_RESERVE_C27 as "detailReserveC27",
DETAIL_RESERVE_C28 as "detailReserveC28",
DETAIL_RESERVE_C29 as "detailReserveC29",
DETAIL_RESERVE_C30 as "detailReserveC30",
DETAIL_RESERVE_N1 as "detailReserveN1",
DETAIL_RESERVE_N2 as "detailReserveN2",
DETAIL_RESERVE_N3 as "detailReserveN3",
DETAIL_RESERVE_N4 as "detailReserveN4",
DETAIL_RESERVE_N5 as "detailReserveN5",
IS_DELETED as "isDeleted",
REMARK as "remark",
CREATED_USER_ID as "createdUserId",
CREATED_USER_NAME as "createdUserName",
CREATED_TIME as "createdTime",
MODIFIED_USER_ID as "modifiedUserId",
MODIFIED_USER_NAME as "modifiedUserName",
MODIFIED_TIME as "modifiedTime",
EXT_COL1 as "extCol1",
EXT_COL2 as "extCol2",
EXT_COL3 as "extCol3",
EXT_COL4 as "extCol4",
EXT_COL5 as "extCol5"
FROM ${hpjxSchema}.HPPZ022A WHERE 1=1
<isNotEmpty prepend=" AND " property="billLineId">
BILL_LINE_ID = #billLineId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billLineNo">
BILL_LINE_NO = #billLineNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billMainId">
BILL_MAIN_ID = #billMainId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inAccount">
IN_ACCOUNT = #inAccount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="assetFlag">
ASSET_FLAG = #assetFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="zeeoType">
ZEEO_TYPE = #zeeoType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="useStatus">
USE_STATUS = #useStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="costCenter">
COST_CENTER = #costCenter#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="costCenterName">
COST_CENTER_NAME = #costCenterName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projectCode">
PROJECT_CODE = #projectCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="documentAmount">
DOCUMENT_AMOUNT = #documentAmount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="documentAmountTax">
DOCUMENT_AMOUNT_TAX = #documentAmountTax#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="functionalAmount">
FUNCTIONAL_AMOUNT = #functionalAmount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="functionalAmountTax">
FUNCTIONAL_AMOUNT_TAX = #functionalAmountTax#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="taxRate">
TAX_RATE = #taxRate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantity">
QUANTITY = #quantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantityUnit">
QUANTITY_UNIT = #quantityUnit#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC1">
DETAIL_RESERVE_C1 = #detailReserveC1#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC2">
DETAIL_RESERVE_C2 = #detailReserveC2#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC3">
DETAIL_RESERVE_C3 = #detailReserveC3#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC4">
DETAIL_RESERVE_C4 = #detailReserveC4#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC5">
DETAIL_RESERVE_C5 = #detailReserveC5#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC6">
DETAIL_RESERVE_C6 = #detailReserveC6#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC7">
DETAIL_RESERVE_C7 = #detailReserveC7#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC8">
DETAIL_RESERVE_C8 = #detailReserveC8#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC9">
DETAIL_RESERVE_C9 = #detailReserveC9#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC10">
DETAIL_RESERVE_C10 = #detailReserveC10#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC11">
DETAIL_RESERVE_C11 = #detailReserveC11#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC12">
DETAIL_RESERVE_C12 = #detailReserveC12#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC13">
DETAIL_RESERVE_C13 = #detailReserveC13#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC14">
DETAIL_RESERVE_C14 = #detailReserveC14#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC15">
DETAIL_RESERVE_C15 = #detailReserveC15#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC16">
DETAIL_RESERVE_C16 = #detailReserveC16#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC17">
DETAIL_RESERVE_C17 = #detailReserveC17#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC18">
DETAIL_RESERVE_C18 = #detailReserveC18#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC19">
DETAIL_RESERVE_C19 = #detailReserveC19#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC20">
DETAIL_RESERVE_C20 = #detailReserveC20#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC21">
DETAIL_RESERVE_C21 = #detailReserveC21#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC22">
DETAIL_RESERVE_C22 = #detailReserveC22#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC23">
DETAIL_RESERVE_C23 = #detailReserveC23#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC24">
DETAIL_RESERVE_C24 = #detailReserveC24#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC25">
DETAIL_RESERVE_C25 = #detailReserveC25#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC26">
DETAIL_RESERVE_C26 = #detailReserveC26#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC27">
DETAIL_RESERVE_C27 = #detailReserveC27#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC28">
DETAIL_RESERVE_C28 = #detailReserveC28#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC29">
DETAIL_RESERVE_C29 = #detailReserveC29#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveC30">
DETAIL_RESERVE_C30 = #detailReserveC30#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveN1">
DETAIL_RESERVE_N1 = #detailReserveN1#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveN2">
DETAIL_RESERVE_N2 = #detailReserveN2#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveN3">
DETAIL_RESERVE_N3 = #detailReserveN3#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveN4">
DETAIL_RESERVE_N4 = #detailReserveN4#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="detailReserveN5">
DETAIL_RESERVE_N5 = #detailReserveN5#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="isDeleted">
IS_DELETED = #isDeleted#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="remark">
REMARK = #remark#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdUserId">
CREATED_USER_ID = #createdUserId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdUserName">
CREATED_USER_NAME = #createdUserName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="modifiedUserId">
MODIFIED_USER_ID = #modifiedUserId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="modifiedUserName">
MODIFIED_USER_NAME = #modifiedUserName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="modifiedTime">
MODIFIED_TIME = #modifiedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol1">
EXT_COL1 = #extCol1#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol2">
EXT_COL2 = #extCol2#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol3">
EXT_COL3 = #extCol3#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol4">
EXT_COL4 = #extCol4#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="extCol5">
EXT_COL5 = #extCol5#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billMainIds">
BILL_MAIN_ID in
<iterate prepend="" property="billMainIds" open="(" close=")" conjunction=",">
#billMainIds[]#
</iterate>
</isNotEmpty>
<dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy">
$orderBy$
</isNotEmpty>
</dynamic>
</select>
<select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hpjxSchema}.HPPZ022A WHERE 1=1
</select>
<insert id="insert">
INSERT INTO ${hpjxSchema}.HPPZ022A (
<dynamic prepend=" ">
<isNotEmpty prepend=", " property="billLineId">BILL_LINE_ID</isNotEmpty> <!-- 抛帐明细表ID -->
<isNotEmpty prepend=", " property="billLineNo">BILL_LINE_NO</isNotEmpty> <!-- 抛账明细编码 -->
<isNotEmpty prepend=", " property="billMainId">BILL_MAIN_ID</isNotEmpty> <!-- 抛账单据主表ID -->
<isNotEmpty prepend=", " property="inAccount">IN_ACCOUNT</isNotEmpty> <!-- 账套 -->
<isNotEmpty prepend=", " property="assetFlag">ASSET_FLAG</isNotEmpty> <!-- 资产类型 -->
<isNotEmpty prepend=", " property="zeeoType">ZEEO_TYPE</isNotEmpty> <!-- 资产大类 -->
<isNotEmpty prepend=", " property="useStatus">USE_STATUS</isNotEmpty> <!-- 使用状态 -->
<isNotEmpty prepend=", " property="costCenter">COST_CENTER</isNotEmpty> <!-- 责任中心编码 -->
<isNotEmpty prepend=", " property="costCenterName">COST_CENTER_NAME</isNotEmpty> <!-- 责任中心名称 -->
<isNotEmpty prepend=", " property="projectCode">PROJECT_CODE</isNotEmpty> <!-- 项目编号 -->
<isNotEmpty prepend=", " property="documentAmount">DOCUMENT_AMOUNT</isNotEmpty> <!-- 单据原币不含税金额 -->
<isNotEmpty prepend=", " property="documentAmountTax">DOCUMENT_AMOUNT_TAX</isNotEmpty> <!-- 单据原币税额 -->
<isNotEmpty prepend=", " property="functionalAmount">FUNCTIONAL_AMOUNT</isNotEmpty> <!-- 本位币不含税金额 -->
<isNotEmpty prepend=", " property="functionalAmountTax">FUNCTIONAL_AMOUNT_TAX</isNotEmpty> <!-- 本位币税额 -->
<isNotEmpty prepend=", " property="taxRate">TAX_RATE</isNotEmpty> <!-- 税率 -->
<isNotEmpty prepend=", " property="quantity">QUANTITY</isNotEmpty> <!-- 数量 -->
<isNotEmpty prepend=", " property="quantityUnit">QUANTITY_UNIT</isNotEmpty> <!-- 数量单位 -->
<isNotEmpty prepend=", " property="detailReserveC1">DETAIL_RESERVE_C1</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC2">DETAIL_RESERVE_C2</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC3">DETAIL_RESERVE_C3</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC4">DETAIL_RESERVE_C4</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC5">DETAIL_RESERVE_C5</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC6">DETAIL_RESERVE_C6</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC7">DETAIL_RESERVE_C7</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC8">DETAIL_RESERVE_C8</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC9">DETAIL_RESERVE_C9</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC10">DETAIL_RESERVE_C10</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC11">DETAIL_RESERVE_C11</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC12">DETAIL_RESERVE_C12</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC13">DETAIL_RESERVE_C13</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC14">DETAIL_RESERVE_C14</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC15">DETAIL_RESERVE_C15</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC16">DETAIL_RESERVE_C16</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC17">DETAIL_RESERVE_C17</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC18">DETAIL_RESERVE_C18</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC19">DETAIL_RESERVE_C19</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC20">DETAIL_RESERVE_C20</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC21">DETAIL_RESERVE_C21</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC22">DETAIL_RESERVE_C22</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC23">DETAIL_RESERVE_C23</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC24">DETAIL_RESERVE_C24</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC25">DETAIL_RESERVE_C25</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC26">DETAIL_RESERVE_C26</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC27">DETAIL_RESERVE_C27</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC28">DETAIL_RESERVE_C28</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC29">DETAIL_RESERVE_C29</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC30">DETAIL_RESERVE_C30</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN1">DETAIL_RESERVE_N1</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN2">DETAIL_RESERVE_N2</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN3">DETAIL_RESERVE_N3</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN4">DETAIL_RESERVE_N4</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN5">DETAIL_RESERVE_N5</isNotEmpty>
<isNotEmpty prepend=", " property="isDeleted">IS_DELETED</isNotEmpty>
<isNotEmpty prepend=", " property="remark">REMARK</isNotEmpty>
<isNotEmpty prepend=", " property="createdUserId">CREATED_USER_ID</isNotEmpty>
<isNotEmpty prepend=", " property="createdUserName">CREATED_USER_NAME</isNotEmpty>
<isNotEmpty prepend=", " property="createdTime">CREATED_TIME</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedUserId">MODIFIED_USER_ID</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedUserName">MODIFIED_USER_NAME</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedTime">MODIFIED_TIME</isNotEmpty>
<isNotEmpty prepend=", " property="extCol1">EXT_COL1</isNotEmpty>
<isNotEmpty prepend=", " property="extCol2">EXT_COL2</isNotEmpty>
<isNotEmpty prepend=", " property="extCol3">EXT_COL3</isNotEmpty>
<isNotEmpty prepend=", " property="extCol4">EXT_COL4</isNotEmpty>
<isNotEmpty prepend=", " property="extCol5">EXT_COL5</isNotEmpty>
</dynamic>
) VALUES (
<dynamic prepend=" ">
<isNotEmpty prepend=", " property="billLineId">#billLineId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="billLineNo">#billLineNo:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="billMainId">#billMainId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="inAccount">#inAccount:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="assetFlag">#assetFlag:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="zeeoType">#zeeoType:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="useStatus">#useStatus:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="costCenter">#costCenter:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="costCenterName">#costCenterName:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="projectCode">#projectCode:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="documentAmount">#documentAmount:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="documentAmountTax">#documentAmountTax:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="functionalAmount">#functionalAmount:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="functionalAmountTax">#functionalAmountTax:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="taxRate">#taxRate:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="quantity">#quantity:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="quantityUnit">#quantityUnit:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC1">#detailReserveC1:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC2">#detailReserveC2:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC3">#detailReserveC3:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC4">#detailReserveC4:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC5">#detailReserveC5:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC6">#detailReserveC6:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC7">#detailReserveC7:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC8">#detailReserveC8:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC9">#detailReserveC9:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC10">#detailReserveC10:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC11">#detailReserveC11:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC12">#detailReserveC12:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC13">#detailReserveC13:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC14">#detailReserveC14:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC15">#detailReserveC15:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC16">#detailReserveC16:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC17">#detailReserveC17:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC18">#detailReserveC18:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC19">#detailReserveC19:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC20">#detailReserveC20:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC21">#detailReserveC21:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC22">#detailReserveC22:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC23">#detailReserveC23:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC24">#detailReserveC24:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC25">#detailReserveC25:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC26">#detailReserveC26:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC27">#detailReserveC27:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC28">#detailReserveC28:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC29">#detailReserveC29:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC30">#detailReserveC30:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN1">#detailReserveN1:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN2">#detailReserveN2:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN3">#detailReserveN3:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN4">#detailReserveN4:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN5">#detailReserveN5:NUMERIC#</isNotEmpty>
<isNotEmpty prepend=", " property="isDeleted">#isDeleted:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="remark">#remark:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="createdUserId">#createdUserId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="createdUserName">#createdUserName:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="createdTime">#createdTime:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedUserId">#modifiedUserId:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedUserName">#modifiedUserName:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedTime">#modifiedTime:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol1">#extCol1:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol2">#extCol2:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol3">#extCol3:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol4">#extCol4:VARCHAR#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol5">#extCol5:VARCHAR#</isNotEmpty>
</dynamic>
)
</insert>
<delete id="delete">
DELETE FROM ${hpjxSchema}.HPPZ022A WHERE
</delete>
<update id="update">
UPDATE ${hpjxSchema}.HPPZ022A
SET
<dynamic prepend=" ">
<isNotEmpty prepend=", " property="billLineId">BILL_LINE_ID = #billLineId#</isNotEmpty> <!-- 抛帐明细表ID -->
<isNotEmpty prepend=", " property="billLineNo">BILL_LINE_NO = #billLineNo#</isNotEmpty> <!-- 抛账明细编码 -->
<isNotEmpty prepend=", " property="billMainId">BILL_MAIN_ID = #billMainId#</isNotEmpty> <!-- 抛账单据主表ID -->
<isNotEmpty prepend=", " property="inAccount">IN_ACCOUNT = #inAccount#</isNotEmpty> <!-- 账套 -->
<isNotEmpty prepend=", " property="assetFlag">ASSET_FLAG = #assetFlag#</isNotEmpty> <!-- 资产类型 -->
<isNotEmpty prepend=", " property="zeeoType">ZEEO_TYPE = #zeeoType#</isNotEmpty> <!-- 资产大类 -->
<isNotEmpty prepend=", " property="useStatus">USE_STATUS = #useStatus#</isNotEmpty> <!-- 使用状态 -->
<isNotEmpty prepend=", " property="costCenter">COST_CENTER = #costCenter#</isNotEmpty> <!-- 责任中心编码 -->
<isNotEmpty prepend=", " property="costCenterName">COST_CENTER_NAME = #costCenterName#
</isNotEmpty> <!-- 责任中心名称 -->
<isNotEmpty prepend=", " property="projectCode">PROJECT_CODE = #projectCode#</isNotEmpty> <!-- 项目编号 -->
<isNotEmpty prepend=", " property="documentAmount">DOCUMENT_AMOUNT = #documentAmount:NUMERIC#
</isNotEmpty> <!-- 单据原币不含税金额 -->
<isNotEmpty prepend=", " property="documentAmountTax">DOCUMENT_AMOUNT_TAX = #documentAmountTax:NUMERIC#
</isNotEmpty> <!-- 单据原币税额 -->
<isNotEmpty prepend=", " property="functionalAmount">FUNCTIONAL_AMOUNT = #functionalAmount:NUMERIC#
</isNotEmpty> <!-- 本位币不含税金额 -->
<isNotEmpty prepend=", " property="functionalAmountTax">FUNCTIONAL_AMOUNT_TAX =
#functionalAmountTax:NUMERIC#
</isNotEmpty> <!-- 本位币税额 -->
<isNotEmpty prepend=", " property="taxRate">TAX_RATE = #taxRate:NUMERIC#</isNotEmpty> <!-- 税率 -->
<isNotEmpty prepend=", " property="quantity">QUANTITY = #quantity:NUMERIC#</isNotEmpty> <!-- 数量 -->
<isNotEmpty prepend=", " property="quantityUnit">QUANTITY_UNIT = #quantityUnit#</isNotEmpty> <!-- 数量单位 -->
<isNotEmpty prepend=", " property="detailReserveC1">DETAIL_RESERVE_C1 = #detailReserveC1#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC2">DETAIL_RESERVE_C2 = #detailReserveC2#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC3">DETAIL_RESERVE_C3 = #detailReserveC3#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC4">DETAIL_RESERVE_C4 = #detailReserveC4#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC5">DETAIL_RESERVE_C5 = #detailReserveC5#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC6">DETAIL_RESERVE_C6 = #detailReserveC6#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC7">DETAIL_RESERVE_C7 = #detailReserveC7#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC8">DETAIL_RESERVE_C8 = #detailReserveC8#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC9">DETAIL_RESERVE_C9 = #detailReserveC9#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC10">DETAIL_RESERVE_C10 = #detailReserveC10#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC11">DETAIL_RESERVE_C11 = #detailReserveC11#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC12">DETAIL_RESERVE_C12 = #detailReserveC12#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC13">DETAIL_RESERVE_C13 = #detailReserveC13#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC14">DETAIL_RESERVE_C14 = #detailReserveC14#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC15">DETAIL_RESERVE_C15 = #detailReserveC15#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC16">DETAIL_RESERVE_C16 = #detailReserveC16#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC17">DETAIL_RESERVE_C17 = #detailReserveC17#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC18">DETAIL_RESERVE_C18 = #detailReserveC18#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC19">DETAIL_RESERVE_C19 = #detailReserveC19#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC20">DETAIL_RESERVE_C20 = #detailReserveC20#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC21">DETAIL_RESERVE_C21 = #detailReserveC21#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC22">DETAIL_RESERVE_C22 = #detailReserveC22#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC23">DETAIL_RESERVE_C23 = #detailReserveC23#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC24">DETAIL_RESERVE_C24 = #detailReserveC24#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC25">DETAIL_RESERVE_C25 = #detailReserveC25#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC26">DETAIL_RESERVE_C26 = #detailReserveC26#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC27">DETAIL_RESERVE_C27 = #detailReserveC27#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC28">DETAIL_RESERVE_C28 = #detailReserveC28#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC29">DETAIL_RESERVE_C29 = #detailReserveC29#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveC30">DETAIL_RESERVE_C30 = #detailReserveC30#</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN1">DETAIL_RESERVE_N1 = #detailReserveN1:NUMERIC#
</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN2">DETAIL_RESERVE_N2 = #detailReserveN2:NUMERIC#
</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN3">DETAIL_RESERVE_N3 = #detailReserveN3:NUMERIC#
</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN4">DETAIL_RESERVE_N4 = #detailReserveN4:NUMERIC#
</isNotEmpty>
<isNotEmpty prepend=", " property="detailReserveN5">DETAIL_RESERVE_N5 = #detailReserveN5:NUMERIC#
</isNotEmpty>
<isNotEmpty prepend=", " property="isDeleted">IS_DELETED = #isDeleted#</isNotEmpty>
<isNotEmpty prepend=", " property="remark">REMARK = #remark#</isNotEmpty>
<isNotEmpty prepend=", " property="createdUserId">CREATED_USER_ID = #createdUserId#</isNotEmpty>
<isNotEmpty prepend=", " property="createdUserName">CREATED_USER_NAME = #createdUserName#</isNotEmpty>
<isNotEmpty prepend=", " property="createdTime">CREATED_TIME = #createdTime#</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedUserId">MODIFIED_USER_ID = #modifiedUserId#</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedUserName">MODIFIED_USER_NAME = #modifiedUserName#</isNotEmpty>
<isNotEmpty prepend=", " property="modifiedTime">MODIFIED_TIME = #modifiedTime#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol1">EXT_COL1 = #extCol1#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol2">EXT_COL2 = #extCol2#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol3">EXT_COL3 = #extCol3#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol4">EXT_COL4 = #extCol4#</isNotEmpty>
<isNotEmpty prepend=", " property="extCol5">EXT_COL5 = #extCol5#</isNotEmpty>
</dynamic>
WHERE BILL_LINE_ID = #billLineId#
</update>
</sqlMap>
......@@ -382,4 +382,39 @@ public class ServiceHPSC103 extends ServiceEPBase {
}
}
}
@OperationLogAnnotation(operModul = "生产计划", operType = "排产", operDesc = "提交排产")
public EiInfo submitProduc(EiInfo inInfo) {
try {
List<HPSC003> hpsc003s = MapUtils.toDaoEPBases(inInfo, HPSC003.class);
for (HPSC003 hpsc003 : hpsc003s) {
List<HPSC004> hpsc004s = HPSCTools.HpSc004.queryByParent(hpsc003.getPlanInfoNo());
for (HPSC004 hpsc004:hpsc004s) {
String startDate =handleEndDate(hpsc004.getPlanCommentDate());
String endDate =handleEndDate(hpsc004.getPlanCompletionDate());
hpsc004.setPlanCommentDate(startDate);
hpsc004.setPlanCompletionDate(endDate);
DaoUtils.update(HPSC004.UPDATE, hpsc004);
}
String planCompletionDate =handleEndDate(hpsc003.getPlanCompletionDate());
hpsc003.setPlanCompletionDate(planCompletionDate);
DaoUtils.update(HPSC003.UPDATE, hpsc003);
}
}catch (PlatException e){
LogUtils.setMsg(inInfo,e,"提交排产失败");
}
return inInfo;
}
/**
* 处理计划完成日期
* @param endDate 计划完成日期
* @return 处理后的计划完成日期减3天
*/
private static String handleEndDate(String endDate){
if(StringUtils.isNotBlank(endDate)){
endDate = DateUtils.toDateStr(DateUtils.addDays(DateUtils.toDate(endDate,DateUtils.DATE8_PATTERN),-3),DateUtils.DATE8_PATTERN);
}
return endDate;
}
}
......@@ -279,7 +279,7 @@
DEP_CODE as "depCode", <!-- 部门编码 -->
REMARK as "remark", <!-- 备注 -->
MATERIAL_STATUS as "materialStatus",
PROJECT_SOURCE as "projectSource",
PROJECT_SOURCE as "projectSource"
FROM ${hpjxSchema}.t_hpsc001 WHERE 1=1
<include refid="authCondition"/>
<isNotEmpty prepend=" AND " property="companyCode">
......
......@@ -35,7 +35,7 @@
<img :src="`${ctx}/common/img/device-img4-content.png`" class="device-img1-content img" style="margin: 0;" alt/>
</div>
<div style="width: 100%;height: 30%;display: flex;margin-top: 2vh;">
<div class="content-content-title" style="width: 40%;">激光焊接机</div>
<div class="content-content-title" style="width: 40%;">龙门加工中心</div>
<img :src="`${ctx}/common/img/device-img5-content.png`" class="device-img1-content img" style="margin: 0;" alt/>
</div>
</div>
......
......@@ -73,10 +73,6 @@ let initSpec = function () {
}
function check(id, auditStatus,custCode,parentid,proPlanStatus) {
if (isBlank(custCode)) {
message("行供应商不能为空");
return;
}
const inEiInfo = new EiInfo();
inEiInfo.set("result-0-id", id);
inEiInfo.set("result-0-parentId", parentid);
......@@ -126,10 +122,10 @@ function save() {
message("勾选的第" + (i + 1) + "行已提交不允许修改!");
return;
}
if (isBlank(rows[i]['custCode'])) {
/*if (isBlank(rows[i]['custCode'])) {
message("勾选的第" + (i + 1) + "行\"供应商\"不能为空");
return;
}
}*/
if (isBlank(rows[i]['planAmount'])) {
message("勾选的第" + (i + 1) + "行\"计划数量\"不能为空");
return;
......
......@@ -16,10 +16,10 @@
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<EF:EFInput cname="采购申请单号" ename="inqu_status-0-proApplyNo" colWidth="3"/>
<EF:EFSelect cname="供应商名称" ename="inqu_status-0-custCode" colWidth="3" filter="contains" defultValue="">
<%--<EF:EFSelect cname="供应商名称" ename="inqu_status-0-custCode" colWidth="3" filter="contains" defultValue="">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="supplier_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
</EF:EFSelect>--%>
<EF:EFSelect cname="仓库名称" ename="inqu_status-0-whCode" colWidth="3" filter="contains" defultValue="">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="wh_record_block_id" textField="textField" valueField="valueField"/>
......@@ -43,11 +43,11 @@
<EF:EFColumn ename="id" primaryKey="true" cname="主键" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="公司编码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFComboColumn ename="custCode" cname="供应商名称" width="120" align="center" required="true"
<%--<EF:EFComboColumn ename="custCode" cname="供应商名称" width="120" align="center" required="true"
blockName="supplier_record_block_id" textField="textField" valueField="valueField"
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="false"
filter="contains">
</EF:EFComboColumn>
</EF:EFComboColumn>--%>
<EF:EFColumn ename="proApplyNo" cname="采购申请单号" enable="false" width="140" align="center" readonly="true"/>
<EF:EFColumn ename="proApplyDate" cname="采购申请日期" width="100" align="center" editType="date" readonly="true"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" />
......
......@@ -21,10 +21,10 @@
startName="createdDateFrom" endName="createdDateTo" row="0" role="date"
format="yyyy-MM-dd" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="true">
</EF:EFDateSpan>
<EF:EFSelect cname="供应商名称" ename="inqu_status-0-custCode" colWidth="3" filter="contains" defultValue="">
<%--<EF:EFSelect cname="供应商名称" ename="inqu_status-0-custCode" colWidth="3" filter="contains" defultValue="">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="supplier_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
</EF:EFSelect>--%>
<EF:EFInput cname="采购计划单号" ename="inqu_status-0-proPlanNo" colWidth="3"/>
<EF:EFInput cname="采购订单单号" ename="inqu_status-0-proOrderNo" colWidth="3"/>
<EF:EFSelect cname="存货类型" ename="inqu_status-0-inventType" colWidth="3" filter="contains">
......@@ -39,11 +39,11 @@
<EF:EFColumn ename="id" primaryKey="true" cname="主键" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="公司编码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center" sort="false"/>
<EF:EFComboColumn ename="custCode" cname="供应商名称" width="120" align="center" required="true"
<%--<EF:EFComboColumn ename="custCode" cname="供应商名称" width="120" align="center" required="true"
blockName="supplier_record_block_id" textField="textField" valueField="valueField"
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="false"
filter="contains">
</EF:EFComboColumn>
</EF:EFComboColumn>--%>
<EF:EFColumn ename="proOrderDate" cname="采购订单日期" width="100" align="center" editType="date" readonly="true"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" />
<EF:EFColumn ename="proPlanNo" cname="采购计划单号" enable="false" width="140" align="center"/>
......
......@@ -62,6 +62,10 @@ function save() {
return;
}
for (let i = 0; i < rows.length; i++) {
if (isBlank(rows[i]['custCode'])) {
message("勾选的第" + (i + 1) + "行\"供应商\"不能为空");
return;
}
if (!isPositiveInteger(rows[i]['proAmount'])) {
message("勾选的第" + (i + 1) + "行\"采购数量\"必须是大于0的整数");
return;
......
......@@ -15,6 +15,10 @@
<EF:EFPage title="采购订单详情">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<EF:EFSelect cname="供应商名称" ename="inqu_status-0-custCode" colWidth="3" filter="contains" defultValue="">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="supplier_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
<EF:EFSelect cname="存货名称" ename="inqu_status-0-inventCode" colWidth="3" filter="contains" defultValue="">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="invent_name_block_id" textField="textField" valueField="valueField"/>
......@@ -28,6 +32,11 @@
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row">
<EF:EFColumn ename="id" primaryKey="true" cname="主键" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="公司编码" hidden="true"/>
<EF:EFComboColumn ename="custCode" cname="供应商名称" width="120" align="center" required="true"
blockName="supplier_record_block_id" textField="textField" valueField="valueField"
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="false"
filter="contains">
</EF:EFComboColumn>
<EF:EFColumn ename="inventCode" cname="存货编码" width="120" align="center" readonly="true"/>
<EF:EFColumn ename="inventName" cname="存货名称" width="150" align="center" readonly="true"/>
<EF:EFColumn ename="inventRecordId" cname="规格ID" width="120" align="center" readonly="true" hidden="true"/>
......
......@@ -89,6 +89,27 @@ $(function () {
},
"detail":{
pageable:false,
loadComplete: function (grid) {
// 此grid对象
grid.dataSource.bind("change", function(e) {
if (e.field == "quantity" || e.field == "notaxPrice") {
// 获取此model元素信息
var item = e.items[0];
// 计算总金额
var taxPoints = isBlank(item.taxRate) ? 0: item.taxRate / 100; //税额
var quantity = !isBlank(item.quantity) ? item.quantity : 0; //数量
var notaxPrice = !isBlank(item.notaxPrice) ? item.notaxPrice : 0; //不含税单价
var totalPriceExcluding = quantity * notaxPrice; //不含税金额
var totalPriceIncluding = totalPriceExcluding * (1 + parseFloat(taxPoints)); //含税金额
let taxAmount = Number((totalPriceIncluding-totalPriceExcluding).toFixed(2));
detailGrid.setCellValue(item, 'notaxAmount', totalPriceExcluding.toFixed(2));
detailGrid.setCellValue(item, 'taxAmount', totalPriceIncluding.toFixed(2));
detailGrid.setCellValue(item, 'theAmount', taxAmount);
}
});
},
onSave: function (e) {
// 阻止默认请求,使用自定义保存
e.preventDefault();
......
......@@ -94,7 +94,7 @@
displayType="0.000" sort="true" align="right" defaultValue="0" required="true"
data-regex="/^-?[0-9]{1,20}?$/" maxLength="20"
data-errorprompt="请输入数字,该值最大可设置20位整数!"/>
<EF:EFColumn ename="taxRate" cname="税率" width="120" format="{0:0.00%}" editType="text"
<EF:EFColumn ename="taxRate" cname="税率" width="120" format="{0:N2}" editType="text"
displayType="0.000" sort="true" align="right" defaultValue="0" required="true"
data-regex="/^-?[0-9]{1,16}([.][0-9]{1,3})?$/" maxLength="20"
data-errorprompt="请输入数字,该值最大可设置17位整数和3位小数!"/>
......
$(function () {
// 查询
$("#QUERY").on("click", query);
IPLATUI.EFGrid.result = {
pageable: {
pageSize: 20,
pageSizes: [10, 20, 30, 50, 100, 200]
},
columns: [{
field: "operator",
template: function (item) {
let template = '';
// 抛帐详情
if (item.billMainId) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showDetail(\'' + item.billMainId + '\')" >抛帐详情</a>';
}
return template
}
}],
loadComplete: function (grid) {
$("#RESEND").on("click", resend);
$("#REDFLUSH").on("click", redFlush);
},
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'save'
||e.eiInfo.extAttr.methodName == 'delete'){
query();
}
},
onSave: function (e) {
// 阻止后台保存请求,使用自定义保存
e.preventDefault();
},
onDelete: function (e) {
// 阻止后台删除请求,使用自定义删除
e.preventDefault();
}
}
});
/**
* 页面加载时执行
*/
$(window).load(function () {
// 查询
query();
});
/**
* 抛帐明细
*
* @param id
*/
function showDetail(id) {
JSColorbox.open({
href: "HPPZ022A?methodName=initLoad&inqu_status-0-billMainId=" + id,
title: "<div style='text-align: center;'>抛帐明细</div>",
width: "80%",
height: "80%",
});
}
/**
* 查询
*/
let query = function () {
resultGrid.dataSource.page(1);
}
/**
* 重新抛帐
*/
function resend(){
let rows = resultGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据");
return;
}
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"重新抛帐\"操作? ", {
ok: function () {
JSUtils.submitGridsData("result", "HPPZ022", "againSend", true,
function (ei) {
if (ei.getStatus() != -1){
query();
}
});
}
});
}
/**
* 红冲
*/
function redFlush(){
let rows = resultGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据");
return;
}
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"红冲\"操作? ", {
ok: function () {
JSUtils.submitGridsData("result", "HPPZ022", "redFlush", true,
function (ei) {
if (ei.getStatus() != -1){
query();
}
});
}
});
}
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<EF:EFPage title="抛帐管理">
<EF:EFRegion id="inqu" title="查询区">
<div class="row">
<EF:EFInput ename="inqu_status-0-billMainNo" cname="抛帐单据号" colWidth="3" placeholder="模糊查询"/>
<EF:EFInput ename="inqu_status-0-sourceBillNo" cname="业务单据号" colWidth="3" placeholder="模糊查询"/>
<EF:EFSelect ename="inqu_status-0-billStatus" cname="抛帐状态" colWidth="3" valueTemplate="#=textField#">
<EF:EFOption label="全部" value=""/>
<EF:EFOption label="发送中" value="10"/>
<EF:EFOption label="抛帐成功" value="20"/>
<EF:EFOption label="抛帐失败" value="30"/>
</EF:EFSelect>
<EF:EFInput ename="inqu_status-0-voucherCode" cname="凭证号" colWidth="3" placeholder="模糊查询"/>
<EF:EFDatePicker ename="inqu_status-0-voucherDateStar" cname="凭证日期开始" colWidth="3" placeholder="凭证日期" role="date" readonly="true"
parseFormats="['yyyyMMdd','yyyy-MM-dd']"/>
<EF:EFDatePicker ename="inqu_status-0-voucherDateEnd" cname="凭证日期结束" colWidth="3" placeholder="凭证日期" role="date" readonly="true"
parseFormats="['yyyyMMdd','yyyy-MM-dd']"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集" fitHeight="true" autoBind="false">
<EF:EFGrid blockId="result" autoDraw="false" checkMode="checkbox, row">
<EF:EFColumn ename="operator" cname="操作" enable="false" width="170" locked="true" align="center"/>
<EF:EFColumn cname="billMainId" ename="billMainId" width="100" align="left" fix="yes" enable="false" hidden="true"/>
<%-- <EF:EFColumn cname="账套" ename="inAccount" align="center" width="120" enable="false" />--%>
<EF:EFColumn cname="抛帐单据号" ename="billMainNo" align="center" width="120" enable="false" />
<EF:EFColumn cname="单据金额" ename="totalAmount" align="right" width="120" enable="false" data-rules="number" sumType="total"/>
<EF:EFColumn cname="摘要" ename="voucherSummary" align="left" width="120" enable="false"/>
<EF:EFComboColumn cname="抛帐状态" ename="billStatus" width="120" enable="false" readonly="true" >
<EF:EFOption label="" value=" "/>
<EF:EFOption label="发送中" value="10"/>
<EF:EFOption label="抛帐成功" value="20"/>
<EF:EFOption label="抛帐失败" value="30"/>
</EF:EFComboColumn>
<EF:EFColumn cname="标财反馈" ename="msgReturn" align="center" width="120" enable="false" />
<EF:EFColumn cname="凭证号" ename="voucherCode" align="center" width="90" enable="false" />
<EF:EFColumn cname="凭证日期" ename="voucherDate" align="left" enable="false" />
<EF:EFColumn cname="业务单据号" ename="sourceBillNo" align="left" enable="false" />
<%-- <EF:EFColumn cname="业务单据名称" ename="deptName" align="left" enable="false" />--%>
<EF:EFColumn cname="单据日期" ename="billDate" align="left" enable="false" />
</EF:EFGrid>
</EF:EFRegion>
<EF:EFWindow id="pzDetail" url=" " lazyload="true" width="90%" height="90%"></EF:EFWindow>
</EF:EFPage>
$(function () {
// 查询
$("#QUERY").on("click", query);
IPLATUI.EFGrid.result = {
pageable: {
pageSize: 20,
pageSizes: [10, 20, 30, 50, 100, 200]
},
columns: [
],
}
});
/**
* 页面加载时执行
*/
$(window).load(function () {
// 查询
query();
});
/**
* 查询
*/
let query = function () {
resultGrid.dataSource.page(1);
}
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<EF:EFPage title="抛帐管理明细">
<EF:EFInput blockId="inqu_status" row="0" ename="billMainId" type="hidden" colWidth="3"/>
<%-- <EF:EFRegion id="inqu" title="查询区">--%>
<%-- <div class="row">--%>
<%-- --%>
<%-- </div>--%>
<%-- </EF:EFRegion>--%>
<EF:EFRegion id="result" title="记录集" fitHeight="true" autoBind="false">
<EF:EFGrid blockId="result" autoDraw="false" checkMode="single, row">
<EF:EFColumn cname="billLineId" ename="billLineId" width="100" align="left" fix="yes" enable="false" hidden="true"/>
<EF:EFColumn cname="抛帐单据号" ename="billLineNo" align="center" width="120" enable="false" />
<EF:EFColumn cname="责任中心编码" ename="costCenter" align="center" width="120" enable="false"/>
<EF:EFColumn cname="责任中心名称" ename="costCenterName" align="center" width="120" enable="false"/>
<EF:EFColumn cname="项目编号" ename="projectCode" align="center" width="120" enable="false" />
<EF:EFColumn cname="金额" ename="functionalAmount" align="center" width="90" enable="false" />
<EF:EFColumn cname="抛帐辅助1" ename="detailReserveC1" align="left" enable="false" />
<EF:EFColumn cname="抛帐辅助2" ename="detailReserveC2" align="left" enable="false" />
<EF:EFColumn cname="抛帐辅助3" ename="detailReserveC3" align="left" enable="false" />
<EF:EFColumn cname="抛帐辅助4" ename="detailReserveC4" align="left" enable="false" />
<EF:EFColumn cname="抛帐辅助5" ename="detailReserveC5" align="left" enable="false" />
<EF:EFColumn cname="抛帐辅助6" ename="detailReserveC6" align="left" enable="false" />
<EF:EFColumn cname="抛帐数字1" ename="detailReserveN1" align="left" enable="false" />
<EF:EFColumn cname="抛帐数字2" ename="detailReserveN2" align="left" enable="false" />
<EF:EFColumn cname="抛帐数字3" ename="detailReserveN3" align="left" enable="false" />
<EF:EFColumn cname="抛帐数字4" ename="detailReserveN4" align="left" enable="false" />
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
......@@ -66,6 +66,10 @@ $(function () {
pageOffset = e.page;
console.log(e.page);
},
loadComplete: function (grid) {
//此grid对象
$("#SUBMIT_PRODUC").on("click",submitProduc);
},
onSave: function (e) {
// 阻止默认请求,使用自定义保存
e.preventDefault();
......@@ -462,3 +466,39 @@ let imgClick = function (docId) {
$(this).fadeOut("fast");
});
}
let submitProduc = function () {
let rows = resultGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据");
return;
}
let flag = true;
$.each(rows, function(index, item) {
let status= item.get("status");
if(status == "1"){
message("选中的第"+(index+1)+"行\"任务已提交\",不能排产!");
flag = false;
return false;
}
});
if (flag){
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"排产\"操作? ", {
ok: function () {
JSUtils.submitGridsData("result", "HPSC003", "submitProduc", true,
function (ei) {
if (ei.getStatus() >= 0) {
if (ei.getStatus() == 0) {
NotificationUtil(ei, 'warning');
} else {
NotificationUtil(ei);
}
query();
} else {
NotificationUtil(ei, "error");
}
})
}
});
}
}
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