From 5fca803089eefcc2b80a3e27f4ff869a2b695314 Mon Sep 17 00:00:00 2001 From: zengweihai Date: Tue, 3 Dec 2024 10:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E8=80=83=E5=AF=9F?= =?UTF-8?q?=E6=B1=87=E6=80=BB=E8=A1=A8=E5=8D=95=E5=8F=96=E6=B6=88=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/SupInspectSumReportFormPlugin.java | 50 ------------------- 1 file changed, 50 deletions(-) diff --git a/main/java/shkd/repc/resm/report/form/SupInspectSumReportFormPlugin.java b/main/java/shkd/repc/resm/report/form/SupInspectSumReportFormPlugin.java index 8551e82..82e01ab 100644 --- a/main/java/shkd/repc/resm/report/form/SupInspectSumReportFormPlugin.java +++ b/main/java/shkd/repc/resm/report/form/SupInspectSumReportFormPlugin.java @@ -62,54 +62,4 @@ public class SupInspectSumReportFormPlugin extends AbstractReportFormPlugin impl } } - - - @Override - public boolean verifyQuery(ReportQueryParam queryParam) { - FilterInfo filterInfo = queryParam.getFilter(); - QFilter qFilter = new QFilter("billstatus", QCP.equals, "B");//提交评分状态为已提交 - DynamicObjectCollection orges = (DynamicObjectCollection)filterInfo.getValue("qeug_orgfilter"); - //todo:设置所属组织过滤条件 - if (orges != null && orges.size() > 0){ - ArrayList orgIdList = new ArrayList<>(); - for (DynamicObject org : orges) { - orgIdList.add(org.getLong("id")); - } - qFilter.and("org.id",QCP.in,orgIdList); - } - DynamicObjectCollection regSupplies = (DynamicObjectCollection)filterInfo.getValue("qeug_evalsupplierfilter");//潜在供应商集合 - DynamicObjectCollection offSupplies = (DynamicObjectCollection)filterInfo.getValue("qeug_evaloffsuppliefilter");//正式供应商集合 - DynamicObjectCollection supplierGroups = (DynamicObjectCollection)filterInfo.getValue("qeug_suppliergroupfilter");//供应商分类集合 - //todo:设置供应商过滤条件 - if (regSupplies != null || offSupplies != null){ - if (regSupplies != null && regSupplies.size() > 0){//潜在供应商 - ArrayList regSupplyIdList = new ArrayList<>(); - for (DynamicObject regSupply : regSupplies) { - regSupplyIdList.add(regSupply.getLong("id"));//填充潜在供应商主键 - } - qFilter.and("evalsupplier.id",QCP.in,regSupplyIdList); - } - if (offSupplies != null && offSupplies.size() > 0){//正式供应商 - ArrayList offSupplyIdList = new ArrayList<>(); - for (DynamicObject offSupply : offSupplies) { - offSupplyIdList.add(offSupply.getLong("id"));//填充正式供应商主键 - } - qFilter.and("evaloffsupplier.id",QCP.in,offSupplyIdList); - } - } - //todo:设置供应商分类过滤条件 - if (supplierGroups != null && supplierGroups.size() > 0){ - ArrayList supplierGroupIdList = new ArrayList<>();//供应商分类集合 - for (DynamicObject supplierGroup : supplierGroups) { - supplierGroupIdList.add(supplierGroup.getLong("id"));//填充供应商分类主键 - } - qFilter.and("multisuppliertype.fbasedataid.id",QCP.in,supplierGroupIdList); - } - DynamicObject[] resm_myexams = BusinessDataServiceHelper.load("resm_myexam", "id,name,org,examsuppliername,modifytime,evalscore,creator,entry_evalscore,entry_evalscore.qeug_scoredesc,entry_evalscore.scoredesc", qFilter.toArray());//加载数据源 - if(!(resm_myexams != null && resm_myexams.length > 0)) { - this.getView().showTipNotification("该条件下无符合条件的数据!"); - return false; - } - return super.verifyQuery(queryParam); - } } \ No newline at end of file