提交人:陈绍鑫

日期:2025/6/6 12:30
内容:理财收益报表拓展插件
This commit is contained in:
陈绍鑫 2025-06-06 10:56:20 +08:00
parent fa670a1fb4
commit 8c9fe9d29f
1 changed files with 11 additions and 5 deletions

View File

@ -9,10 +9,16 @@ import kd.bos.orm.ORM;
public class addRevDetailReportDataListPlugin extends AbstractReportListDataPluginExt {
@Override
public void afterQuery(AfterQueryEvent event) {
try {
DataSet dataSet = event.getDataSet();
DynamicObjectCollection srcCollection = ORM.create().toPlainDynamicObjectCollection(dataSet.copy());
System.out.println(srcCollection);
if (srcCollection.size()!=0){
dataSet = dataSet.addField("planamount_report - realamount_report", "shkd_cha");
}
event.setDataSet(dataSet);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}