供应商考察汇总取数没有数据报错异常修复

This commit is contained in:
zengweihai 2024-12-03 11:39:48 +08:00
parent 5fca803089
commit 8ce3725701
1 changed files with 7 additions and 7 deletions

View File

@ -1,18 +1,18 @@
package shkd.repc.resm.report.data; package shkd.repc.resm.report.data;
import kd.bos.algo.*; import kd.bos.algo.*;
import kd.bos.algo.dataset.select.SimpleSelectDataSet;
import kd.bos.algo.input.CollectionInput; import kd.bos.algo.input.CollectionInput;
import kd.bos.dataentity.entity.DynamicObject; import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.dataentity.entity.DynamicObjectCollection; import kd.bos.dataentity.entity.DynamicObjectCollection;
import kd.bos.entity.report.AbstractReportListDataPlugin; import kd.bos.entity.report.*;
import kd.bos.entity.report.FilterInfo;
import kd.bos.entity.report.FilterItemInfo;
import kd.bos.entity.report.ReportQueryParam;
import kd.bos.orm.query.QCP; import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter; import kd.bos.orm.query.QFilter;
import kd.bos.report.ReportQuery;
import kd.bos.servicehelper.BusinessDataServiceHelper; import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.servicehelper.org.OrgUnitServiceHelper; import kd.bos.servicehelper.org.OrgUnitServiceHelper;
import kd.bos.servicehelper.user.UserServiceHelper; import kd.bos.servicehelper.user.UserServiceHelper;
import kd.fi.er.report.invoice.service.InvoiceDataSetFactory;
import kd.sdk.plugin.Plugin; import kd.sdk.plugin.Plugin;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -107,6 +107,7 @@ public class SupInspectSumReportDataPlugin extends AbstractReportListDataPlugin
qFilter.and("multisuppliertype.fbasedataid.id",QCP.in,supplierGroupIdList); qFilter.and("multisuppliertype.fbasedataid.id",QCP.in,supplierGroupIdList);
} }
return qFilter; return qFilter;
} }
@ -118,8 +119,8 @@ public class SupInspectSumReportDataPlugin extends AbstractReportListDataPlugin
public Collection<Object[]> addFirmParams(QFilter examTaskFilter){ public Collection<Object[]> addFirmParams(QFilter examTaskFilter){
Collection<Object[]> firmParams = null ; Collection<Object[]> firmParams = null ;
DynamicObject[] resm_myexams = BusinessDataServiceHelper.load("resm_myexam", "id,name,org,examsuppliername,modifytime,evalscore,creator,entry_evalscore,entry_evalscore.qeug_scoredesc,entry_evalscore.scoredesc", examTaskFilter.toArray());//加载数据源 DynamicObject[] resm_myexams = BusinessDataServiceHelper.load("resm_myexam", "id,name,org,examsuppliername,modifytime,evalscore,creator,entry_evalscore,entry_evalscore.qeug_scoredesc,entry_evalscore.scoredesc", examTaskFilter.toArray());//加载数据源
if (resm_myexams != null && resm_myexams.length > 0){
firmParams = new ArrayList<Object[]>(resm_myexams.length);//初始化考察任务数据集合 firmParams = new ArrayList<Object[]>(resm_myexams.length);//初始化考察任务数据集合
if (resm_myexams.length > 0){
for (int i = 0; i < resm_myexams.length; i++) { for (int i = 0; i < resm_myexams.length; i++) {
Object[] firmParam = new Object[9];//创建行数据 Object[] firmParam = new Object[9];//创建行数据
DynamicObject resm_myexam = resm_myexams[i];//单个考察任务数据 DynamicObject resm_myexam = resm_myexams[i];//单个考察任务数据
@ -152,7 +153,6 @@ public class SupInspectSumReportDataPlugin extends AbstractReportListDataPlugin
firmParams.add(firmParam); firmParams.add(firmParam);
} }
} }
return firmParams; return firmParams;
} }