parent
fa670a1fb4
commit
8c9fe9d29f
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue