Commit 31274fd6 by 宋祥

Merge branch 'dev' of http://129.211.46.84:8800/platform/hg-smart into master-dc

# Conflicts:
#	src/main/resources/application.properties
#	src/main/resources/quartz.properties
parents 3e01d464 1d9778cd
...@@ -6,28 +6,11 @@ package com.baosight.hggp.core.constant; ...@@ -6,28 +6,11 @@ package com.baosight.hggp.core.constant;
*/ */
public class CodesetConstant { public class CodesetConstant {
/** // 项目来源
* 动态表 public static final String PROJECT_SOURCE = "app.sc.projectSource";
* // 动态表
* @author:songx public static final String DYNAMIC_TABLE = "app.pz.dynamicTable";
* @date:2024/3/1,17:36 // 组织机构类型
*/ public static final String ORG_TYPE = "xs.og.orgType";
public static class HgPz {
// 动态表
public static final String DYNAMIC_TABLE = "app.pz.dynamicTable";
}
/**
* 组织机构
*
* @author:songx
* @date:2024/3/1,17:36
*/
public static class XsOg {
// 组织机构类型
public static final String ORG_TYPE = "xs.og.orgType";
}
} }
...@@ -132,6 +132,11 @@ public class CommonConstant { ...@@ -132,6 +132,11 @@ public class CommonConstant {
public static final String ENAME = "ename"; public static final String ENAME = "ename";
// 动态列 // 动态列
public static final String DYNAMIC_COLUMN = "dynamicColumn"; public static final String DYNAMIC_COLUMN = "dynamicColumn";
// VALUE_FIELD
public static final String VALUE_FIELD = "valueField";
// TEXT_FIELD
public static final String TEXT_FIELD = "textField";
} }
/** /**
......
...@@ -89,7 +89,7 @@ public class SbTokenApi { ...@@ -89,7 +89,7 @@ public class SbTokenApi {
*/ */
public static String getToken() { public static String getToken() {
try { try {
String param = JSON.toJSONString(buildValueJson("Q24022802","a123456")); String param = JSON.toJSONString(buildValueJson("Q24022802","admin123!@#"));
String url = PlatApplicationContext.getProperty("hpjx.url"); String url = PlatApplicationContext.getProperty("hpjx.url");
String result = HttpUtils.post(url+"/S_XS_105", param, HttpUtils.JSON_MEDIA_TYPE); String result = HttpUtils.post(url+"/S_XS_105", param, HttpUtils.JSON_MEDIA_TYPE);
if (StringUtils.isBlank(result)) { if (StringUtils.isBlank(result)) {
......
package com.baosight.hggp.core.tools;
import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.util.MapUtils;
import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiBlockMeta;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.ei.EiInfo;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 2021-04-27 迁移到此处
*
* @author:songx
* @date:2021/4/27,15:21
*/
public class CodeOptionTools {
/**
* 下拉框
*
* @param inInfo
* @param codeName
* @param blockId
* @param isSymbol
*/
public static void buildOption(EiInfo inInfo, String codeName, String blockId, boolean isSymbol) {
EiBlock newBlock = new EiBlock(blockId);
newBlock.addBlockMeta(initCodeMeta());
List<Map> results = CodeValueTools.getCodeValues(codeName);
for (Map result : results) {
Map<String, String> row = new HashMap<>();
String id = MapUtils.getString(result, "value");
String text = MapUtils.getString(result, "label");
row.put(CommonConstant.Field.VALUE_FIELD, id);
row.put(CommonConstant.Field.TEXT_FIELD, isSymbol ? id + "-" + text : text);
newBlock.addRow(row);
}
inInfo.addBlock(newBlock);
}
/**
* 构造下拉框的数据项.
*
* @return
*/
private static EiBlockMeta initCodeMeta() {
EiColumn eiColumn;
EiBlockMeta eiMetadata = new EiBlockMeta();
eiColumn = new EiColumn(CommonConstant.Field.TEXT_FIELD);
eiColumn.setFieldLength(150);
eiColumn.setDescName("描述");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(CommonConstant.Field.VALUE_FIELD);
eiColumn.setFieldLength(30);
eiColumn.setDescName("值");
eiMetadata.addMeta(eiColumn);
return eiMetadata;
}
}
package com.baosight.hggp.hg.bi.service;
import com.baosight.hggp.common.DdynamicEnum;
import com.baosight.hggp.hg.pz.utils.HGPZUtils;
import com.baosight.hggp.hg.sc.util.HgScUtils;
import com.baosight.hggp.hg.xs.domain.Company;
import com.baosight.hggp.hg.xs.utils.HGXSUtils;
import com.baosight.hggp.util.CommonMethod;
import com.baosight.hggp.util.DateUtils;
import com.baosight.hggp.util.EiInfoUtils;
import com.baosight.hggp.util.LogUtils;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.service.impl.ServiceBase;
import java.util.Arrays;
import java.util.Map;
/**
* 采购执行情况
*
* @author songx
* @date 2024/11/16,19:22
*/
public class ServiceHGBI011 extends ServiceBase {
/**
* 画面初始化
*
* @param inInfo
* @return
*/
public EiInfo initLoad(EiInfo inInfo) {
try {
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.COMPANY_CODE_BLOCK_ID), null, true);
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.PROJ_RECORD_BLOCK_ID), null, true);
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "初始化失败");
}
return inInfo;
}
/**
* 查询操作
*
* @param inInfo
* @return
*/
@Override
public EiInfo query(EiInfo inInfo) {
try {
Map queryMap = EiInfoUtils.getFirstRow(inInfo);
queryMap.put("receiptDate", DateUtils.formatShort(queryMap.get("receiptDate")));
inInfo = super.query(inInfo, "HGBI011.query");
// 设置公司名称
HGXSUtils.XsOrg.setInfo(inInfo, Company.FIELD_COMPANY_CODE, Company.FIELD_COMPANY_NAME);
// 设置项目名称
HgScUtils.HgSc001.setInfo(inInfo);
// 供应商名称
HGPZUtils.HgPz003.setInfo(inInfo);
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
}
return inInfo;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN"
"http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap namespace="HGBI011">
<sql id="condition">
<isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
PROJ_CODE = #projCode#
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
SELECT
T.receiptDate, T.companyCode, T.supCode, T.projCode,
IFNULL(MAX(T.contractAmount), 0) as "contractAmount",
IFNULL(MAX(T.deliveryAmount), 0) as "deliveryAmount",
IFNULL(MAX(T.receiptAmount), 0) as "receiptAmount",
IFNULL(MAX(T.remainingAmount), 0) as "remainingAmount",
IFNULL(MAX(T.payAmount), 0) as "payAmount",
IFNULL(MAX(T.nonPayAmount), 0) as "nonPayAmount"
FROM (
SELECT
CONTRACT_DATE as "receiptDate",
COMPANY_CODE as "companyCode",
SUP_CODE as "supCode",
PROJ_CODE as "projCode",
SUM(TAX_INCLUDE_AMOUNT) as "contractAmount",
0 as "deliveryAmount",
0 as "receiptAmount",
0 as "remainingAmount",
0 as "payAmount",
0 as "nonPayAmount"
FROM HGGP.HGCG002
WHERE DELETE_FLAG = 0
<include refid="condition"/>
<isNotEmpty prepend=" AND " property="receiptDate">
CONTRACT_DATE = #receiptDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supName">
SUP_NAME LIKE CONCAT("%", #supName#, "%")
</isNotEmpty>
GROUP BY CONTRACT_DATE, COMPANY_CODE, SUP_CODE, PROJ_CODE
UNION ALL
SELECT
RECEIVE_DATE as "receiptDate",
COMPANY_CODE as "companyCode",
SUP_CODE as "supCode",
PROJ_CODE as "projCode",
0 as "contractAmount",
SUM(TAX_INCLUDE_AMOUNT) as "deliveryAmount",
0 as "receiptAmount",
0 as "remainingAmount",
0 as "payAmount",
0 as "nonPayAmount"
FROM HGGP.HGCG003
WHERE DELETE_FLAG = 0
<include refid="condition"/>
<isNotEmpty prepend=" AND " property="receiptDate">
RECEIVE_DATE = #receiptDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supName">
SUP_NAME LIKE CONCAT("%", #supName#, "%")
</isNotEmpty>
GROUP BY RECEIVE_DATE, COMPANY_CODE, SUP_CODE, PROJ_CODE
UNION ALL
SELECT
RECEIVE_DATE as "receiptDate",
COMPANY_CODE as "companyCode",
PARTY_A as "supCode",
PROJ_CODE as "projCode",
0 as "contractAmount",
0 as "deliveryAmount",
SUM(TOTAL_CONTRACT_PRICE_INCLUDING) as "receiptAmount",
SUM(REMAINING_AMOUNT) as "remainingAmount",
0 as "payAmount",
0 as "nonPayAmount"
FROM HGGP.HGCW012
WHERE 1=1
<include refid="condition"/>
<isNotEmpty prepend=" AND " property="receiptDate">
RECEIVE_DATE = #receiptDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supName">
PARTY_A LIKE CONCAT("%", #supName#, "%")
</isNotEmpty>
GROUP BY RECEIVE_DATE, COMPANY_CODE, PARTY_A, PROJ_CODE
UNION ALL
SELECT
SIGNING_DATE as "receiptDate",
COMPANY_CODE as "companyCode",
PARTY_A as "supCode",
PROJ_CODE as "projCode",
0 as "contractAmount",
0 as "deliveryAmount",
0 as "receiptAmount",
0 as "remainingAmount",
SUM(CASE CANCEL_STATUS WHEN 2 THEN TOTAL_CONTRACT_PRICE_INCLUDING ELSE 0 END) as "payAmount",
SUM(CASE CANCEL_STATUS WHEN 1 THEN TOTAL_CONTRACT_PRICE_INCLUDING ELSE 0 END) as "nonPayAmount"
FROM HGGP.HGCW016
WHERE 1=1
<include refid="condition"/>
<isNotEmpty prepend=" AND " property="receiptDate">
SIGNING_DATE = #receiptDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supName">
PARTY_A LIKE CONCAT("%", #supName#, "%")
</isNotEmpty>
GROUP BY SIGNING_DATE, COMPANY_CODE, PARTY_A, PROJ_CODE
) T
GROUP BY T.receiptDate, T.companyCode, T.supCode, T.projCode
ORDER BY T.receiptDate DESC
</select>
</sqlMap>
\ No newline at end of file
...@@ -125,9 +125,9 @@ public class ServiceHGCG002C extends ServiceEPBase { ...@@ -125,9 +125,9 @@ public class ServiceHGCG002C extends ServiceEPBase {
String contractNo = fCg002.getContractNo(); String contractNo = fCg002.getContractNo();
AssertUtils.isNull(dbCg002, String.format("合同单【%s】不存在", contractNo)); AssertUtils.isNull(dbCg002, String.format("合同单【%s】不存在", contractNo));
AssertUtils.isNotEquals(dbCg002.getDeleteFlag(), CommonConstant.YesNo.NO_0, AssertUtils.isNotEquals(dbCg002.getDeleteFlag(), CommonConstant.YesNo.NO_0,
String.format("建议单【%s】不是\"未删除\"状态,不允许操作", contractNo)); String.format("合同单【%s】不是\"未删除\"状态,不允许操作", contractNo));
AssertUtils.isNotEquals(dbCg002.getStatus(), HGConstant.DealStatus.S0, AssertUtils.isNotEquals(dbCg002.getStatus(), HGConstant.DealStatus.S0,
String.format("建议单【%s】不是\"未审核\"状态,不允许操作", contractNo)); String.format("合同单【%s】不是\"未审核\"状态,不允许操作", contractNo));
} }
} }
package com.baosight.hggp.hg.cw.service;
import com.baosight.hggp.core.security.UserSessionUtils;
import com.baosight.hggp.hg.xs.domain.Company;
import com.baosight.hggp.util.EiInfoUtils;
import com.baosight.hggp.util.LogUtils;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
/**
* @author LiuYang
* @version 1.0 2024/11/17
* @description 销售执行情况表
*/
public class ServiceHGCW010F extends ServiceEPBase {
@Override
public EiInfo initLoad(EiInfo inInfo) {
try {
EiInfoUtils.addBlock(inInfo, "roleCompany", UserSessionUtils.getRoleCompany(), Company.class);
} catch (Exception e) {
LogUtils.setMsg(inInfo, e, "初始化失败");
}
return inInfo;
}
@Override
public EiInfo query(EiInfo inInfo) {
try {
inInfo = super.query(inInfo, "HGCW010F.query");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
}
return inInfo;
}
}
<?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="HGCW010F">
<select id="query" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
select
A.DATE "date",
A.COMPANY_CODE as "companyCode",
A.COMPANY_NAME as "companyName",
A.PROJ_CODE as "projCode",
A.PROJ_NAME as "projName",
A.CLIENT_NAME as "clientName",
A.CONTRACT_ACOUNT as "contractAcount",
A.SELL_ACOUNT as "sellAcount",
A.NOT_SELL_ACOUNT as "notSellAcount",
A.COLLEC_ACOUNT as "collecAcount",
A.NOT_COLLEC_ACOUNT as "notCollecAcount"
from (
select
A.SIGNING_DATE as "DATE",
A.COMPANY_CODE,
A.COMPANY_NAME,
A.PROJ_CODE,
A.PROJ_NAME,
case
when A.CONTRACT_CATEGORY = 1 then A.PARTY_A
when A.CONTRACT_CATEGORY = 2 then A.PARTY_B
else ''
end "CLIENT_NAME",
ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "CONTRACT_ACOUNT",
ifnull(SUM(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(SUM(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0)
when ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0)
when ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW002 A
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%') OR A.PARTY_B like ('%$partyB$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.SIGNING_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
A.PARTY_A ,
A.PARTY_B ,
A.CONTRACT_CATEGORY,
A.SIGNING_DATE
union all
select
A.SIGNING_DATE AS "DATE",
A.COMPANY_CODE,
A.COMPANY_NAME,
A.PROJ_CODE,
A.PROJ_NAME,
A.PARTY_A as "CLIENT_NAME",
ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "CONTRACT_ACOUNT",
ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0)
when ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0)
when ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW006 A
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.SIGNING_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
A.PARTY_A,
A.SIGNING_DATE
union all
select
A.CONTRACT_DATE AS "DATE",
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE,
A.PROJ_NAME,
case
when D.CONTRACT_CATEGORY = 1 then D.PARTY_A
when D.CONTRACT_CATEGORY = 2 then D.PARTY_B
else ''
end "CLIENT_NAME",
ifnull(sum(A.THIS_PRICE_TAX),0) as "CONTRACT_ACOUNT",
ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(sum(A.THIS_PRICE_TAX),0)
when ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(sum(A.THIS_PRICE_TAX),0)
when ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW008 A
join HGGP.HGCW002 D on A.COMPANY_CODE = D.COMPANY_CODE and A.PROJ_CODE = D.PROJ_CODE AND A.CONTRACT_NUMBER = D.CONTRACT_NUMBER
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.CONTRACT_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
D.PARTY_A ,
D.PARTY_B ,
D.CONTRACT_CATEGORY,
A.CONTRACT_DATE
) A
ORDER BY A.DATE DESC
</select>
<select id="count" resultClass="int">
select
COUNT(*)
from (
select
A.SIGNING_DATE as "DATE",
A.COMPANY_CODE,
A.COMPANY_NAME,
A.PROJ_CODE,
A.PROJ_NAME,
case
when A.CONTRACT_CATEGORY = 1 then A.PARTY_A
when A.CONTRACT_CATEGORY = 2 then A.PARTY_B
else ''
end "CLIENT_NAME",
ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "CONTRACT_ACOUNT",
ifnull(SUM(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(SUM(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW002 A
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%') OR A.PARTY_B like ('%$partyB$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.SIGNING_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
A.PARTY_A ,
A.PARTY_B ,
A.CONTRACT_CATEGORY,
A.SIGNING_DATE
union all
select
A.SIGNING_DATE AS "DATE",
A.COMPANY_CODE,
A.COMPANY_NAME,
A.PROJ_CODE,
A.PROJ_NAME,
A.PARTY_A as "CLIENT_NAME",
ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "CONTRACT_ACOUNT",
ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW006 A
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.SIGNING_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
A.PARTY_A,
A.SIGNING_DATE
union all
select
A.CONTRACT_DATE AS "DATE",
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE,
A.PROJ_NAME,
case
when D.CONTRACT_CATEGORY = 1 then D.PARTY_A
when D.CONTRACT_CATEGORY = 2 then D.PARTY_B
else ''
end "CLIENT_NAME",
ifnull(sum(A.THIS_PRICE_TAX),0) as "CONTRACT_ACOUNT",
ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW008 A
join HGGP.HGCW002 D on A.COMPANY_CODE = D.COMPANY_CODE and A.PROJ_CODE = D.PROJ_CODE AND A.CONTRACT_NUMBER = D.CONTRACT_NUMBER
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.CONTRACT_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
D.PARTY_A ,
D.PARTY_B ,
D.CONTRACT_CATEGORY,
A.CONTRACT_DATE
) A
</select>
</sqlMap>
\ No newline at end of file
...@@ -11,16 +11,26 @@ import com.baosight.hggp.hg.constant.HGConstant; ...@@ -11,16 +11,26 @@ import com.baosight.hggp.hg.constant.HGConstant;
import com.baosight.hggp.hg.constant.HGSqlConstant; import com.baosight.hggp.hg.constant.HGSqlConstant;
import com.baosight.hggp.hg.cw.tools.HGCWTools; import com.baosight.hggp.hg.cw.tools.HGCWTools;
import com.baosight.hggp.hg.cw.vo.UserVO; import com.baosight.hggp.hg.cw.vo.UserVO;
import com.baosight.hggp.hg.kc.domain.*; import com.baosight.hggp.hg.kc.domain.HGKC005;
import com.baosight.hggp.hg.kc.domain.HGKC006;
import com.baosight.hggp.hg.kc.domain.HGKC006A;
import com.baosight.hggp.hg.kc.domain.HGKC007;
import com.baosight.hggp.hg.kc.domain.HGKC007A;
import com.baosight.hggp.hg.kc.tools.HGKCTools; import com.baosight.hggp.hg.kc.tools.HGKCTools;
import com.baosight.hggp.hg.kc.utils.HGKCUtils;
import com.baosight.hggp.hg.pz.domain.HGPZ005; import com.baosight.hggp.hg.pz.domain.HGPZ005;
import com.baosight.hggp.hg.pz.tools.HGPZTools; import com.baosight.hggp.hg.pz.tools.HGPZTools;
import com.baosight.hggp.hg.sc.domain.HGSC004A;
import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.hg.xs.utils.HGXSUtils; import com.baosight.hggp.hg.xs.utils.HGXSUtils;
import com.baosight.hggp.hg.yx.domain.HGYX001; import com.baosight.hggp.hg.yx.domain.HGYX001;
import com.baosight.hggp.util.*; import com.baosight.hggp.util.AssertUtils;
import com.baosight.hggp.util.CommonMethod;
import com.baosight.hggp.util.DateUtils;
import com.baosight.hggp.util.EiInfoUtils;
import com.baosight.hggp.util.ErrorCodeUtils;
import com.baosight.hggp.util.ExcelUtils;
import com.baosight.hggp.util.LogUtils;
import com.baosight.hggp.util.ObjectUtils;
import com.baosight.hggp.util.StringUtil;
import com.baosight.hggp.util.StringUtils;
import com.baosight.hggp.util.contants.ACConstants; import com.baosight.hggp.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiBlock; import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant; import com.baosight.iplat4j.core.ei.EiConstant;
...@@ -32,7 +42,11 @@ import com.baosight.iplat4j.ed.util.SequenceGenerator; ...@@ -32,7 +42,11 @@ import com.baosight.iplat4j.ed.util.SequenceGenerator;
import org.apache.commons.collections.MapUtils; import org.apache.commons.collections.MapUtils;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.*; import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/** /**
* @author LiuYang * @author LiuYang
...@@ -62,9 +76,9 @@ public class ServiceHGKC005 extends ServiceEPBase { ...@@ -62,9 +76,9 @@ public class ServiceHGKC005 extends ServiceEPBase {
DdynamicEnum.SPEC_RECORD_BLOCK_ID, DdynamicEnum.SPEC_RECORD_BLOCK_ID,
DdynamicEnum.INVENT_TYPE_BLOCK_ID), queryMap); DdynamicEnum.INVENT_TYPE_BLOCK_ID), queryMap);
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGKC005().eiMetadata); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGKC005().eiMetadata);
UserVO userVO = HGCWTools.HgCw002.getUserCompany(); // UserVO userVO = HGCWTools.HgCw002.getUserCompany();
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGYX001.FIELD_COMPANY_CODE, userVO.getUsercode()); // inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGYX001.FIELD_COMPANY_CODE, userVO.getUsercode());
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0,HGYX001.FIELD_COMPANY_NAME, userVO.getUsername()); // inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0,HGYX001.FIELD_COMPANY_NAME, userVO.getUsername());
} catch (PlatException e) { } catch (PlatException e) {
LogUtils.setDetailMsg(inInfo, e, "初始化失败"); LogUtils.setDetailMsg(inInfo, e, "初始化失败");
} }
......
/**
* Generate time : 2024-10-17 8:42:19
* Version : 1.0
*/
package com.baosight.hggp.hg.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 HGPZ022 extends DaoEPBase {
public static final String QUERY = "HGPZ022.query";
public static final String COUNT = "HGPZ022.count";
public static final String INSERT = "HGPZ022.insert";
public static final String UPDATE = "HGPZ022.update";
public static final String DELETE = "HGPZ022.delete";
public static final String UPDATE_BILL_STATUS = "HGPZ022.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 HGPZ022() {
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.hggp.hg.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 HGPZ022A extends DaoEPBase {
public static final String QUERY = "HGPZ022A.query";
public static final String COUNT = "HGPZ022A.count";
public static final String INSERT = "HGPZ022A.insert";
public static final String UPDATE = "HGPZ022A.update";
public static final String DELETE = "HGPZ022A.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 HGPZ022A() {
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;
}
}
...@@ -110,7 +110,7 @@ public class ServiceHGPZ021 extends ServiceBase { ...@@ -110,7 +110,7 @@ public class ServiceHGPZ021 extends ServiceBase {
*/ */
private void checkImportData(List<HGPZ021> fPz021s) { private void checkImportData(List<HGPZ021> fPz021s) {
// 表名称小代码 // 表名称小代码
List<Map> dynamicTables = CodeValueTools.getCodeValues(CodesetConstant.HgPz.DYNAMIC_TABLE); List<Map> dynamicTables = CodeValueTools.getCodeValues(CodesetConstant.DYNAMIC_TABLE);
for (HGPZ021 fPz021 : fPz021s) { for (HGPZ021 fPz021 : fPz021s) {
AssertUtils.isEmpty(fPz021.getTableCode(), String.format("序号[%s]表英文名不能为空", fPz021.getId())); AssertUtils.isEmpty(fPz021.getTableCode(), String.format("序号[%s]表英文名不能为空", fPz021.getId()));
for (Map dynamicTableMap : dynamicTables) { for (Map dynamicTableMap : dynamicTables) {
......
package com.baosight.hggp.hg.pz.service;
import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import com.baosight.hggp.core.dao.DaoUtils;
import com.baosight.hggp.hg.pz.domain.HGPZ022;
import com.baosight.hggp.util.LogUtils;
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 ServiceHGPZ022 extends ServiceBase {
/**
* 画面初始化
*
* @param inInfo
* @return
*/
@Override
@OperationLogAnnotation(operModul = "抛帐管理", operType = "查询", operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) {
try {
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGPZ022().eiMetadata);
} catch (PlatException e) {
LogUtils.setDetailMsg(inInfo, e, "初始化失败");
}
return inInfo;
}
/**
* 查询数据列表
*
* @param inInfo
* @return
*/
@Override
@OperationLogAnnotation(operModul = "抛帐管理", operType = "查询", operDesc = "查询")
public EiInfo query(EiInfo inInfo) {
try {
inInfo = super.query(inInfo, HGPZ022.QUERY, new HGPZ022());
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
}
return inInfo;
}
/**
* 删除操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation(operModul = "抛帐管理", operType = "删除", operDesc = "删除操作")
@Override
public EiInfo delete(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
for (Map resultRow : resultRows) {
HGPZ022 hgpz022 = new HGPZ022();
hgpz022.fromMap(resultRow);
DaoUtils.update(HGPZ022.DELETE, hgpz022);
}
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据删除成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "删除失败");
}
return inInfo;
}
/**
* 红冲操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation(operModul = "抛帐管理", operType = "红冲", operDesc = "红冲操作")
public EiInfo redFlush(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
for (Map resultRow : resultRows) {
HGPZ022 hgpz022 = new HGPZ022();
hgpz022.fromMap(resultRow);
}
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据红冲成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "红冲失败");
}
return inInfo;
}
/**
* 重抛操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation(operModul = "抛帐管理", operType = "重抛", operDesc = "重抛操作")
public EiInfo againSend(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
for (Map resultRow : resultRows) {
HGPZ022 hgpz022 = new HGPZ022();
hgpz022.fromMap(resultRow);
}
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据重抛成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "重抛失败");
}
return inInfo;
}
}
package com.baosight.hggp.hg.pz.service;
import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import com.baosight.hggp.hg.pz.domain.HGPZ022A;
import com.baosight.hggp.util.LogUtils;
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 ServiceHGPZ022A extends ServiceEPBase {
/**
* 画面初始化
*
* @param inInfo
* @return
*/
@OperationLogAnnotation(operModul = "抛帐管理明细",operType = "查询",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) {
try {
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGPZ022A().eiMetadata);
} catch (PlatException e) {
LogUtils.setDetailMsg(inInfo, e, "初始化失败");
}
return inInfo;
}
/**
* 查询操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation(operModul = "抛帐管理明细",operType = "查询",operDesc = "查询")
@Override
public EiInfo query(EiInfo inInfo) {
try {
inInfo = super.query(inInfo, "HGPZ022A.query", new HGPZ022A());
} catch (Throwable e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
}
return inInfo;
}
}
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information <!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
Generate time : 2024-05-07 16:07:20
Version : 1.0
schema : hggp
tableName : HGPZ003
ID BIGINT NOT NULL primarykey,
ACCOUNT_CODE VARCHAR,
DEP_CODE VARCHAR,
SUP_TYPE TINYINT NOT NULL,
SUP_CLASS TINYINT NOT NULL,
SUP_CODE VARCHAR NOT NULL,
SUP_NAME VARCHAR NOT NULL,
HEAD_NAME VARCHAR,
PHONE_NAME VARCHAR,
ADDRESS VARCHAR NOT NULL,
OPEN_BANK_CODE VARCHAR,
OPEN_BANK_NAME VARCHAR,
ACCOUNT_NUM VARCHAR,
ASS_LEVEL VARCHAR,
SCORE DECIMAL NOT NULL,
FILE_PATH VARCHAR,
STATUS TINYINT NOT NULL,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT
-->
<sqlMap namespace="HGPZ003"> <sqlMap namespace="HGPZ003">
<sql id="condition"> <sql id="condition">
<isNotEmpty prepend=" AND " property="id"> <isNotEmpty prepend=" AND " property="id">
ID = #id# ID = #id#
</isNotEmpty> </isNotEmpty>
...@@ -109,176 +80,89 @@ ...@@ -109,176 +80,89 @@
</isNotEmpty> </isNotEmpty>
</sql> </sql>
<!--<sql id="authCondition"> <sql id="customCondition">
&lt;!&ndash; 无权限时使用 &ndash;&gt; <isNotEmpty prepend=" AND " property="supCodes">
<isNotEmpty prepend=" AND " property="authDepCode"> SUP_CODE IN <iterate close=")" open="(" conjunction="," property="supCodes">#supCodes[]#</iterate>
DEP_CODE = #authDepCode# </isNotEmpty>
</isNotEmpty> </sql>
&lt;!&ndash; 仅本人和部门组合 &ndash;&gt;
<isEqual prepend=" AND " property="authCombination" compareValue="1">
(CREATED_BY = #authOnlyPeople# OR DEP_CODE IN <iterate close=")" open="(" conjunction="," property="authDepCodes">#authDepCodes[]#</iterate>)
</isEqual>
&lt;!&ndash; 仅本人或部门 &ndash;&gt;
<isNotEqual prepend=" AND " property="authCombination" compareValue="1">
<isNotEmpty property="authOnlyPeople">
CREATED_BY = #authOnlyPeople#
</isNotEmpty>
<isNotEmpty property="authDepCodes">
DEP_CODE IN <iterate close=")" open="(" conjunction="," property="authDepCodes">#authDepCodes[]#</iterate>
</isNotEmpty>
</isNotEqual>
</sql>-->
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hggp.hg.pz.domain.HGPZ003">
SELECT
ID as "id",
ACCOUNT_CODE as "accountCode", <!-- 帐套编码 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
SUP_TYPE as "supType", <!-- 供应商类型 1 材料供应商 ,2 劳务供应商,3加工供应商 -->
SUP_CLASS as "supClass", <!-- 供应商分类 1 钢材 ,2 网架及配件,3油漆 -->
SUP_CODE as "supCode", <!-- 供应商编码 -->
SUP_NAME as "supName", <!-- 供应商名称 -->
HEAD_NAME as "headName", <!-- 负责人 -->
PHONE_NAME as "phoneName", <!-- 负责人联系方式 -->
ADDRESS as "address", <!-- 地址 -->
OPEN_BANK_CODE as "openBankCode", <!-- 开户银行代码 -->
OPEN_BANK_NAME as "openBankName", <!-- 开户银行名称 -->
ACCOUNT_NUM as "accountNum", <!-- 银行账号 -->
ASS_LEVEL as "assLevel", <!-- 评定等级 -->
SCORE as "score", <!-- 综合得分 -->
FILE_PATH as "filePath", <!-- 资质详情 -->
STATUS as "status", <!-- 状态 0禁用 1启用 -->
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.是 -->
TAX_CODE as "taxCode"
FROM ${hggpSchema}.HGPZ003 WHERE 1=1 AND DELETE_FLAG = 0
<include refid="condition" />
<dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy">
$orderBy$
</isNotEmpty>
<isEmpty property="orderBy">
CREATED_TIME desc
</isEmpty>
</dynamic>
</select> <select id="query" resultClass="com.baosight.hggp.hg.pz.domain.HGPZ003">
SELECT
ID as "id",
ACCOUNT_CODE as "accountCode", <!-- 帐套编码 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
SUP_TYPE as "supType", <!-- 供应商类型 1 材料供应商 ,2 劳务供应商,3加工供应商 -->
SUP_CLASS as "supClass", <!-- 供应商分类 1 钢材 ,2 网架及配件,3油漆 -->
SUP_CODE as "supCode", <!-- 供应商编码 -->
SUP_NAME as "supName", <!-- 供应商名称 -->
HEAD_NAME as "headName", <!-- 负责人 -->
PHONE_NAME as "phoneName", <!-- 负责人联系方式 -->
ADDRESS as "address", <!-- 地址 -->
OPEN_BANK_CODE as "openBankCode", <!-- 开户银行代码 -->
OPEN_BANK_NAME as "openBankName", <!-- 开户银行名称 -->
ACCOUNT_NUM as "accountNum", <!-- 银行账号 -->
ASS_LEVEL as "assLevel", <!-- 评定等级 -->
SCORE as "score", <!-- 综合得分 -->
FILE_PATH as "filePath", <!-- 资质详情 -->
STATUS as "status", <!-- 状态 0禁用 1启用 -->
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.是 -->
TAX_CODE as "taxCode"
FROM ${hggpSchema}.HGPZ003
WHERE 1=1
AND DELETE_FLAG = 0
<include refid="customCondition"/>
<dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy">
$orderBy$
</isNotEmpty>
<isEmpty property="orderBy">
CREATED_TIME desc
</isEmpty>
</dynamic>
</select>
<select id="count" resultClass="int"> <select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hggpSchema}.HGPZ003 WHERE 1=1 AND DELETE_FLAG = 0 SELECT COUNT(*) FROM ${hggpSchema}.HGPZ003 WHERE 1=1 AND DELETE_FLAG = 0
<include refid="condition" /> <include refid="customCondition" />
</select> </select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supType">
SUP_TYPE = #supType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supClass">
SUP_CLASS = #supClass#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supCode">
SUP_CODE = #supCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supName">
SUP_NAME = #supName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="headName">
HEAD_NAME = #headName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="phoneName">
PHONE_NAME = #phoneName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="address">
ADDRESS = #address#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="openBankCode">
OPEN_BANK_CODE = #openBankCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="openBankName">
OPEN_BANK_NAME = #openBankName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountNum">
ACCOUNT_NUM = #accountNum#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="assLevel">
ASS_LEVEL = #assLevel#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="score">
SCORE = #score#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="filePath">
FILE_PATH = #filePath#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="status">
STATUS = #status#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
-->
<insert id="insert"> <insert id="insert">
INSERT INTO ${hggpSchema}.HGPZ003 (ID, INSERT INTO ${hggpSchema}.HGPZ003 (ID,
ACCOUNT_CODE, <!-- 帐套编码 --> ACCOUNT_CODE, <!-- 帐套编码 -->
DEP_CODE, <!-- 部门编码 --> DEP_CODE, <!-- 部门编码 -->
SUP_TYPE, <!-- 供应商类型 1 材料供应商 ,2 劳务供应商,3加工供应商 --> SUP_TYPE, <!-- 供应商类型 1 材料供应商 ,2 劳务供应商,3加工供应商 -->
SUP_CLASS, <!-- 供应商分类 1 钢材 ,2 网架及配件,3油漆 --> SUP_CLASS, <!-- 供应商分类 1 钢材 ,2 网架及配件,3油漆 -->
SUP_CODE, <!-- 供应商编码 --> SUP_CODE, <!-- 供应商编码 -->
SUP_NAME, <!-- 供应商名称 --> SUP_NAME, <!-- 供应商名称 -->
HEAD_NAME, <!-- 负责人 --> HEAD_NAME, <!-- 负责人 -->
PHONE_NAME, <!-- 负责人联系方式 --> PHONE_NAME, <!-- 负责人联系方式 -->
ADDRESS, <!-- 地址 --> ADDRESS, <!-- 地址 -->
OPEN_BANK_CODE, <!-- 开户银行代码 --> OPEN_BANK_CODE, <!-- 开户银行代码 -->
OPEN_BANK_NAME, <!-- 开户银行名称 --> OPEN_BANK_NAME, <!-- 开户银行名称 -->
ACCOUNT_NUM, <!-- 银行账号 --> ACCOUNT_NUM, <!-- 银行账号 -->
ASS_LEVEL, <!-- 评定等级 --> ASS_LEVEL, <!-- 评定等级 -->
SCORE, <!-- 综合得分 --> SCORE, <!-- 综合得分 -->
FILE_PATH, <!-- 资质详情 --> FILE_PATH, <!-- 资质详情 -->
STATUS, <!-- 状态 0禁用 1启用 --> STATUS, <!-- 状态 0禁用 1启用 -->
CREATED_BY, <!-- 创建人 --> CREATED_BY, <!-- 创建人 -->
CREATED_NAME, <!-- 创建人名称 --> CREATED_NAME, <!-- 创建人名称 -->
CREATED_TIME, <!-- 创建时间 --> CREATED_TIME, <!-- 创建时间 -->
UPDATED_BY, <!-- 更新人 --> UPDATED_BY, <!-- 更新人 -->
UPDATED_NAME, <!-- 更新人名称 --> UPDATED_NAME, <!-- 更新人名称 -->
UPDATED_TIME, <!-- 更新时间 --> UPDATED_TIME, <!-- 更新时间 -->
DELETE_FLAG, <!-- 是否删除0:否1.是 --> DELETE_FLAG, <!-- 是否删除0:否1.是 -->
TAX_CODE TAX_CODE
) )
VALUES (#id#, #accountCode#, #depCode#, #supType#, #supClass#, #supCode#, #supName#, #headName#, #phoneName#, #address#, #openBankCode#, #openBankName#, #accountNum#, #assLevel#, #score#, #filePath#, #status#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#,#taxCode#) VALUES (#id#, #accountCode#, #depCode#, #supType#, #supClass#, #supCode#, #supName#, #headName#, #phoneName#,
</insert> #address#, #openBankCode#, #openBankName#, #accountNum#, #assLevel#, #score#, #filePath#, #status#, #createdBy#,
#createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#,#taxCode#)
</insert>
<delete id="delete"> <delete id="delete">
UPDATE ${hggpSchema}.HGPZ003 SET DELETE_FLAG = 1 WHERE ID = #id# UPDATE ${hggpSchema}.HGPZ003 SET DELETE_FLAG = 1 WHERE ID = #id#
......
<?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="HGPZ022">
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hggp.hg.pz.domain.HGPZ022">
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 ${hggpSchema}.HGPZ022 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 ${hggpSchema}.HGPZ022 WHERE 1=1
</select>
<insert id="insert">
INSERT INTO ${hggpSchema}.HGPZ022 (
<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 ${hggpSchema}.HGPZ022 WHERE
</delete>
<update id="update">
UPDATE ${hggpSchema}.HGPZ022
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 ${hggpSchema}.HGPZ022
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="HGPZ022A">
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hggp.hg.pz.domain.HGPZ022A">
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 ${hggpSchema}.HGPZ022A 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 ${hggpSchema}.HGPZ022A WHERE 1=1
</select>
<insert id="insert">
INSERT INTO ${hggpSchema}.HGPZ022A (
<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 ${hggpSchema}.HGPZ022A WHERE
</delete>
<update id="update">
UPDATE ${hggpSchema}.HGPZ022A
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>
...@@ -102,6 +102,36 @@ public class HGPZTools { ...@@ -102,6 +102,36 @@ public class HGPZTools {
queryMap.put("supType", supType); queryMap.put("supType", supType);
return DaoBase.getInstance().query(HGPZ003.QUERY, queryMap); return DaoBase.getInstance().query(HGPZ003.QUERY, queryMap);
} }
/**
* 查询存货信息
*
* @param supCodes
* @return
*/
public static List<HGPZ003> list(List<String> supCodes) {
if (CollectionUtils.isEmpty(supCodes)) {
return null;
}
Map queryMap = new HashMap();
queryMap.put("supCodes", supCodes);
return DaoBase.getInstance().query(HGPZ003.QUERY, queryMap);
}
/**
* 查询存货信息
*
* @param supCodes
* @return
*/
public static Map<String, HGPZ003> map(List<String> supCodes) {
List<HGPZ003> results = list(supCodes);
if (CollectionUtils.isEmpty(results)) {
return null;
}
return results.stream().collect(Collectors.toMap(HGPZ003::getSupCode, item -> item));
}
} }
/** /**
......
package com.baosight.hggp.hg.pz.utils; package com.baosight.hggp.hg.pz.utils;
import com.baosight.hggp.core.constant.CommonConstant; import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.hg.pz.domain.HGPZ003;
import com.baosight.hggp.hg.pz.domain.HGPZ020; import com.baosight.hggp.hg.pz.domain.HGPZ020;
import com.baosight.hggp.hg.pz.domain.HGPZ020A; import com.baosight.hggp.hg.pz.domain.HGPZ020A;
import com.baosight.hggp.hg.pz.domain.HGPZ021; import com.baosight.hggp.hg.pz.domain.HGPZ021;
...@@ -8,6 +9,7 @@ import com.baosight.hggp.hg.pz.enums.DynamicTableEnum; ...@@ -8,6 +9,7 @@ import com.baosight.hggp.hg.pz.enums.DynamicTableEnum;
import com.baosight.hggp.hg.pz.tools.HGPZTools; import com.baosight.hggp.hg.pz.tools.HGPZTools;
import com.baosight.hggp.util.EiInfoUtils; import com.baosight.hggp.util.EiInfoUtils;
import com.baosight.hggp.util.MapUtils; import com.baosight.hggp.util.MapUtils;
import com.baosight.hggp.util.ObjectUtils;
import com.baosight.hggp.util.StringUtils; import com.baosight.hggp.util.StringUtils;
import com.baosight.iplat4j.core.data.DaoEPBase; import com.baosight.iplat4j.core.data.DaoEPBase;
import com.baosight.iplat4j.core.ei.EiBlock; import com.baosight.iplat4j.core.ei.EiBlock;
...@@ -30,6 +32,38 @@ import java.util.stream.Collectors; ...@@ -30,6 +32,38 @@ import java.util.stream.Collectors;
public class HGPZUtils { public class HGPZUtils {
/** /**
* HGPZ003 定义
*
* @author songx
* @date 2024/11/6,15:48
*/
public static class HgPz003 {
/**
* 设置信息
*
* @param inInfo
*/
public static void setInfo(EiInfo inInfo) {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
List<String> supCodes = ObjectUtils.listKey(resultRows, HGPZ003.FIELD_SUP_CODE);
if (CollectionUtils.isEmpty(supCodes)) {
return;
}
Map<String, HGPZ003> resultMap = HGPZTools.HgPz003.map(supCodes);
if (MapUtils.isEmpty(resultMap)) {
return;
}
for (Map resultRow : resultRows) {
String projCode = MapUtils.getString(resultRow, HGPZ003.FIELD_SUP_CODE);
HGPZ003 dbPz003 = resultMap.get(projCode);
resultRow.put(HGPZ003.FIELD_SUP_NAME, dbPz003 == null ? "" : dbPz003.getSupName());
}
}
}
/**
* HGPZ020 定义 * HGPZ020 定义
* *
* @author songx * @author songx
......
...@@ -50,7 +50,8 @@ public class ServiceHGSB010 extends ServiceEPBase { ...@@ -50,7 +50,8 @@ public class ServiceHGSB010 extends ServiceEPBase {
public EiInfo queryBySbStatus(EiInfo inInfo) { public EiInfo queryBySbStatus(EiInfo inInfo) {
Map params = EiInfoUtils.getFirstRow(inInfo); Map params = EiInfoUtils.getFirstRow(inInfo);
if (params.containsKey("date")){ if (params.containsKey("date")){
params.put("date", DateUtils.formatShort(params.get("date"))); params.remove("date");
//params.put("date", DateUtils.formatShort(params.get("date")));
} }
List<Map> result = DaoBase.getInstance().query("HGSB010.queryBySbStatus", params); List<Map> result = DaoBase.getInstance().query("HGSB010.queryBySbStatus", params);
inInfo.set("result",result); inInfo.set("result",result);
......
...@@ -186,17 +186,18 @@ ...@@ -186,17 +186,18 @@
INNER join ( INNER join (
select EQUIPMENT_CODE, LOG_VALUE select EQUIPMENT_CODE, LOG_VALUE
from ${hggpSchema}.HGSB010 where EQUIPMENT_TYPE = 'STARUS_TYPE' from ${hggpSchema}.HGSB010 where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty prepend=" AND " property="accountCode"> and CREATED_TIME =(
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
CREATED_TIME =(
select MAX(CREATED_TIME) from ${hggpSchema}.HGSB010 select MAX(CREATED_TIME) from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE' and left(CREATED_TIME,8) = #date# where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode# ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
left(CREATED_TIME,8) = #date#
</isNotEmpty>
) )
<isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE ) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where a.DELETE_FLAG = 0 and a.DEVICE_STATUS = 1 where a.DELETE_FLAG = 0 and a.DEVICE_STATUS = 1
......
...@@ -317,10 +317,10 @@ public class ServiceHGSC007 extends ServiceEPBase { ...@@ -317,10 +317,10 @@ public class ServiceHGSC007 extends ServiceEPBase {
if (queryRow.containsKey("depositDate")) { if (queryRow.containsKey("depositDate")) {
queryRow.put("depositDate", DateUtils.formatShort(queryRow.get("depositDate"))); queryRow.put("depositDate", DateUtils.formatShort(queryRow.get("depositDate")));
} }
queryRow.put("processNames",Arrays.asList("切割下料","烧焊","车加工","铣加工","动平衡","装配")); //queryRow.put("processNames",Arrays.asList("切割下料","烧焊","车加工","铣加工","动平衡","装配"));
// List<Map> result = DaoBase.getInstance().query("HGSC007.queryBySunWt", queryRow); // List<Map> result = DaoBase.getInstance().query("HGSC007.queryBySunWt", queryRow);
List<HashMap<String, Object>> result = (List<HashMap<String, Object>>)DaoBase.getInstance().query("HGSC007.queryBySunWt", queryRow); List<HashMap<String, Object>> result = (List<HashMap<String, Object>>)DaoBase.getInstance().query("HGSC007.queryBySunWt", queryRow);
List<String> processNamesList = Arrays.asList("切割下料","烧焊","车加工","铣加工","动平衡","装配"); //"组立", "油漆", "埋弧盖面", "抛丸除锈", "拼装", "焊接" /*List<String> processNamesList = Arrays.asList("切割下料","烧焊","车加工","铣加工","动平衡","装配"); //"组立", "油漆", "埋弧盖面", "抛丸除锈", "拼装", "焊接"
List<Object> resultList = new ArrayList<>(); List<Object> resultList = new ArrayList<>();
for (String processNames:processNamesList){ for (String processNames:processNamesList){
for(Map<String, Object> item :result){ for(Map<String, Object> item :result){
...@@ -328,9 +328,9 @@ public class ServiceHGSC007 extends ServiceEPBase { ...@@ -328,9 +328,9 @@ public class ServiceHGSC007 extends ServiceEPBase {
resultList.add(item.get("totalWeight")); resultList.add(item.get("totalWeight"));
} }
} }
} }*/
EiBlock block = new EiBlock("result"); EiBlock block = new EiBlock("result");
block.set("processNameList",resultList); block.set("processNameList",result);
inInfo.addBlock(block); inInfo.addBlock(block);
// Object processNames = queryRow.get("processNames"); // Object processNames = queryRow.get("processNames");
// for(Object item:processNames){ // for(Object item:processNames){
...@@ -399,9 +399,15 @@ public class ServiceHGSC007 extends ServiceEPBase { ...@@ -399,9 +399,15 @@ public class ServiceHGSC007 extends ServiceEPBase {
List<Org> factoryCodes = new ArrayList<>(); List<Org> factoryCodes = new ArrayList<>();
try { try {
List<String> roleCompanyCode = HGSBTools.getRoleCompanyCode(); List<String> roleCompanyCode = HGSBTools.getRoleCompanyCode();
Optional.ofNullable(roleCompanyCode).orElse(new ArrayList<>()).stream().forEach(code -> { String accountCode = UserSessionUtils.getAccountCode();
factoryCodes.addAll(HGXSTools.XsOrg.queryByParent(code, OrgTypeEnum.FACTORY.getCode())); if ("Q24072514".equals(accountCode)){
}); factoryCodes.addAll(HGXSTools.XsOrg.queryByParent("R24072632", OrgTypeEnum.FACTORY.getCode()));
}else {
Optional.ofNullable(roleCompanyCode).orElse(new ArrayList<>()).stream().forEach(code -> {
factoryCodes.addAll(HGXSTools.XsOrg.queryByParent(code, OrgTypeEnum.FACTORY.getCode()));
});
}
List list = factoryCodes.stream() List list = factoryCodes.stream()
.filter(o -> com.baosight.hggp.util.StringUtils.equals(o.getOrgType(), OrgTypeEnum.FACTORY.getCode())) .filter(o -> com.baosight.hggp.util.StringUtils.equals(o.getOrgType(), OrgTypeEnum.FACTORY.getCode()))
.map(item -> new Factory(item.getCompanyCode(), item.getCompanyName(), item.getOrgId(), .map(item -> new Factory(item.getCompanyCode(), item.getCompanyName(), item.getOrgId(),
......
...@@ -1268,12 +1268,14 @@ ...@@ -1268,12 +1268,14 @@
<!--工序累计产量--> <!--工序累计产量-->
<select id="queryBySunWt" parameterClass="java.util.HashMap" resultClass="java.util.HashMap"> <select id="queryBySunWt" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
select select
A.SORT as "sort",
A.process_name as "processName", A.process_name as "processName",
ROUND(ifnull(SUM(B.INV_WEIGHT),0)/1000, 4) "totalWeight" ROUND(ifnull(SUM(B.INV_WEIGHT),0)/1000, 4) "totalWeight"
from ${hggpSchema}.HGGY001 A from ${hggpSchema}.HGGY001 A
join ${platSchema}.TXSOG01 C on A.FACTORY_CODE = C.COMPANY_CODE join ${platSchema}.TXSOG01 C on A.FACTORY_CODE = C.COMPANY_CODE
left join ( left join (
select select
h.COMPANY_CODE,
h2.process_code , h2.process_code ,
ROUND(ifnull(SUM(h.INV_WEIGHT), 0)/ 1000, 4) "INV_WEIGHT" ROUND(ifnull(SUM(h.INV_WEIGHT), 0)/ 1000, 4) "INV_WEIGHT"
from ${hggpSchema}.hgkc003 h from ${hggpSchema}.hgkc003 h
...@@ -1285,20 +1287,24 @@ ...@@ -1285,20 +1287,24 @@
<isNotEmpty prepend=" AND " property="depositDate"> <isNotEmpty prepend=" AND " property="depositDate">
left(h.DEPOSIT_DATE,6) = left(#depositDate#,6) left(h.DEPOSIT_DATE,6) = left(#depositDate#,6)
</isNotEmpty> </isNotEmpty>
group by h2.process_code group by h.COMPANY_CODE, h2.process_code
) B on A.process_code = B.process_code ) B on A.FACTORY_CODE = B.COMPANY_CODE AND A.process_code = B.process_code
where 1=1 and DELETE_FLAG = '0' where 1=1 and DELETE_FLAG = '0' and reveal = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
A.account_code = #accountCode# A.account_code = #accountCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="processNames"> <isNotEmpty prepend=" AND " property="processNames">
A.process_name IN <iterate close=")" open="(" conjunction="," property="processNames">#processNames[]#</iterate> A.process_name IN <iterate close=")" open="(" conjunction="," property="processNames">#processNames[]#</iterate>
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="factoryCode">
C.factory_code = #factoryCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="factoryName"> <isNotEmpty prepend=" AND " property="factoryName">
C.factory_name = #factoryName# C.factory_name = #factoryName#
</isNotEmpty> </isNotEmpty>
group by group by
A.process_name A.SORT, A.process_name
order by A.SORT
</select> </select>
<!--日期到条件7天日产量--> <!--日期到条件7天日产量-->
<select id="queryByDayWt" parameterClass="java.util.HashMap" resultClass="java.util.HashMap"> <select id="queryByDayWt" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
......
...@@ -278,6 +278,17 @@ public class HGSCTools { ...@@ -278,6 +278,17 @@ public class HGSCTools {
queryMap.put("projCodes", projCodes); queryMap.put("projCodes", projCodes);
return DaoBase.getInstance().query(HGSC001.QUERY, queryMap); return DaoBase.getInstance().query(HGSC001.QUERY, queryMap);
} }
/**
* 查询
*
* @param projCodes
* @return
*/
public static Map<String, HGSC001> map(List<String> projCodes) {
List<HGSC001> results = queryByCode(projCodes);
return results.stream().collect(Collectors.toMap(HGSC001::getProjCode, item -> item));
}
} }
public static class Hgsc003 { public static class Hgsc003 {
......
...@@ -4,19 +4,20 @@ import com.baosight.hggp.core.constant.CommonConstant; ...@@ -4,19 +4,20 @@ import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.core.dao.DaoUtils; import com.baosight.hggp.core.dao.DaoUtils;
import com.baosight.hggp.core.enums.DeleteFlagEnum; import com.baosight.hggp.core.enums.DeleteFlagEnum;
import com.baosight.hggp.core.security.UserSessionUtils; import com.baosight.hggp.core.security.UserSessionUtils;
import com.baosight.hggp.hg.kc.domain.HGKC010;
import com.baosight.hggp.hg.kc.tools.HGKCTools;
import com.baosight.hggp.hg.sc.constant.HgScSqlConstant; import com.baosight.hggp.hg.sc.constant.HgScSqlConstant;
import com.baosight.hggp.hg.sc.domain.HGSC001;
import com.baosight.hggp.hg.sc.domain.HGSC004A; import com.baosight.hggp.hg.sc.domain.HGSC004A;
import com.baosight.hggp.hg.sc.domain.HGSC007; import com.baosight.hggp.hg.sc.domain.HGSC007;
import com.baosight.hggp.hg.sc.domain.HGSC007B; import com.baosight.hggp.hg.sc.domain.HGSC007B;
import com.baosight.hggp.hg.sc.domain.HGSC010A; import com.baosight.hggp.hg.sc.domain.HGSC010A;
import com.baosight.hggp.hg.sc.tools.HGSCTools; import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.hg.xs.domain.HGXS007;
import com.baosight.hggp.hg.xs.domain.User; import com.baosight.hggp.hg.xs.domain.User;
import com.baosight.hggp.hg.xs.tools.HGXSTools; import com.baosight.hggp.hg.xs.tools.HGXSTools;
import com.baosight.hggp.util.BeanUtils; import com.baosight.hggp.util.BeanUtils;
import com.baosight.hggp.util.MapUtils;
import com.baosight.hggp.util.ObjectUtils; import com.baosight.hggp.util.ObjectUtils;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.xservices.xs.util.LoginUserDetails; import com.baosight.xservices.xs.util.LoginUserDetails;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
...@@ -30,7 +31,39 @@ import java.util.stream.Collectors; ...@@ -30,7 +31,39 @@ import java.util.stream.Collectors;
* @date:2024/8/22,16:15 * @date:2024/8/22,16:15
*/ */
public class HgScUtils { public class HgScUtils {
/**
* HGSC001 定义
*
* @author songx
* @date 2024/11/17,15:55
*/
public static class HgSc001 {
/**
* 设置信息
*
* @param inInfo
*/
public static void setInfo(EiInfo inInfo) {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
List<String> projCodes = ObjectUtils.listKey(resultRows, HGSC001.FIELD_proj_code);
if (CollectionUtils.isEmpty(projCodes)) {
return;
}
Map<String, HGSC001> resultMap = HGSCTools.Hgsc001.map(projCodes);
if (MapUtils.isEmpty(resultMap)) {
return;
}
for (Map resultRow : resultRows) {
String projCode = MapUtils.getString(resultRow, HGSC001.FIELD_proj_code);
HGSC001 dbSc001 = resultMap.get(projCode);
resultRow.put(HGSC001.FIELD_proj_name, dbSc001 == null ? "" : dbSc001.getProjName());
}
}
}
/** /**
* @author:jhs * @author:jhs
* @date:2024/10/27,16:17 * @date:2024/10/27,16:17
......
...@@ -47,6 +47,8 @@ public class HGSJ001 extends DaoEPBase { ...@@ -47,6 +47,8 @@ public class HGSJ001 extends DaoEPBase {
public static final String FIELD_COMPUTE_TYPE = "computeType"; /* 计算类型*/ public static final String FIELD_COMPUTE_TYPE = "computeType"; /* 计算类型*/
public static final String FIELD_COST_WEIGHT = "costWeight"; public static final String FIELD_COST_WEIGHT = "costWeight";
public static final String FIELD_OVERLAP_DAY = "overlapDay"; /* 前后工序重叠天数*/ public static final String FIELD_OVERLAP_DAY = "overlapDay"; /* 前后工序重叠天数*/
public static final String FIELD_REVEAL = "reveal"; /*是否驾驶舱显示*/
public static final String FIELD_SORT = "sort"; /*排序*/
public static final String COL_ID = "ID"; /* 主键id*/ public static final String COL_ID = "ID"; /* 主键id*/
public static final String COL_ACCOUNT_CODE = "ACCOUNT_CODE"; /* 企业编码 预留*/ public static final String COL_ACCOUNT_CODE = "ACCOUNT_CODE"; /* 企业编码 预留*/
...@@ -102,6 +104,8 @@ public class HGSJ001 extends DaoEPBase { ...@@ -102,6 +104,8 @@ public class HGSJ001 extends DaoEPBase {
private Integer computeType = 0; private Integer computeType = 0;
private BigDecimal costWeight = new BigDecimal(0.000); private BigDecimal costWeight = new BigDecimal(0.000);
private Integer overlapDay = 0; /* 前后工序重叠天数*/ private Integer overlapDay = 0; /* 前后工序重叠天数*/
private Integer reveal = 0; /*是否驾驶舱显示*/
private Integer sort = 0; /*排序*/
/** /**
* initialize the metadata. * initialize the metadata.
...@@ -219,6 +223,16 @@ public class HGSJ001 extends DaoEPBase { ...@@ -219,6 +223,16 @@ public class HGSJ001 extends DaoEPBase {
eiColumn.setDescName("前后工序重叠天数"); eiColumn.setDescName("前后工序重叠天数");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_REVEAL);
eiColumn.setType("N");
eiColumn.setDescName("是否驾驶舱显示");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SORT);
eiColumn.setType("N");
eiColumn.setDescName("排序");
eiMetadata.addMeta(eiColumn);
} }
/** /**
...@@ -581,7 +595,23 @@ public class HGSJ001 extends DaoEPBase { ...@@ -581,7 +595,23 @@ public class HGSJ001 extends DaoEPBase {
public void setOverlapDay(Integer overlapDay) { public void setOverlapDay(Integer overlapDay) {
this.overlapDay = overlapDay; this.overlapDay = overlapDay;
} }
public Integer getReveal() {
return reveal;
}
public void setReveal(Integer reveal) {
this.reveal = reveal;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
/** /**
* get the value from Map. * get the value from Map.
* *
...@@ -614,6 +644,8 @@ public class HGSJ001 extends DaoEPBase { ...@@ -614,6 +644,8 @@ public class HGSJ001 extends DaoEPBase {
setComputeType(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_COMPUTE_TYPE)), computeType)); setComputeType(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_COMPUTE_TYPE)), computeType));
setCostWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_COST_WEIGHT)), costWeight)); setCostWeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_COST_WEIGHT)), costWeight));
setOverlapDay(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_OVERLAP_DAY)), overlapDay)); setOverlapDay(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_OVERLAP_DAY)), overlapDay));
setReveal(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_REVEAL)), reveal));
setSort(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_SORT)), sort));
} }
/** /**
...@@ -647,6 +679,8 @@ public class HGSJ001 extends DaoEPBase { ...@@ -647,6 +679,8 @@ public class HGSJ001 extends DaoEPBase {
map.put(FIELD_COMPUTE_TYPE, StringUtils.toString(computeType, eiMetadata.getMeta(FIELD_COMPUTE_TYPE))); map.put(FIELD_COMPUTE_TYPE, StringUtils.toString(computeType, eiMetadata.getMeta(FIELD_COMPUTE_TYPE)));
map.put(FIELD_COST_WEIGHT,StringUtils.toString(costWeight, eiMetadata.getMeta(FIELD_COST_WEIGHT))); map.put(FIELD_COST_WEIGHT,StringUtils.toString(costWeight, eiMetadata.getMeta(FIELD_COST_WEIGHT)));
map.put(FIELD_OVERLAP_DAY,StringUtils.toString(overlapDay, eiMetadata.getMeta(FIELD_OVERLAP_DAY))); map.put(FIELD_OVERLAP_DAY,StringUtils.toString(overlapDay, eiMetadata.getMeta(FIELD_OVERLAP_DAY)));
map.put(FIELD_REVEAL,StringUtils.toString(reveal, eiMetadata.getMeta(FIELD_REVEAL)));
map.put(FIELD_SORT,StringUtils.toString(sort, eiMetadata.getMeta(FIELD_SORT)));
return map; return map;
} }
......
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
STATUS as "status", <!-- 状态0.停止1.启动 --> STATUS as "status", <!-- 状态0.停止1.启动 -->
COMPUTE_TYPE as "computeType", COMPUTE_TYPE as "computeType",
COST_WEIGHT as "costWeight", <!-- 费用权重 --> COST_WEIGHT as "costWeight", <!-- 费用权重 -->
OVERLAP_DAY as "overlapDay" <!-- 前后工序重叠天数 --> OVERLAP_DAY as "overlapDay", <!-- 前后工序重叠天数 -->
REVEAL as "reveal",
SORT as "sort"
</sql> </sql>
<sql id="condition"> <sql id="condition">
...@@ -107,6 +109,12 @@ ...@@ -107,6 +109,12 @@
<isNotEmpty prepend=" AND " property="computeType"> <isNotEmpty prepend=" AND " property="computeType">
COMPUTE_TYPE = #computeType# COMPUTE_TYPE = #computeType#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="reveal">
REVEAL = #reveal#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="sort">
SORT = #sort#
</isNotEmpty>
</sql> </sql>
<sql id="orderBy"> <sql id="orderBy">
...@@ -115,7 +123,7 @@ ...@@ -115,7 +123,7 @@
$orderBy$ $orderBy$
</isNotEmpty> </isNotEmpty>
<isEmpty property="orderBy"> <isEmpty property="orderBy">
CREATED_TIME DESC, ID ASC SORT, CREATED_TIME DESC, ID ASC
</isEmpty> </isEmpty>
</dynamic> </dynamic>
</sql> </sql>
...@@ -152,12 +160,12 @@ ...@@ -152,12 +160,12 @@
PRINC, <!-- 负责人 --> PRINC, <!-- 负责人 -->
PRINC_NAME, PRINC_NAME,
STATUS, <!-- 状态0.停止1.启动 --> STATUS, <!-- 状态0.停止1.启动 -->
COMPUTE_TYPE, COST_WEIGHT, OVERLAP_DAY COMPUTE_TYPE, COST_WEIGHT, OVERLAP_DAY, REVEAL, SORT
) VALUES ( ) VALUES (
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#deleteFlag#, #factoryCode#, #factoryName#, #processCode#, #processName#, #deleteFlag#, #factoryCode#, #factoryName#, #processCode#, #processName#,
#unit#, #standardJob#, #standardDays#, #standardNum#, #princ#, #princName#, #unit#, #standardJob#, #standardDays#, #standardNum#, #princ#, #princName#,
#status#, #computeType#, #costWeight#, #overlapDay#) #status#, #computeType#, #costWeight#, #overlapDay#,#reveal#,#sort#)
</insert> </insert>
<delete id="delete"> <delete id="delete">
...@@ -195,7 +203,9 @@ ...@@ -195,7 +203,9 @@
STATUS = #status#, <!-- 状态0.停止1.启动 --> STATUS = #status#, <!-- 状态0.停止1.启动 -->
COMPUTE_TYPE = #computeType#, COMPUTE_TYPE = #computeType#,
COST_WEIGHT = #costWeight#, COST_WEIGHT = #costWeight#,
OVERLAP_DAY = #overlapDay# OVERLAP_DAY = #overlapDay#,
REVEAL = #reveal#,
SORT = #sort#
WHERE ID = #id# WHERE ID = #id#
</update> </update>
......
package com.baosight.hggp.hg.wd.service; package com.baosight.hggp.hg.wd.service;
import com.baosight.hggp.core.constant.CodesetConstant;
import com.baosight.hggp.core.constant.CommonConstant; import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.core.dao.DaoBase; import com.baosight.hggp.core.dao.DaoBase;
import com.baosight.hggp.core.security.UserSessionUtils; import com.baosight.hggp.core.security.UserSessionUtils;
...@@ -31,6 +32,7 @@ import org.apache.commons.lang.StringUtils; ...@@ -31,6 +32,7 @@ import org.apache.commons.lang.StringUtils;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
...@@ -246,7 +248,7 @@ public class ServiceHGWD001D extends TreeService { ...@@ -246,7 +248,7 @@ public class ServiceHGWD001D extends TreeService {
boolean isManager = HgWdUtils.HgWd009.isManager(); boolean isManager = HgWdUtils.HgWd009.isManager();
List<String> projectSources = isManager ? null : listTopNode(); List<String> projectSources = isManager ? null : listTopNode();
// 项目来源小代码 // 项目来源小代码
List<Map> codesetMaps = CodeValueTools.getCodeValues("app.sc.projectSource"); List<Map> codesetMaps = CodeValueTools.getCodeValues(CodesetConstant.PROJECT_SOURCE);
for (Map codesetMap : codesetMaps) { for (Map codesetMap : codesetMaps) {
String id = MapUtils.getString(codesetMap, "value"); String id = MapUtils.getString(codesetMap, "value");
String text = MapUtils.getString(codesetMap, "label"); String text = MapUtils.getString(codesetMap, "label");
...@@ -400,8 +402,23 @@ public class ServiceHGWD001D extends TreeService { ...@@ -400,8 +402,23 @@ public class ServiceHGWD001D extends TreeService {
if (!HgWdUtils.HgWd009.isManager()) { if (!HgWdUtils.HgWd009.isManager()) {
queryMap.put("userId", UserSessionUtils.getLoginName()); queryMap.put("userId", UserSessionUtils.getLoginName());
} }
queryMap.put(HGSC001.FIELD_approval_status, HGConstant.ApprovalStatus.YS);
List<HGWD001> nodeWds = dao.query(HGWD001.QUERY, queryMap); List<HGWD001> nodeWds = dao.query(HGWD001.QUERY, queryMap);
// 查询父级结构 if (CollectionUtils.isEmpty(nodeWds)) {
return inInfo;
}
List<List<String>> allPath = new ArrayList<>();
for (HGWD001 nodeWd : nodeWds) {
String fileIdPath = nodeWd.getFileIdPath();
if (StringUtils.isBlank(fileIdPath)) {
continue;
}
List<String> fileIds = Arrays.stream(fileIdPath.split("/"))
.filter(StringUtils::isNotBlank).collect(Collectors.toList());
fileIds.add(nodeWd.getFileId());
allPath.add(fileIds);
}
inInfo.set("allPath", allPath);
} catch (Exception e) { } catch (Exception e) {
LogUtils.setMsg(inInfo, e, "搜索节点失败"); LogUtils.setMsg(inInfo, e, "搜索节点失败");
} }
......
...@@ -93,10 +93,10 @@ public class ServiceHGWD001E extends ServiceEPBase { ...@@ -93,10 +93,10 @@ public class ServiceHGWD001E extends ServiceEPBase {
if (wd001 == null) { if (wd001 == null) {
String filePath = setFilePath(hgsc001, edcm01Map.get("app.sc.projectSource")); String filePath = setFilePath(hgsc001, edcm01Map.get("app.sc.projectSource"));
hgwd001.setFilePath(filePath + "/" + hgwd001.getFileName()); hgwd001.setFilePath(filePath + "/" + hgwd001.getFileName());
hgwd001.setFileIdPath(setFileIdPath(hgsc001)); hgwd001.setFileIdPath(setFileIdPath(hgsc001));
} else { } else {
hgwd001.setFilePath(wd001.getFilePath() + "/" + hgwd001.getFileName()); hgwd001.setFilePath(wd001.getFilePath() + "/" + hgwd001.getFileName());
hgwd001.setFileIdPath(wd001.getFilePath() + "/" + hgwd001.getFileId()); hgwd001.setFileIdPath(wd001.getFileIdPath() + "/" + wd001.getFileId());
} }
if (hgwd001.getId() == null || hgwd001.getId() == 0) { if (hgwd001.getId() == null || hgwd001.getId() == 0) {
this.add(hgwd001); this.add(hgwd001);
......
...@@ -85,7 +85,7 @@ public class ServiceHGWD001F extends ServiceEPBase { ...@@ -85,7 +85,7 @@ public class ServiceHGWD001F extends ServiceEPBase {
hgwd001.setFileIdPath(setFileIdPath(hgsc001)); hgwd001.setFileIdPath(setFileIdPath(hgsc001));
} else { } else {
hgwd001.setFilePath(wd001.getFilePath() + "/" + hgwd001.getFileName()); hgwd001.setFilePath(wd001.getFilePath() + "/" + hgwd001.getFileName());
hgwd001.setFileIdPath(wd001.getFilePath() + "/" + hgwd001.getFileId()); hgwd001.setFileIdPath(wd001.getFileIdPath() + "/" + hgwd001.getFileId());
} }
if (hgwd001.getId() == null || hgwd001.getId() == 0) { if (hgwd001.getId() == null || hgwd001.getId() == 0) {
this.add(hgwd001); this.add(hgwd001);
......
...@@ -2,7 +2,9 @@ package com.baosight.hggp.hg.wd.service; ...@@ -2,7 +2,9 @@ package com.baosight.hggp.hg.wd.service;
import com.baosight.hggp.aspect.annotation.OperationLogAnnotation; import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import com.baosight.hggp.common.DdynamicEnum; import com.baosight.hggp.common.DdynamicEnum;
import com.baosight.hggp.core.constant.CodesetConstant;
import com.baosight.hggp.core.security.UserSessionUtils; import com.baosight.hggp.core.security.UserSessionUtils;
import com.baosight.hggp.core.tools.CodeOptionTools;
import com.baosight.hggp.hg.sc.enums.ProjectSourceEnum; import com.baosight.hggp.hg.sc.enums.ProjectSourceEnum;
import com.baosight.hggp.hg.wd.constant.HgWdConstant; import com.baosight.hggp.hg.wd.constant.HgWdConstant;
import com.baosight.hggp.hg.wd.domain.HGWD001; import com.baosight.hggp.hg.wd.domain.HGWD001;
...@@ -37,6 +39,7 @@ public class ServiceHGWD002 extends ServiceBase { ...@@ -37,6 +39,7 @@ public class ServiceHGWD002 extends ServiceBase {
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.PROJ_RECORD_BLOCK_ID)); CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.PROJ_RECORD_BLOCK_ID));
CodeOptionTools.buildOption(inInfo, CodesetConstant.PROJECT_SOURCE, "project_source", false);
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGWD002().eiMetadata); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGWD002().eiMetadata);
} catch (Exception e) { } catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "初始化失败"); LogUtils.setDetailMsg(inInfo, e, "初始化失败");
......
...@@ -420,7 +420,7 @@ ...@@ -420,7 +420,7 @@
'' as "FILE_TYPE", <!-- 文件类型 --> '' as "FILE_TYPE", <!-- 文件类型 -->
'' as "FILE_NAME", <!-- 文件名称 --> '' as "FILE_NAME", <!-- 文件名称 -->
PROJECT_SOURCE as "FILE_PATH", PROJECT_SOURCE as "FILE_PATH",
PROJ_CODE as "fileIdPath" PROJ_CODE as "FILE_ID_PATH"
FROM ${hggpSchema}.HGSC001 T WHERE 1=1 FROM ${hggpSchema}.HGSC001 T WHERE 1=1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode# ACCOUNT_CODE = #accountCode#
......
package com.baosight.hggp.hg.yx.domain; package com.baosight.hggp.hg.yx.domain;
import com.baosight.hggp.util.DateUtils;
import com.baosight.iplat4j.core.data.DaoEPBase; import com.baosight.iplat4j.core.data.DaoEPBase;
import com.baosight.iplat4j.core.ei.EiColumn; import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.util.NumberUtils; import com.baosight.iplat4j.core.util.NumberUtils;
...@@ -558,7 +559,7 @@ public class HGYX010 extends DaoEPBase { ...@@ -558,7 +559,7 @@ public class HGYX010 extends DaoEPBase {
setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_NAME)), updatedName)); setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_NAME)), updatedName));
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_TIME)), updatedTime)); setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_TIME)), updatedTime));
setDeleteFlag(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_DELETE_FLAG)), deleteFlag)); setDeleteFlag(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_DELETE_FLAG)), deleteFlag));
setSellDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SELL_DATE)), sellDate)); setSellDate(StringUtils.defaultIfEmpty(StringUtils.toString(DateUtils.formatShort(map.get(FIELD_SELL_DATE))), sellDate));
setSourceFunds(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SOURCE_FUNDS)), sourceFunds)); setSourceFunds(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SOURCE_FUNDS)), sourceFunds));
setDistrict(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DISTRICT)), district)); setDistrict(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DISTRICT)), district));
setContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CONTENT)), content)); setContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CONTENT)), content));
......
...@@ -85,7 +85,7 @@ public class ServiceHGZL003 extends ServiceBase { ...@@ -85,7 +85,7 @@ public class ServiceHGZL003 extends ServiceBase {
List<HGZL003> fZl003s = MapUtils.toDaoEPBases(inInfo, HGZL003.class); List<HGZL003> fZl003s = MapUtils.toDaoEPBases(inInfo, HGZL003.class);
for (HGZL003 fZl003 : fZl003s) { for (HGZL003 fZl003 : fZl003s) {
fZl003.setCheckDate(DateUtils.formatShort(fZl003.getCheckDate())); fZl003.setCheckDate(DateUtils.formatShort(fZl003.getCheckDate()));
if (StringUtils.isEmpty(fZl003.getCheckCode())) { if (StringUtils.isBlank(fZl003.getCheckCode())) {
this.add(fZl003); this.add(fZl003);
} else { } else {
this.modify(fZl003); this.modify(fZl003);
...@@ -110,7 +110,12 @@ public class ServiceHGZL003 extends ServiceBase { ...@@ -110,7 +110,12 @@ public class ServiceHGZL003 extends ServiceBase {
newZl003.setCheckCode(SequenceGenerator.getNextSequence(HGConstant.SequenceId.HGZL003_CHECK_CODE)); newZl003.setCheckCode(SequenceGenerator.getNextSequence(HGConstant.SequenceId.HGZL003_CHECK_CODE));
newZl003.setCheckBy(UserSessionUtils.getLoginName()); newZl003.setCheckBy(UserSessionUtils.getLoginName());
newZl003.setCheckName(UserSessionUtils.getLoginCName()); newZl003.setCheckName(UserSessionUtils.getLoginCName());
newZl003.setCheckDate(DateUtils.shortDate()); newZl003.setCheckDate(DateUtils.formatShort(fZl003.getCheckDate()));
newZl003.setQuantity(fZl003.getQuantity());
newZl003.setUnpassQuantity(fZl003.getUnpassQuantity());
newZl003.setPassQuantity(fZl003.getQuantity() - fZl003.getUnpassQuantity());
newZl003.setWorkBy(fZl003.getWorkBy());
newZl003.setWorkName(fZl003.getWorkName());
DaoUtils.insert(HGZL003.INSERT, newZl003); DaoUtils.insert(HGZL003.INSERT, newZl003);
// 生成整改通知单 // 生成整改通知单
HGZLTools.HgZl004.addByHGZL003(newZl003); HGZLTools.HgZl004.addByHGZL003(newZl003);
......
...@@ -67,7 +67,7 @@ public class ServiceXSOG0801A extends ServiceEPBase { ...@@ -67,7 +67,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
condition = " ITEM_CODE = 'NOT CODE'"; condition = " ITEM_CODE = 'NOT CODE'";
} }
} }
List<Map> orgTypes = CodeValueTools.getCodeValues(CodesetConstant.XsOg.ORG_TYPE, condition); List<Map> orgTypes = CodeValueTools.getCodeValues(CodesetConstant.ORG_TYPE, condition);
inInfo.addBlock("orgTypeBlock").addRows(orgTypes); inInfo.addBlock("orgTypeBlock").addRows(orgTypes);
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new XSOG01().eiMetadata); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new XSOG01().eiMetadata);
} catch (Exception e) { } catch (Exception e) {
......
...@@ -58,7 +58,7 @@ public class ServiceXSOG0801B extends ServiceEPBase { ...@@ -58,7 +58,7 @@ public class ServiceXSOG0801B extends ServiceEPBase {
}else { }else {
condition = " ITEM_CODE = 'NOT CODE'"; condition = " ITEM_CODE = 'NOT CODE'";
} }
List<Map> orgTypes = CodeValueTools.getCodeValues(CodesetConstant.XsOg.ORG_TYPE, condition); List<Map> orgTypes = CodeValueTools.getCodeValues(CodesetConstant.ORG_TYPE, condition);
inInfo.addBlock("orgTypeBlock").addRows(orgTypes); inInfo.addBlock("orgTypeBlock").addRows(orgTypes);
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new XSOG01().eiMetadata); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new XSOG01().eiMetadata);
} catch (Exception e) { } catch (Exception e) {
......
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
}, },
mounted() { mounted() {
setInterval(() => { setInterval(() => {
this.date = new Date(); // 更新日期时间 this.currentTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
}, 1000); }, 1000);
this.getYesterdayDateFormatted(); this.getYesterdayDateFormatted();
this.getRoleFactory(); this.getRoleFactory();
...@@ -393,22 +393,7 @@ ...@@ -393,22 +393,7 @@
] ]
} }
}, }
formatTime(currentTime) {
const formattedTime =
currentTime.getFullYear() +
"-" +
(currentTime.getMonth() + 1) +
"-" +
currentTime.getDate() +
" " +
currentTime.getHours() +
":" +
currentTime.getMinutes() +
":" +
currentTime.getSeconds();
return formattedTime;
},
}, },
computed:{ computed:{
baroption() { baroption() {
...@@ -416,10 +401,7 @@ ...@@ -416,10 +401,7 @@
}, },
lineoption() { lineoption() {
return this.option2; return this.option2;
}, }
currentTime() {
return this.formatTime(this.date);
},
} }
}) })
</script> </script>
......
...@@ -115,6 +115,29 @@ ...@@ -115,6 +115,29 @@
<link rel="stylesheet" href="${ctx}/common/css/element-ui.css"> <link rel="stylesheet" href="${ctx}/common/css/element-ui.css">
<script src="${ctx}/common/js/element-ui.js"></script> <script src="${ctx}/common/js/element-ui.js"></script>
<script src="${ctx}/common/js/echarts.min.js"></script> <script src="${ctx}/common/js/echarts.min.js"></script>
<style>
#app .el-carousel__arrow{
background-color: rgba(255, 255, 255, 0.48) !important;
}
#app .el-carousel__arrow i{
font-size: 16px;
font-weight: bold;
}
.device-img{
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 84%;
height: 100%;
}
.device-img img{
display: block;
height: 100%;
width: 100%;
border-radius: 4px;
}
</style>
</head> </head>
<body> <body>
<div> <div>
...@@ -167,57 +190,93 @@ ...@@ -167,57 +190,93 @@
</el-aside> </el-aside>
<el-main style="padding-bottom: 0;height: 80vh;overflow: hidden"> <el-main style="padding-bottom: 0;height: 80vh;overflow: hidden">
<div class="home-page-main">
<div class="left-device device"> <el-carousel height="80vh" :interval="10000">
<div v-for="(item,index) in queryBySbStatusList" <el-carousel-item >
:key="index" class="device-background"> <div class="home-page-main">
<div class="device-title " style="padding-top: 0.2vh;margin-left: 2vw;display: flex"> <div class="left-device device">
<div class="device-span" style="width: 50%">{{ item.deviceName }}</div> <div v-for="(item,index) in queryBySbStatusList"
<div style="display: flex;width: 50%"> :key="index" class="device-background" v-if="index<=2">
<div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-if="item.status == '3' || item.status == '5' ||item.status == '6'">设备关机</div> <div class="device-title " style="padding-top: 0.2vh;margin-left: 2vw;display: flex">
<div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-else-if="item.status == '1' || item.status == '2' ||item.status == '4' ">设备开机</div> <div class="device-span" style="width: 50%">{{ item.deviceName }}</div>
<div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-else="item.status == '0'">设备异常</div> <div style="display: flex;width: 50%">
<div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-if="item.status == '3' || item.status == '5' ||item.status == '6'">设备关机</div>
<img src="${ctx}/common/img/powerOn.png" style="width: 1.5vw;height: 3vh" v-if="item.status == '1' || item.status == '2' ||item.status == '4' " alt/> <div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-else-if="item.status == '1' || item.status == '2' ||item.status == '4' ">设备开机</div>
<img src="${ctx}/common/img/powerDown.png" style="width: 1.5vw;height: 3vh" v-else alt/> <div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-else="item.status == '0'">设备异常</div>
<img src="${ctx}/common/img/powerOn.png" style="width: 1.5vw;height: 3vh" v-if="item.status == '1' || item.status == '2' ||item.status == '4' " alt/>
<img src="${ctx}/common/img/powerDown.png" style="width: 1.5vw;height: 3vh" v-else alt/>
</div>
</div>
<div class="device-main device-span">
<div style="display: flex;width: 100%;margin-left: 1vw;height: 3vh">
<div style="margin-right: 0.5vw;color: #FFFFFF;font-size: 0.8vw;">设备型号</div>
<div style="color: #01A9FF;font-size: 1vw;">{{ item.deviceModel }}</div>
</div>
<div style="height: 15.5vh;width: 100%;display: flex;justify-content: center;align-items: center;">
<div v-if="item.imgUrl" class="device-img">
<img :src="item.imgUrl" style="height: 100%;" alt="">
</div>
<img v-else src="${ctx}/common/img/avi.png" style="width: 3vw;height: 6vh;" alt/>
</div>
</div>
</div> </div>
</div> </div>
<div class="device-main device-span"> <div class="left-device device" >
<div style="display: flex;width: 100%;margin-left: 1vw;height: 3vh"> <div v-for="(item,index) in querySbYesList" :key="index" v-if="index<=2" class="device-echarts-background">
<div style="margin-right: 0.5vw;color: #FFFFFF;font-size: 0.8vw;">设备型号</div> <manage-echarts :option="item.option" :width="17" :height="23"></manage-echarts>
<div style="color: #01A9FF;font-size: 1vw;">{{ item.deviceModel }}</div>
</div> </div>
<div style="height: 15.5vh;width: 100%;display: flex;justify-content: center;align-items: center;"> </div>
<img src="${ctx}/common/img/avi.png" style="width: 3vw;height: 6vh;" alt/> <div class="left-device device">
<div v-for="(item,index) in querySbNoList" :key="index" v-if="index<=2" class="device-echarts-background">
<manage-echarts :option="item.option" :width="17" :height="23"></manage-echarts>
</div> </div>
</div> </div>
</div> </div>
</div> </el-carousel-item>
<div class="left-device device" style="margin-left: 2vw;"> <el-carousel-item v-if="queryBySbStatusList.length > 3" >
<div v-for="(item,index) in querySbYesList" <div class="home-page-main">
:key="index" class="device-echarts-background"> <div class="left-device device">
<manage-echarts :option="item.option" :width="17" :height="23"></manage-echarts> <div v-for="(item,index) in queryBySbStatusList"
</div> :key="index" v-if="index >= 3 && index<6" class="device-background">
<div class="device-echarts-background"> <div class="device-title " style="padding-top: 0.2vh;margin-left: 2vw;display: flex">
<manage-echarts :option="lineOption1" :width="17" :height="23"></manage-echarts> <div class="device-span" style="width: 50%">{{ item.deviceName }}</div>
</div> <div style="display: flex;width: 50%">
<div class="device-echarts-background"> <div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-if="item.status == '3' || item.status == '5' ||item.status == '6'">设备关机</div>
<manage-echarts :option="lineOption1" :width="17" :height="23"></manage-echarts> <div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-else-if="item.status == '1' || item.status == '2' ||item.status == '4' ">设备开机</div>
</div> <div class="openOn-span" style="margin-left: 0.5vw;margin-right: 0.5vw" v-else="item.status == '0'">设备异常</div>
</div>
<div class="left-device device" style="margin-left: 2vw;"> <img src="${ctx}/common/img/powerOn.png" style="width: 1.5vw;height: 3vh" v-if="item.status == '1' || item.status == '2' ||item.status == '4' " alt/>
<div v-for="(item,index) in querySbNoList" <img src="${ctx}/common/img/powerDown.png" style="width: 1.5vw;height: 3vh" v-else alt/>
:key="index" class="device-echarts-background"> </div>
<manage-echarts :option="item.option" :width="17" :height="23"></manage-echarts> </div>
</div> <div class="device-main device-span">
<div class="device-echarts-background"> <div style="display: flex;width: 100%;margin-left: 1vw;height: 3vh">
<manage-echarts :option="lineOption2" :width="17" :height="23"></manage-echarts> <div style="margin-right: 0.5vw;color: #FFFFFF;font-size: 0.8vw;">设备型号</div>
</div> <div style="color: #01A9FF;font-size: 1vw;">{{ item.deviceModel }}</div>
<div class="device-echarts-background"> </div>
<manage-echarts :option="lineOption2" :width="17" :height="23"></manage-echarts> <div style="height: 15.5vh;width: 100%;display: flex;justify-content: center;align-items: center;">
<img v-if="item.imgUrl" :src="item.imgUrl" style="height: 100%;" alt="">
<img v-else src="${ctx}/common/img/avi.png" style="width: 3vw;height: 6vh;" alt/>
</div>
</div>
</div>
</div>
<div class="left-device device">
<div v-for="(item,index) in querySbYesList" :key="index" v-if="index >= 3 && index<6" class="device-echarts-background">
<manage-echarts :option="item.option" :width="17" :height="23"></manage-echarts>
</div>
</div>
<div class="left-device device">
<div v-for="(item,index) in querySbNoList" :key="index" v-if="index >= 3 && index<6" class="device-echarts-background">
<manage-echarts :option="item.option" :width="17" :height="23"></manage-echarts>
</div>
</div>
</div> </div>
</div> </el-carousel-item>
</div> </el-carousel>
</el-main> </el-main>
</el-container> </el-container>
</el-container> </el-container>
...@@ -252,9 +311,7 @@ ...@@ -252,9 +311,7 @@
querySbYesDate:[], querySbYesDate:[],
querySbNoList:[], querySbNoList:[],
querySbNODate:[], querySbNODate:[],
currentTime:dayjs().format("YYYY-MM-DD HH:mm:ss"), currentTime:dayjs().format("YYYY-MM-DD HH:mm:ss")
lineOption1:'',
lineOption2:''
}; };
}, },
mounted() { mounted() {
...@@ -265,8 +322,6 @@ ...@@ -265,8 +322,6 @@
this.getYesterdayDateFormatted(); this.getYesterdayDateFormatted();
this.getRoleFactory(); this.getRoleFactory();
this.initPage(); this.initPage();
this.setOption();
this.setOption2();
this.onSetInterval() this.onSetInterval()
}, },
methods: { methods: {
...@@ -282,8 +337,8 @@ ...@@ -282,8 +337,8 @@
}, },
initPage(){ initPage(){
this.queryBySbStatus(); this.queryBySbStatus();
this.querySbYes(); // this.querySbYes();
this.querySbNo(); // this.querySbNo();
}, },
getYesterdayDateFormatted() { getYesterdayDateFormatted() {
this.dataPicker = dayjs().format("YYYYMMDD"); this.dataPicker = dayjs().format("YYYYMMDD");
...@@ -315,19 +370,46 @@ ...@@ -315,19 +370,46 @@
IPLAT.EiCommunicator.send('HGSB010', 'queryBySbStatus', inInfo, { IPLAT.EiCommunicator.send('HGSB010', 'queryBySbStatus', inInfo, {
onSuccess: function (res) { onSuccess: function (res) {
if(undefined != res.extAttr.result){ let deviceList = [
{
deviceName:'数控龙门加工中心',
status:'3',
deviceModel:'NSP42014C',
imgUrl:`${ctx}/common/img/device_01.jpg`
},
{
deviceName:'数控平面钻床1号',
status:'3',
deviceModel:'PMZ2016',
},
{
deviceName:'数控平面钻床2号',
status:'3',
deviceModel:'PMZ2016',
},
{
deviceName:'数控平面钻床3号',
status:'3',
deviceModel:'PMZ2016',
},
{
deviceName:'数控平面钻床4号',
status:'3',
deviceModel:'PMZ2016',
}
]
_this.queryBySbStatusList = []
if(res.extAttr.result.length){
_this.queryBySbStatusList = res.extAttr.result; _this.queryBySbStatusList = res.extAttr.result;
} }
_this.queryBySbStatusList.push({
deviceName:'切割机', let newArr = deviceList.slice(_this.queryBySbStatusList.length,deviceList.length);
status:'3', _this.queryBySbStatusList.push(...newArr)
deviceModel:'MZ-1250', _this.querySbYes();
}) _this.querySbNo();
_this.queryBySbStatusList.push({
deviceName:'焊接机',
status:'3',
deviceModel:'H9830',
})
}, },
onFail: function (err) { onFail: function (err) {
...@@ -336,18 +418,28 @@ ...@@ -336,18 +418,28 @@
{async: false} {async: false}
); );
}, },
onResetData(num = 300,n = 200){
let arr = [];
for (let i = 0; i <7 ; i++) {
let s = Number(num) + Number((Math.random()*n).toFixed(2));
arr.push(s)
}
return arr
},
querySbYes(){ querySbYes(){
console.log('querySbYes')
let _this = this; let _this = this;
var inInfo = new EiInfo(); var inInfo = new EiInfo();
inInfo.set('inqu_status-0-factoryCode',this.factory) inInfo.set('inqu_status-0-factoryCode',this.factory)
inInfo.set('inqu_status-0-date',this.dataPicker) inInfo.set('inqu_status-0-date',this.dataPicker)
IPLAT.EiCommunicator.send('HGSB010', 'querySbYes', inInfo, { IPLAT.EiCommunicator.send('HGSB010', 'querySbYes', inInfo, {
onSuccess: function (res) { onSuccess: function (res) {
_this.querySbYesDate = res.extAttr.date;
if(undefined != res.extAttr.result[0]){ _this.querySbYesList = [];
const dataList = res.extAttr.result;
_this.querySbYesDate = res.extAttr.date;
if(res.extAttr.result.length){
const dataList = res.extAttr.result;
_this.querySbYesList = dataList.map((item, index) => { _this.querySbYesList = dataList.map((item, index) => {
const getChartOptionByIndex = (index) => { const getChartOptionByIndex = (index) => {
return { return {
...@@ -400,7 +492,6 @@ ...@@ -400,7 +492,6 @@
] ]
}; };
}; };
// 返回包含正确 option 属性的对象 // 返回包含正确 option 属性的对象
return { return {
...item, ...item,
...@@ -408,11 +499,78 @@ ...@@ -408,11 +499,78 @@
}; };
}); });
} }
else {
_this.querySbYesList = [] let str = ''
_this.querySbYesDate = [] let dateArr = [];
if(_this.querySbYesDate.length){
str = dayjs().format('YYYY') + _this.querySbYesDate[_this.querySbYesDate.length-1];
dateArr.unshift(_this.querySbYesDate[_this.querySbYesDate.length-1])
for (let i = 0; i < 6; i++){
dateArr.unshift(dayjs(str).subtract(i,'day').format('MMDD'));
}
}else{
for (let i = 0; i < 7; i++){
dateArr.unshift(dayjs(_this.dataPicker).subtract(i,'day').format('MMDD'));
}
}
let list = []
for (let i = 0; i < 5; i++) {
list.push( {
option:{
title: {
left: 'left',
text: '设备作业时长/分钟',
textStyle: {
color: '#ffffff' // 设置标题字体颜色为白色
}
},
xAxis: {
type: 'category',
data: dateArr,
axisLabel: {
textStyle: {
color: '#ffffff' // 设置y轴标签字体颜色为白色
}
}
},
yAxis: {
type: 'value',
axisLabel: {
textStyle: {
color: '#ffffff' // 设置y轴标签字体颜色为白色
}
}
},
grid: {
top: '17%', // 图表距离容器顶部的距离
bottom: '2%', // 图表距离容器底部的距离,为下方的文字留出空间
left: '2%',
right: '2%',
containLabel: true // 确保标签(如坐标轴标签)在网格内
},
series: [
{
data: _this.onResetData(),
type: 'line',
smooth: true,
itemStyle: {
color: '#01b9ff'
},
areaStyle: {
color: '#245085'
},
}
]
}
})
} }
let newArr = list.slice(_this.querySbYesList.length,list.length);
_this.querySbYesList.push(...newArr)
console.log(_this.querySbYesList,999998888)
}, },
onFail: function (err) { onFail: function (err) {
...@@ -422,16 +580,17 @@ ...@@ -422,16 +580,17 @@
); );
}, },
querySbNo(){ querySbNo(){
console.log('querySbNo')
let _this = this; let _this = this;
var inInfo = new EiInfo(); var inInfo = new EiInfo();
inInfo.set('inqu_status-0-factoryCode',this.factory) inInfo.set('inqu_status-0-factoryCode',this.factory)
inInfo.set('inqu_status-0-date',this.dataPicker) inInfo.set('inqu_status-0-date',this.dataPicker)
IPLAT.EiCommunicator.send('HGSB010', 'querySbNo', inInfo, { IPLAT.EiCommunicator.send('HGSB010', 'querySbNo', inInfo, {
onSuccess: function (res) { onSuccess: function (res) {
_this.querySbNODate = res.extAttr.date;
if(undefined != res.extAttr.result[0]){ _this.querySbNoList = [];
if(res.extAttr.result.length ){
const dataList = res.extAttr.result; const dataList = res.extAttr.result;
_this.querySbNODate = res.extAttr.date;
_this.querySbNoList = dataList.map((item, index) => { _this.querySbNoList = dataList.map((item, index) => {
const getChartOptionByIndex = (index) => { const getChartOptionByIndex = (index) => {
return { return {
...@@ -491,122 +650,88 @@ ...@@ -491,122 +650,88 @@
option: getChartOptionByIndex(index) // 现在这里是一个对象,而不是字符串 option: getChartOptionByIndex(index) // 现在这里是一个对象,而不是字符串
}; };
}); });
}else{
_this.querySbNoList = []
_this.querySbNODate = []
} }
},
onFail: function (err) {
} let str = ''
}, let dateArr = [];
{async: false} if( _this.querySbNODate.length){
); str = dayjs().format('YYYY') + _this.querySbNODate[ _this.querySbNODate.length-1];
}, dateArr.unshift( _this.querySbNODate[ _this.querySbNODate.length-1])
for (let i = 0; i < 6; i++){
dateArr.unshift(dayjs(str).subtract(i,'day').format('MMDD'));
}
}else{
for (let i = 0; i < 7; i++){
console.log(dayjs(_this.dataPicker).subtract(i,'day').format('MMDD'),"2sdadasdas")
dateArr.unshift(dayjs(_this.dataPicker).subtract(i,'day').format('MMDD'));
}
}
let list = []
for (let i = 0; i < 5; i++) {
list.push( {
option: {
title: {
left: 'left',
text: '设备故障时长/分钟',
textStyle: {
color: '#ffffff' // 设置标题字体颜色为白色
}
},
xAxis: {
type: 'category',
data: dateArr,
axisLabel: {
textStyle: {
color: '#ffffff' // 设置y轴标签字体颜色为白色
}
}
},
yAxis: {
type: 'value',
axisLabel: {
textStyle: {
color: '#ffffff' // 设置y轴标签字体颜色为白色
}
}
setOption(){ },
this.lineOption1 = { grid: {
title: { top: '15%', // 图表距离容器顶部的距离
left: 'left', bottom: '2%', // 图表距离容器底部的距离,为下方的文字留出空间
text: '设备作业时长/分钟', left: '2%',
textStyle: { right: '2%',
color: '#ffffff' // 设置标题字体颜色为白色 containLabel: true // 确保标签(如坐标轴标签)在网格内
} },
}, series: [
xAxis: { {
type: 'category', data: _this.onResetData(0,100),
data: this.querySbYesDate, type: 'line',
axisLabel: { smooth: true,
textStyle: { itemStyle: {
color: '#ffffff' // 设置y轴标签字体颜色为白色 color: '#01b9ff'
} },
} areaStyle: {
}, color: '#245085'
yAxis: { },
type: 'value', }
axisLabel: {
textStyle: {
color: '#ffffff' // 设置y轴标签字体颜色为白色
}
}
}, ]
grid: { }
top: '17%', // 图表距离容器顶部的距离 })
bottom: '2%', // 图表距离容器底部的距离,为下方的文字留出空间 }
left: '2%',
right: '2%',
containLabel: true // 确保标签(如坐标轴标签)在网格内
},
series: [
{
data: [350, 240, 460, 245, 467, 234, 562],
type: 'line',
smooth: true,
itemStyle: {
color: '#01b9ff'
},
areaStyle: {
color: '#245085'
},
}
] let newArr = list.slice(_this.querySbNoList.length,list.length);
_this.querySbNoList.push(...newArr)
console.log(_this.querySbNoList,77776666)
} },
}, onFail: function (err) {
setOption2(){
this.lineOption2 ={
title: {
left: 'left',
text: '设备故障时长/分钟',
textStyle: {
color: '#ffffff' // 设置标题字体颜色为白色
}
},
xAxis: {
type: 'category',
data: this.querySbYesDate,
axisLabel: {
textStyle: {
color: '#ffffff' // 设置y轴标签字体颜色为白色
}
}
},
yAxis: {
type: 'value',
axisLabel: {
textStyle: {
color: '#ffffff' // 设置y轴标签字体颜色为白色
}
}
},
grid: {
top: '17%', // 图表距离容器顶部的距离
bottom: '2%', // 图表距离容器底部的距离,为下方的文字留出空间
left: '2%',
right: '2%',
containLabel: true // 确保标签(如坐标轴标签)在网格内
},
series: [
{
data: [30, 45, 50, 23, 24, 18, 80],
type: 'line',
smooth: true,
itemStyle: {
color: '#01b9ff'
},
areaStyle: {
color: '#245085'
},
} }
},
] {async: false}
);
} }
},
} }
}) })
</script> </script>
...@@ -728,15 +853,18 @@ ...@@ -728,15 +853,18 @@
} }
.home-page-main{ .home-page-main{
display: flex;
flex-direction: row;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex;
} }
.device{ .device{
display: flex;
flex: 1;
flex-direction: column;
height: 100%; height: 100%;
} margin: 0 1%;
.left-device{
width: 30%;
} }
.right-device{ .right-device{
width: 68%; width: 68%;
......
$(function () {
IPLATUI.EFGrid = {
"result": {
pageable: {
pageSize: 20,
pageSizes: [20, 50, 100, 200],
},
columns: [{
field: "supName",
template: function (item) {
let supName = item["supName"];
if (CommonUtils.isBlank(supName)) {
return item["supCode"];
}
return supName;
}
}]
}
}
// 查询
$("#QUERY").on("click", query);
// 键盘按键
downKeyUp();
});
/**
* 页面加载完成
*/
$(window).load(function () {
// 查询
query();
});
/**
* 查询
*/
let query = function () {
resultGrid.dataSource.page(1);
}
\ No newline at end of file
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ 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:EFDatePicker ename="receiptDate" cname="日期" blockId="inqu_status" row="0" colWidth="3"
format="yyyy-MM-dd" readonly="true"/>
<EF:EFSelect ename="companyCode" cname="公司名称" blockId="inqu_status" row="0" colWidth="3"
optionLabel="全部" filter="contains">
<EF:EFOptions blockId="company_code_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
<EF:EFSelect ename="projCode" cname="项目名称" blockId="inqu_status" row="0" colWidth="3"
optionLabel="全部" filter="contains">
<EF:EFOptions blockId="proj_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
<EF:EFInput ename="supName" cname="供应商名称" blockId="inqu_status" row="0" colWidth="3"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息" fitHeight="true">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row">
<EF:EFColumn ename="receiptDate" cname="日期" enable="false" width="100" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']"/>
<EF:EFColumn ename="companyCode" cname="公司编码" enable="false" width="200" align="center" hidden="true"/>
<EF:EFColumn ename="companyName" cname="公司名称" enable="false" width="200" align="left"/>
<EF:EFColumn ename="supCode" cname="供应商编码" enable="false" width="160" align="center" hidden="true"/>
<EF:EFColumn ename="supName" cname="供应商名称" enable="false" width="160" align="left"/>
<EF:EFColumn ename="projCode" cname="项目编码" enable="false" width="120" align="center" hidden="true"/>
<EF:EFColumn ename="projName" cname="项目名称" enable="false" width="120" align="left"/>
<EF:EFColumn ename="contractAmount" cname="采购合同金额" enable="false" width="120" align="right"/>
<EF:EFColumn ename="deliveryAmount" cname="采购收货金额" enable="false" width="120" align="right"/>
<EF:EFColumn ename="receiptAmount" cname="采购收票金额" enable="false" width="120" align="right"/>
<EF:EFColumn ename="payAmount" cname="付款金额" enable="false" width="120" align="right"/>
<EF:EFColumn ename="nonPayAmount" cname="未付款金额" enable="false" width="120" align="right"/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
\ No newline at end of file
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<img :src="`${ctx}/common/img/device-img4-content.png`" class="device-img1-content img" style="margin: 0;" alt/> <img :src="`${ctx}/common/img/device-img4-content.png`" class="device-img1-content img" style="margin: 0;" alt/>
</div> </div>
<div style="width: 100%;height: 30%;display: flex;margin-top: 2vh;"> <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/> <img :src="`${ctx}/common/img/device-img5-content.png`" class="device-img1-content img" style="margin: 0;" alt/>
</div> </div>
</div> </div>
......
...@@ -23,15 +23,15 @@ ...@@ -23,15 +23,15 @@
</div> </div>
</div> </div>
<div class="page-content-main" style="flex-wrap: wrap"> <div class="page-content-main" style="flex-wrap: wrap">
<div style="width: 45%;height: 30%;display: flex;flex-wrap: wrap;justify-content: space-between;" v-for="(item,index) in queryBySunWtDate" <div style="width: 45%;height: 30%;display: flex;flex-wrap: wrap;justify-content: space-between;" v-for="(item,index) in queryBySunWtList"
:key="index" :key="index"
> >
<div class="page-content-left" style="position: relative"> <div class="page-content-left" style="position: relative">
<div class="data-title-span temp"> {{ queryBySunWtList[index] || 0 }}</div> <div class="data-title-span temp"> {{ item.totalWeight || 0 }}</div>
<div style="width: 100%;display: flex;" class="temp"> <div style="width: 100%;display: flex;" class="temp">
<img :src="`${ctx}/common/img/produce-img.png`" class="produce-img " alt/> <img :src="`${ctx}/common/img/produce-img.png`" class="produce-img " alt/>
</div> </div>
<div class="content-main-footer temp" data-process="组立">{{ queryBySunWtDate[index] }}/ 吨</div> <div class="content-main-footer temp" data-process="组立">{{ item.processName }}/ 吨</div>
<div style="width: 100%;display: flex;" class="temp"> <div style="width: 100%;display: flex;" class="temp">
<img :src="`${ctx}/common/img/produce-put.png`" v-if="index < 4" alt/> <img :src="`${ctx}/common/img/produce-put.png`" v-if="index < 4" alt/>
</div> </div>
...@@ -146,20 +146,18 @@ module.exports = { ...@@ -146,20 +146,18 @@ module.exports = {
inInfo.set('inqu_status-0-depositDate',this.datapicker) inInfo.set('inqu_status-0-depositDate',this.datapicker)
IPLAT.EiCommunicator.send('HGSC007', 'getByProcessSumWt', inInfo, { IPLAT.EiCommunicator.send('HGSC007', 'getByProcessSumWt', inInfo, {
onSuccess: function (res) { onSuccess: function (res) {
if(undefined != res.extAttr.result[0]){ _this.getByProcessSumWtList = [];
if(res.extAttr.result.length){
_this.getByProcessSumWtList = res.extAttr.result[0] _this.getByProcessSumWtList = res.extAttr.result[0]
}else { }else{
_this.getByProcessSumWtList.push({ _this.getByProcessSumWtList.push({
dayWeight:0, dayWeight:0,
monthWeight:0, monthWeight:0,
yearWeight:0, yearWeight:0,
}) })
} }
}, },
onFail: function (err) { onFail: function (err) {}
}
}, },
{async: false} {async: false}
); );
...@@ -172,7 +170,14 @@ module.exports = { ...@@ -172,7 +170,14 @@ module.exports = {
inInfo.set('inqu_status-0-depositDate',this.dataPicker) inInfo.set('inqu_status-0-depositDate',this.dataPicker)
IPLAT.EiCommunicator.send('HGSC007', 'queryBySunWt', inInfo, { IPLAT.EiCommunicator.send('HGSC007', 'queryBySunWt', inInfo, {
onSuccess: function (res) { onSuccess: function (res) {
_this.queryBySunWtList = res.blocks.result.extAttr.processNameList console.log(res,'显示的数据')
if(res.extAttr.result.length){
_this.queryBySunWtList = res.extAttr.result
}else{
_this.queryBySunWtList =[]
}
_this.$forceUpdate();
}, },
onFail: function (err) { onFail: function (err) {
} }
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
v-for="(colVal,i) in columns" v-for="(colVal,i) in columns"
:key="i"
:prop="colVal.value" :prop="colVal.value"
:align="colVal.align" :align="colVal.align"
:label="colVal.label" :label="colVal.label"
...@@ -95,7 +96,7 @@ module.exports = { ...@@ -95,7 +96,7 @@ module.exports = {
label: '进度(%)', label: '进度(%)',
align: 'center', align: 'center',
value: 'schedule', value: 'schedule',
width:'40' width:'80'
} }
] ]
}; };
......
...@@ -94,8 +94,8 @@ let checkParam = function () { ...@@ -94,8 +94,8 @@ let checkParam = function () {
if (isBlank(supCode)) { if (isBlank(supCode)) {
return "供应商不能为空"; return "供应商不能为空";
} }
let purUserId = $("#inqu_status-0-purUserId").val(); let purUserName = $("#inqu_status-0-purUserName").val();
if (isBlank(purUserId)) { if (isBlank(purUserName)) {
return "采购员不能为空"; return "采购员不能为空";
} }
return ""; return "";
......
...@@ -45,13 +45,12 @@ ...@@ -45,13 +45,12 @@
type="hidden"/> type="hidden"/>
</div> </div>
<div class="row"> <div class="row">
<EF:EFSelect ename="purUserId" cname="采购员" blockId="inqu_status" row="0" colWidth="6" ratio="2:10" <%-- <EF:EFSelect ename="purUserId" cname="采购员" blockId="inqu_status" row="0" colWidth="6" ratio="2:10"--%>
filter="contains" required="true"> <%-- filter="contains" required="true">--%>
<EF:EFOption label="请选择" value=""/> <%-- <EF:EFOption label="请选择" value=""/>--%>
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/> <%-- <EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>--%>
</EF:EFSelect> <%-- </EF:EFSelect>--%>
<EF:EFInput ename="purUserName" cname="采购员姓名" blockId="inqu_status" row="0" colWidth="6" ratio="2:10" <EF:EFInput ename="purUserName" cname="采购员姓名" blockId="inqu_status" row="0" colWidth="6" ratio="2:10"/>
type="hidden"/>
</div> </div>
<br/> <br/>
<span style="color: red; ">说明:合同号由系统自动生成</span><br> <span style="color: red; ">说明:合同号由系统自动生成</span><br>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<EF:EFColumn ename="contractContent" cname="签证事由及内容" width="120" enable="true" align="center" required="true"/> <EF:EFColumn ename="contractContent" cname="签证事由及内容" width="120" enable="true" align="center" required="true"/>
<EF:EFColumn ename="totalContractPriceIncluding" cname="含税金额" width="120" enable="true" format="{0:N2}" align="right" required="true"/> <EF:EFColumn ename="totalContractPriceIncluding" cname="含税金额" width="120" enable="true" format="{0:N2}" align="right" required="true"/>
<EF:EFColumn ename="signingDate" cname="签订日期" width="120" enable="true" align="center" editType="date" <EF:EFColumn ename="signingDate" cname="签订日期" width="120" enable="true" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyy-MM-dd']" required="true"/> dateFormat="yyyy-MM-dd" parseFormats="['yyyy-MM-dd', 'yyyyMMdd']" required="true"/>
<EF:EFComboColumn ename="reviewStatus" cname="审批状态" width="100" align="center" required="true" <EF:EFComboColumn ename="reviewStatus" cname="审批状态" width="100" align="center" required="true"
columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" > columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" >
<EF:EFCodeOption codeName="hggp.cw.reviewStatus"/> <EF:EFCodeOption codeName="hggp.cw.reviewStatus"/>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<EF:EFColumn ename="contractContent" cname="扣款事由" width="120" enable="true" align="center" required="true"/> <EF:EFColumn ename="contractContent" cname="扣款事由" width="120" enable="true" align="center" required="true"/>
<EF:EFColumn ename="totalContractPriceIncluding" cname="扣款金额" width="120" enable="true" format="{0:N2}" align="right" required="true"/> <EF:EFColumn ename="totalContractPriceIncluding" cname="扣款金额" width="120" enable="true" format="{0:N2}" align="right" required="true"/>
<EF:EFColumn ename="signingDate" cname="扣款日期" width="120" enable="true" align="center" editType="date" <EF:EFColumn ename="signingDate" cname="扣款日期" width="120" enable="true" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyy-MM-dd']" required="true"/> dateFormat="yyyy-MM-dd" parseFormats="['yyyy-MM-dd', 'yyyyMMdd']" required="true"/>
<EF:EFColumn ename="deliveryCode" cname="发货单号" enable="false" width="130" align="center"/> <EF:EFColumn ename="deliveryCode" cname="发货单号" enable="false" width="130" align="center"/>
<EF:EFComboColumn ename="reviewStatus" cname="审批状态" width="100" align="center" <EF:EFComboColumn ename="reviewStatus" cname="审批状态" width="100" align="center"
columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" > columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" >
......
$(function() {
// 查询
$("#QUERY").on("click", function () {
query();
});
IPLATUI.EFGrid.result = {
pageable: {
pageSize: 20,
pageSizes: [10,20,30,50,100,200],
},
exportGrid:false,
columns: [],
onSuccess: function (e) {
if (e.eiInfo.extAttr.methodName == 'save' || e.eiInfo.extAttr.methodName == 'delete') {
query();
}
},
}
window.document.addEventListener("keyup",function (event) {
if(event.keyCode === 13){
var grid = $("#ef_grid_result").data("kendoGrid");
// 回填
//grid.addRows(returnRows);
grid.closeCell();
}
})
});
$(window).load(function () {
// 查
query();
});
/**
* 查询
*/
let query = function () {
resultGrid.dataSource.page(1);
}
<%--
Created by IntelliJ IDEA.
User: 1
Date: 2024/11/17
Time: 13:21
To change this template use File | Settings | File Templates.
--%>
<!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}"/>
<head>
</head>
<EF:EFPage title="销售执行情况">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<EF:EFDatePicker blockId="inqu_status" row="0" ename="date" cname="日期" role="date"
format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="companyCode" cname="公司名称" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
</EF:EFSelect>
<EF:EFInput cname="项目名称" blockId="inqu_status" ename="projName" row="0" colWidth="3" placeholder="模糊查询项目名称"/>
<EF:EFInput cname="客户名称" ename="partyA" blockId="inqu_status" row="0" colWidth="3" placeholder="模糊查询客户名称"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" autoBind="false" sort="all">
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<%--<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="210" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
</EF:EFComboColumn>--%>
<EF:EFColumn ename="date" cname="日期" width="120" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="companyName" cname="公司名称" width="200" align="center"/>
<EF:EFColumn ename="clientName" cname="客户名称" width="200" align="center"/>
<%--<EF:EFComboColumn ename="projCode" cname="项目名称" blockName="proj_record_block_id"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="210" required="true"
align="center" filter="contains" sort="true">
</EF:EFComboColumn>--%>
<EF:EFColumn ename="projName" cname="项目名称" width="200" align="center"/>
<EF:EFColumn ename="contractAcount" cname="销售合同金额" width="120" enable="true" readonly="true" format="{0:C2}" editType="number"
displayType="0.00" sort="true" align="right" maxLength="15" required="true" defaultValue="0"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="sellAcount" cname="销售开票金额" width="120" enable="false" readonly="true" format="{0:C2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="false"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="notSellAcount" cname="未开票金额" width="120" enable="false" readonly="true" format="{0:C2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="false"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="collecAcount" cname="收款金额" width="120" enable="false" readonly="true" format="{0:C2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="false"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="notCollecAcount" cname="未收款金额" width="120" enable="false" readonly="true" format="{0:C2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="false"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
<script>
var ctx = "${ctx}";
</script>
...@@ -59,10 +59,10 @@ ...@@ -59,10 +59,10 @@
<EF:EFColumn ename="otherEnterNo" cname="其他入库单号" enable="false" width="140" align="center"/> <EF:EFColumn ename="otherEnterNo" cname="其他入库单号" enable="false" width="140" align="center"/>
<EF:EFColumn ename="whCode" cname="仓库名称" width="120" align="center" required="true"/> <EF:EFColumn ename="whCode" cname="仓库名称" width="120" align="center" required="true"/>
<EF:EFColumn ename="whName" cname="仓库名称" hidden="true"/> <EF:EFColumn ename="whName" cname="仓库名称" hidden="true"/>
<EF:EFComboColumn cname="状态" ename="submitStatus" width="90" align="center" enable="false"> <EF:EFComboColumn cname="状态" ename="submitStatus" width="90" align="center" enable="false" defaultValue="0">
<EF:EFCodeOption codeName="hggp.hpkc.submitStatus"/> <EF:EFCodeOption codeName="hggp.hpkc.submitStatus"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFComboColumn cname="数据来源" ename="source" width="90" align="center" enable="false"> <EF:EFComboColumn cname="数据来源" ename="source" width="90" align="center" enable="false" defaultValue="1">
<EF:EFCodeOption codeName="hggp.hpkc.source"/> <EF:EFCodeOption codeName="hggp.hpkc.source"/>
</EF:EFComboColumn> </EF:EFComboColumn>
</EF:EFGrid> </EF:EFGrid>
......
$(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: "HGPZ022A?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", "HGPZ022", "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", "HGPZ022", "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>
...@@ -76,6 +76,11 @@ ...@@ -76,6 +76,11 @@
required="true" defaultValue="1"> required="true" defaultValue="1">
<EF:EFCodeOption codeName="hpjx.hpjx.status"/> <EF:EFCodeOption codeName="hpjx.hpjx.status"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFComboColumn ename="reveal" cname="驾驶舱显示" width="100" enable="true" readonly="false" align="center"
required="false" defaultValue="0">
<EF:EFCodeOption codeName="hggp.common.yesNo"/>
</EF:EFComboColumn>
<EF:EFColumn ename="sort" cname="排序" width="80" enable="true" readonly="false" align="center"/>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false" <EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false"
enable="false"/> enable="false"/>
<EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime" <EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
......
...@@ -94,8 +94,9 @@ $(function () { ...@@ -94,8 +94,9 @@ $(function () {
IPLATUI.EFTree = { IPLATUI.EFTree = {
"categoryTree": { "categoryTree": {
ROOT: {label: 'root', text: '目录结构'},
query: function (inInfo, model) { query: function (inInfo, model) {
if (model == null) { if (model == null || model.id === "root") {
return inInfo; return inInfo;
} }
let label = model.label; let label = model.label;
...@@ -324,11 +325,12 @@ $(function () { ...@@ -324,11 +325,12 @@ $(function () {
}) })
$("#categoryTree").mousedown(function (e) { $("#categoryTree").mousedown(function (e) {
if (e.button !== 2) { let title = e.target.title;
if (e.button !== 2 || CommonUtils.isBlank(title)) {
return return
} }
if ("engineering" === e.target.title || "foreign" === e.target.title if ("root" === title || "engineering" === title || "foreign" === title
|| "spare" === e.target.title || "other" === e.target.title) { || "spare" === title || "other" === title) {
$("#isAdd").css('display', 'none'); $("#isAdd").css('display', 'none');
$("#isDel").css('display', 'none'); $("#isDel").css('display', 'none');
$("#isEdit").css('display', 'none'); $("#isEdit").css('display', 'none');
......
...@@ -86,15 +86,50 @@ $(function () { ...@@ -86,15 +86,50 @@ $(function () {
} }
init(); init();
IPLATUI.EFGrid = {
"result": {
exportGrid: false, // 隐藏右侧自定义导出按钮
pageable: {
pageSize: 500,
pageSizes: [20, 50, 100, 200, 500],
},
columns: [{
field: "operator",
title: "操作",
template: function (model) {
let template = '';
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showPreview(\'' + model.docId + '\')" >预览</a>';
return template;
}
}, {
field: "docVersion",
template: function (model) {
return "v" + model.docVersion;
}
}, {
field: "docType",
template: function (row) {
if (!isBlank(row.docType) && row.docType.startsWith(".")) {
return row.docType.substring(1);
}
return row.docType == null ? "" : row.docType;
}
}],
loadComplete: function (grid) {
}
}
}
IPLATUI.EFTree = { IPLATUI.EFTree = {
"docTree": { "docTree": {
ROOT: {label: 'root', text: '目录结构'},
query: function (inInfo, model) { query: function (inInfo, model) {
if (model == null) { if (model == null || model.id === "root") {
return inInfo; return inInfo;
} }
let label = model.label;
// 选中树节点 // 选中树节点
selectTreeId(label); selectTreeId(model.id);
// 设置选中节点 // 设置选中节点
treeSelectClick(model); treeSelectClick(model);
inInfo.set("inqu_status-0-projCode", $("#inqu_status-0-projCode").val()); inInfo.set("inqu_status-0-projCode", $("#inqu_status-0-projCode").val());
...@@ -106,10 +141,8 @@ $(function () { ...@@ -106,10 +141,8 @@ $(function () {
// 设置选中节点 // 设置选中节点
treeSelectClick(nodeData); treeSelectClick(nodeData);
}, },
/*ROOT:{label: 'root',text: '组织机构'},*/
template: function (node) { template: function (node) {
let item = node.item; let item = node.item;
let title = item.text;
let icon = 'fa fa-globe' let icon = 'fa fa-globe'
if (item.label !== 'root') { if (item.label !== 'root') {
switch (item.leafType) { switch (item.leafType) {
...@@ -121,14 +154,15 @@ $(function () { ...@@ -121,14 +154,15 @@ $(function () {
break; break;
} }
} }
return ' <span class="' + icon + '" style="padding-right: 8px"> </span> <span class="titleClass" title="' + item.label + '">' + title + '</span>' return ' <span class="' + icon + '" style="padding-right: 8px"> </span> '
+ '<span class="titleClass" title="' + item.label + '">' + item.text + '</span>'
}, },
loadComplete: function (options) { loadComplete: function (options) {
// 树节点查询 // 树节点查询
$("#search").on("click", treeSearch); $("#search").on("click", treeSearch);
}, },
selectTreeNode: { selectTreeNode: {
fileId: '', treeId: '',
projCode: '', projCode: '',
leafType: '', leafType: '',
downloadFlag: '0' downloadFlag: '0'
...@@ -138,45 +172,10 @@ $(function () { ...@@ -138,45 +172,10 @@ $(function () {
* 开启结点拖拽功能,默认dragAndDrop = false不开启, * 开启结点拖拽功能,默认dragAndDrop = false不开启,
* 若未开启拖拽,不会触发dragstart和dragend事件 * 若未开启拖拽,不会触发dragstart和dragend事件
*/ */
dragAndDrop: false, dragAndDrop: false
} }
}; };
IPLATUI.EFGrid = {
"result": {
exportGrid: false, // 隐藏右侧自定义导出按钮
pageable: {
pageSize: 500,
pageSizes: [20, 50, 100, 200, 500],
},
columns: [{
field: "operator",
title: "操作",
template: function (model) {
let template = '';
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showPreview(\'' + model.docId + '\')" >预览</a>';
return template;
}
}, {
field: "docVersion",
template: function (model) {
return "v" + model.docVersion;
}
}, {
field: "docType",
template: function (row) {
if (!isBlank(row.docType) && row.docType.startsWith(".")) {
return row.docType.substring(1);
}
return row.docType == null ? "" : row.docType;
}
}],
loadComplete: function (grid) {
}
}
}
// 查询 // 查询
$("#QUERY").on("click", query); $("#QUERY").on("click", query);
...@@ -294,12 +293,11 @@ let treeSelectClick = function (nodeData) { ...@@ -294,12 +293,11 @@ let treeSelectClick = function (nodeData) {
* @param nodeData * @param nodeData
*/ */
let setTreeNodeValue = function (nodeData) { let setTreeNodeValue = function (nodeData) {
IPLATUI.EFTree.docTree.selectTreeNode.fileId = nodeData.id; IPLATUI.EFTree.docTree.selectTreeNode.treeId = nodeData.id;
IPLATUI.EFTree.docTree.selectTreeNode.projCode = nodeData.projCode; IPLATUI.EFTree.docTree.selectTreeNode.projCode = nodeData.projCode;
IPLATUI.EFTree.docTree.selectTreeNode.leafType = nodeData.leafType; IPLATUI.EFTree.docTree.selectTreeNode.leafType = nodeData.leafType;
IPLATUI.EFTree.docTree.selectTreeNode.downloadFlag = nodeData.downloadFlag == null ? 0 IPLATUI.EFTree.docTree.selectTreeNode.downloadFlag = nodeData.downloadFlag == null ? 0
: nodeData.downloadFlag; : nodeData.downloadFlag;
$("[name = 'inqu_status-0-parentId']").val(nodeData.id);
$("[name = 'inqu_status-0-fileId']").val(nodeData.id); $("[name = 'inqu_status-0-fileId']").val(nodeData.id);
$("[name = 'inqu_status-0-projCode']").val(nodeData.projCode); $("[name = 'inqu_status-0-projCode']").val(nodeData.projCode);
} }
...@@ -338,19 +336,20 @@ let preview = function () { ...@@ -338,19 +336,20 @@ let preview = function () {
* @param docId * @param docId
*/ */
let showPreview = function (docId) { let showPreview = function (docId) {
let fileId = IPLATUI.EFTree.docTree.selectTreeNode.fileId; let treeId = IPLATUI.EFTree.docTree.selectTreeNode.treeId;
addRecordWindow(fileId, docId); addRecordWindow(treeId, docId);
} }
/** /**
* 树节点查询 * 树节点查询
*/ */
let treeSearch = function (){ let treeSearch = function (){
let treeId = IPLATUI.EFTree.docTree.selectTreeNode.treeId;
let tree = $("#docTree").data("kendoTreeView"); let tree = $("#docTree").data("kendoTreeView");
let leafName = $("#searchText").val(); let leafName = $("#searchText").val();
if (leafName == null || leafName.trim() === '') { if (CommonUtils.isBlank(leafName)) {
tree.reload("root"); tree.reload("root");
return return;
} }
let inInfo = new EiInfo(); let inInfo = new EiInfo();
inInfo.set("inqu_status-0-fileName", leafName); inInfo.set("inqu_status-0-fileName", leafName);
...@@ -362,7 +361,7 @@ let treeSearch = function (){ ...@@ -362,7 +361,7 @@ let treeSearch = function (){
} }
// 获取所有满足条件的子节点路径 // 获取所有满足条件的子节点路径
const allPath = res.get("allPath") const allPath = res.get("allPath")
if (allPath.length <= 0) { if (CommonUtils.isBlank(allPath) || allPath.length <= 0) {
return; return;
} }
tree.reload("root"); tree.reload("root");
......
...@@ -17,30 +17,29 @@ ...@@ -17,30 +17,29 @@
<%-- </div>--%> <%-- </div>--%>
<div id="menu" style="margin-top: 12px; margin-bottom: 8px"> <div id="menu" style="margin-top: 12px; margin-bottom: 8px">
<EF:EFTree bindId="docTree" ename="tree_name" textField="text" valueField="label" <EF:EFTree bindId="docTree" ename="tree_name" textField="text" valueField="label"
hasChildren="leaf" pid="parentId" serviceName="HGWD001D" methodName="queryTree" hasChildren="leaf" pid="parentId" serviceName="HGWD001D" methodName="queryTree">
expandLevel="1">
</EF:EFTree> </EF:EFTree>
</div> </div>
</EF:EFRegion> </EF:EFRegion>
</div> </div>
<div id="right-pane" class="i-fit-height"> <div id="right-pane" class="i-fit-height">
<EF:EFRegion id="inqu" title="查询条件"> <EF:EFRegion id="inqu" title="查询条件">
<EF:EFInput cname="项目代码" ename="projCode" blockId="inqu_status" row="0" type="hidden"/> <EF:EFInput ename="projCode" cname="项目代码" blockId="inqu_status" row="0" type="hidden"/>
<EF:EFInput cname="文档库id" ename="fileId" blockId="inqu_status" row="0" type="hidden"/> <EF:EFInput ename="fileId" cname="文档库id" blockId="inqu_status" row="0" type="hidden"/>
<div class="row"> <div class="row">
<EF:EFSelect blockId="inqu_status" row="0" ename="fileType" cname="附件分类" colWidth="3" <EF:EFSelect ename="fileType" cname="附件分类" blockId="inqu_status" row="0" colWidth="3"
filter="contains"> filter="contains">
<EF:EFOption label="全部" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.hgwd.fileType"/> <EF:EFCodeOption codeName="hggp.hgwd.fileType"/>
</EF:EFSelect> </EF:EFSelect>
<EF:EFInput cname="附件名称" ename="docName" blockId="inqu_status" row="0" colWidth="3"/> <EF:EFInput ename="docName" cname="附件名称" blockId="inqu_status" row="0" colWidth="3"/>
<EF:EFDateSpan startCname="上传时间" endCname="至" blockId="inqu_status" row="0" <EF:EFDateSpan startCname="上传时间" endCname="至" blockId="inqu_status" row="0"
startName="createdDateFrom" endName="createdDateTo" role="date" startName="createdDateFrom" endName="createdDateTo" role="date"
format="yyyy-MM-dd" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="false"> format="yyyy-MM-dd" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="false">
</EF:EFDateSpan> </EF:EFDateSpan>
</div> </div>
<div class="row"> <div class="row">
<EF:EFInput cname="文件路径" ename="filePath" blockId="inqu_status" row="0" colWidth="3"/> <EF:EFInput ename="filePath" cname="文件路径" blockId="inqu_status" row="0" colWidth="3"/>
</div> </div>
</EF:EFRegion> </EF:EFRegion>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<EF:EFColumn ename="taskCode" cname="生产任务单号" width="130" enable="false" readonly="true" align="center"/> <EF:EFColumn ename="taskCode" cname="生产任务单号" width="130" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="checkCode" cname="质检单号" width="130" enable="false" readonly="true" align="center"/> <EF:EFColumn ename="checkCode" cname="质检单号" width="130" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="checkDate" cname="质检日期" width="120" align="center" editType="date" <EF:EFColumn ename="checkDate" cname="质检日期" width="120" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/> dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd', 'yyyy-MM-dd']" required="true"/>
<EF:EFColumn ename="processName" cname="工序" width="100" enable="false" readonly="true" align="center"/> <EF:EFColumn ename="processName" cname="工序" width="100" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="productCode" cname="存货编码" width="90" enable="false" readonly="true" align="center"/> <EF:EFColumn ename="productCode" cname="存货编码" width="90" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="productName" cname="存货名称" width="90" enable="false" readonly="true" align="center"/> <EF:EFColumn ename="productName" cname="存货名称" width="90" enable="false" readonly="true" align="center"/>
......
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