应收票据台账报表插件3

This commit is contained in:
wenlukang1 2025-07-23 17:07:38 +08:00
parent 8e5a618295
commit ebc13bf54c
1 changed files with 5 additions and 8 deletions

View File

@ -1,7 +1,6 @@
package shkd.sys.sys.plugin.report;
import kd.bos.algo.DataSet;
import kd.bos.algo.JoinDataSet;
import kd.bos.algo.JoinType;
import kd.bos.db.DB;
import kd.bos.db.DBRoute;
@ -46,13 +45,11 @@ public class BillReceivableReportFormPlugin extends AbstractReportListDataPlugin
" MAX(discountid) AS discountid," +
" MAX(discounttradetype) AS discounttradetype," +
" LISTAGG(" +
" TO_CHAR(discountdate, 'YYYY-MM-DD'), -- 格式化日期" +
" '' " +
" ) WITHIN GROUP (ORDER BY discountdate) AS shkd_txrq, -- 按日期排序" +
// " -- 合并所有记录为 \"贴现人;金额; 贴现人;金额; ...\" 格式" +
" TO_CHAR(discountdate, 'YYYY-MM-DD')," +
" ';' " +
" ) WITHIN GROUP (ORDER BY discountdate) AS shkd_txrq," +
" LISTAGG(" +
" disfrecbodyname || ';' || TO_CHAR(discamt, '999,999,999,999.99')," +
// " ';' -- 用分号分隔" +
" ) WITHIN GROUP (ORDER BY discountdate) AS shkd_txjg" +
"FROM (" +
" SELECT " +
@ -84,10 +81,10 @@ public class BillReceivableReportFormPlugin extends AbstractReportListDataPlugin
" MAX(discountid) AS discountid," +
" MAX(discounttradetype) AS discounttradetype," +
" LISTAGG(" +
" TO_CHAR(bizdate, 'YYYY-MM-DD'), '\' " +
" TO_CHAR(bizdate, 'YYYY-MM-DD'), '/n'" +
" ) WITHIN GROUP (ORDER BY bizdate) AS shkd_bsrq, " +
" LISTAGG(" +
" endorsename || ';' || TO_CHAR(endorseamt, '999,999,999,999.99'),'\'" +
" endorsename || ';' || TO_CHAR(endorseamt, '999,999,999,999.99'),'/n'" +
" ) WITHIN GROUP (ORDER BY bizdate) AS shkd_bsr," +
" SUM(endorseamt) AS shkd_bsje" +
"FROM (" +