parent
20ab7e37cb
commit
fe5a275c1c
|
|
@ -112,7 +112,7 @@ public class AccountbankReportFormPlugin extends AbstractReportFormPlugin {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Path tempDir = Files.createTempDirectory("csv_export");
|
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");
|
// Path tempFile = Files.createTempFile("四川能源发展集团有限责任公司_银行账户_01_" + reportNameExt, ".csv");
|
||||||
CsvExportUtil.writeCsvToFile(tempFile, headers, rows2);
|
CsvExportUtil.writeCsvToFile(tempFile, headers, rows2);
|
||||||
// 上传到临时文件服务器 获取压缩包下载地址
|
// 上传到临时文件服务器 获取压缩包下载地址
|
||||||
|
|
|
||||||
|
|
@ -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," +
|
"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";
|
"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",
|
DataSet accountbankDataSet = QueryServiceHelper.queryDataSet(this.getClass().getSimpleName(),"am_accountbank",
|
||||||
selectFields
|
selectFields
|
||||||
, null, null);
|
, qFilter.toArray(), null);
|
||||||
|
|
||||||
String[] fieldNames = accountbankDataSet.getRowMeta().getFieldNames();
|
String[] fieldNames = accountbankDataSet.getRowMeta().getFieldNames();
|
||||||
String[] newFieldNames = ReportUtils.ExpansionArray(fieldNames, Arrays.asList("fid", "fbasedataid as shkd_bz"));
|
String[] newFieldNames = ReportUtils.ExpansionArray(fieldNames, Arrays.asList("fid", "fbasedataid as shkd_bz"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue