From 8e1145a7c0093fb5c58e3d12e942c96762416c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Tue, 8 Jul 2025 11:13:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E6=88=B7=E5=A4=B4=E5=AF=B8=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8-=E6=9B=B4=E6=8D=A2=E4=BD=99=E9=A2=9D=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jhzj7/fi/fi/plugin/report/BankInfoListReport.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main/java/shjh/jhzj7/fi/fi/plugin/report/BankInfoListReport.java b/main/java/shjh/jhzj7/fi/fi/plugin/report/BankInfoListReport.java index 595f881..0e88c6d 100644 --- a/main/java/shjh/jhzj7/fi/fi/plugin/report/BankInfoListReport.java +++ b/main/java/shjh/jhzj7/fi/fi/plugin/report/BankInfoListReport.java @@ -192,17 +192,17 @@ public class BankInfoListReport extends AbstractReportListDataPlugin implements //收款入账中心-流水 DataSet detailsDataSet = QueryServiceHelper.queryDataSet( this.getClass().getName() + "details", - "bei_intelrec","accountbank,bizdate,transbalance AS shjh_monthamt,modifytime AS shjh_datetimefield", + "bei_bankbalance","accountbank,bizdate,amount AS shjh_monthamt", qFilters2.toArray(new QFilter[]{}), null); //取最大日期 - DataSet maxDataSet=detailsDataSet.groupBy(new String[]{"accountbank"}).max("shjh_datetimefield").finish(); + DataSet maxDataSet=detailsDataSet.groupBy(new String[]{"accountbank"}).max("bizdate").finish(); //重新排序 maxDataSet=maxDataSet.join(detailsDataSet) .on("accountbank","accountbank") - .on("shjh_datetimefield","shjh_datetimefield") - .select(new String[]{"accountbank","shjh_monthamt","bizdate","shjh_datetimefield"}) + .on("bizdate","bizdate") + .select(new String[]{"accountbank","shjh_monthamt","bizdate"}) .finish(); //过滤金额=null的数据 maxDataSet=maxDataSet.filter("shjh_monthamt <> null"); @@ -217,7 +217,7 @@ public class BankInfoListReport extends AbstractReportListDataPlugin implements "shjh_fixedfield2","shjh_fixedfield3","shjh_monthamt", "shjh_exchangerate", "shjh_textfield", "shjh_fixedfield4","shjh_sfzl","shjh_province","shjh_city", "shjh_fixedfield5", "shjh_acctoutin","shjh_fixedfield6","shjh_fixedfield7", - "shjh_fixedfield8", "shjh_fixedfield9","shjh_fixedfield10","shjh_datetimefield"}) + "shjh_fixedfield8", "shjh_fixedfield9","shjh_fixedfield10"}) .finish(); return dataSet;