提交人:陈绍鑫

日期:2025/9/25 17:00
内容:报表优化
This commit is contained in:
陈绍鑫 2025-09-25 17:10:00 +08:00
parent 852b1e8f81
commit 0185778b1b
2 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,7 @@ public class AccountbankSaveOPPlugin extends AbstractOperationServicePlugIn {
@Override
public void beforeExecuteOperationTransaction(BeforeOperationArgs e) {
super.beforeExecuteOperationTransaction(e);
logger.info("进入方法");
DynamicObject[] dataEntities = e.getDataEntities();
for (DynamicObject dataEntity : dataEntities) {
try {
@ -100,6 +101,7 @@ public class AccountbankSaveOPPlugin extends AbstractOperationServicePlugIn {
if (issetbankinterface&&shkd_direct_time1==null){
dataEntity.set("shkd_direct_time1",dataEntity.getDate("opendate"));//
}
logger.info(dataEntity.getString("number")+"保存成功");
} catch (Exception ex) {
logger.info(dataEntity.getString("number")+"保存报错原因:"+ex.getMessage());
continue;

View File

@ -37,13 +37,16 @@ public class AccountbankReportPlugin extends AbstractReportListDataPlugin {
dateList.add(sdf.format(filter.getValue()));
}
}
String selectFields="id,openorg.shkd_comcode as shkd_ssjtbm,openorg.shkd_comname as shkd_ssjtmc," +
"openorg.uniformsocialcreditcode as shkd_khdwbm,openorg.name as shkd_khdwmc," +
"openorg.shkd_comlevel as shkd_khdwqyjc,acctname as shkd_zhmc,bankaccountnumber as shkd_yhzh," +
"shkd_subcompany as shkd_sfwnbdwzh,bank.name as shkd_khhmc,bank.number as shkd_khhbm," +
"bank.country.name as shkd_khhszgj,shkd_bank_head_office as shkd_khhzh,currency," +
"shkd_accounttype as shkd_zhytbm,case when issetbankinterface=1 then '是' else '否' end as shkd_ktyqjk,shkd_direct_time1 as shkd_ktyqsj," +
"shkd_accounttype as shkd_zhytmc,fundaccflag as shkd_jzjzzhbs,case when closedate IS NULL then acctstatus else (case when closedate>'"+dateList.get(0)+"' then 'normal' else 'closed' end) end as shkd_zhzt,closedate as shkd_xhrq," +
"shkd_accounttype as shkd_zhytmc,fundaccflag as shkd_jzjzzhbs,case when closedate IS NULL then acctstatus else (case when closedate>'"+dateList.get(0)+"' then 'normal' else 'closed' end) end as shkd_zhzt," +
"case when closedate IS NULL then '9999-12-31' else to_char(closedate,'YYYY-MM-DD') end as shkd_xhrq," +
// "closedate as shkd_xhrq," +
"opendate as shkd_khrq,'"+dateList.get(0)+"' as shkd_sjrq,case when ismoneypool=1 then '是' else '否' end as shkd_sfzjczh";
//银行账户数据集
DataSet accountbankDataSet = QueryServiceHelper.queryDataSet(this.getClass().getSimpleName(),"am_accountbank",