提交人:陈绍鑫

日期:2025/10/21 12:00
内容:国资委报表插件
This commit is contained in:
陈绍鑫 2025-10-21 11:20:35 +08:00
parent 20ab7e37cb
commit fe5a275c1c
2 changed files with 3 additions and 2 deletions

View File

@ -112,7 +112,7 @@ public class AccountbankReportFormPlugin extends AbstractReportFormPlugin {
try {
Path tempDir = Files.createTempDirectory("csv_export");
Path tempFile = tempDir.resolve("四川能源发展集团有限责任公司_银行账户_01_" + reportNameExt);
Path tempFile = tempDir.resolve("四川能源发展集团有限责任公司_银行账户_01_" + reportNameExt+".csv");
// Path tempFile = Files.createTempFile("四川能源发展集团有限责任公司_银行账户_01_" + reportNameExt, ".csv");
CsvExportUtil.writeCsvToFile(tempFile, headers, rows2);
// 上传到临时文件服务器 获取压缩包下载地址

View File

@ -48,9 +48,10 @@ public class AccountbankReportPlugin extends AbstractReportListDataPlugin {
"case when closedate IS NULL then '9999-12-31' else to_char(closedate,'YYYY-MM-DD') end as shkd_xhrq," +
"opendate as shkd_khrq,'"+dateList.get(0)+"' as shkd_sjrq,case when ismoneypool=1 then '是' else '否' end as shkd_sfzjczh";
//银行账户数据集
QFilter qFilter = new QFilter("finorgtype",QCP.not_equals,"1");
DataSet accountbankDataSet = QueryServiceHelper.queryDataSet(this.getClass().getSimpleName(),"am_accountbank",
selectFields
, null, null);
, qFilter.toArray(), null);
String[] fieldNames = accountbankDataSet.getRowMeta().getFieldNames();
String[] newFieldNames = ReportUtils.ExpansionArray(fieldNames, Arrays.asList("fid", "fbasedataid as shkd_bz"));