修复动态考察结果汇总考察计划为空异常

This commit is contained in:
zengweihai 2024-12-03 10:14:28 +08:00
parent a3d3130d0b
commit e9b47fae67
1 changed files with 77 additions and 74 deletions

View File

@ -45,6 +45,7 @@ public class ExamTaskSummaryListPlugin extends AbstractListPlugin implements Plu
long evalTaskId = evaltask.getLong("id"); long evalTaskId = evaltask.getLong("id");
QFilter qFilter = new QFilter("plandetails.evaltask.id", QCP.equals, evalTaskId); QFilter qFilter = new QFilter("plandetails.evaltask.id", QCP.equals, evalTaskId);
DynamicObject examPlan = BusinessDataServiceHelper.loadSingle("resm_investigationplan", qFilter.toArray()); DynamicObject examPlan = BusinessDataServiceHelper.loadSingle("resm_investigationplan", qFilter.toArray());
if (examPlan != null){
DynamicObject qeug_project = examPlan.getDynamicObject("qeug_project");//考察计划的项目 DynamicObject qeug_project = examPlan.getDynamicObject("qeug_project");//考察计划的项目
if (qeug_project != null){ if (qeug_project != null){
projectName = qeug_project.getString("name"); projectName = qeug_project.getString("name");
@ -130,7 +131,9 @@ public class ExamTaskSummaryListPlugin extends AbstractListPlugin implements Plu
// inlineStyleCss.setWidth("1000"); // inlineStyleCss.setWidth("1000");
// formShowParameter.getOpenStyle().setInlineStyleCss(inlineStyleCss); // formShowParameter.getOpenStyle().setInlineStyleCss(inlineStyleCss);
getView().showForm(formShowParameter); getView().showForm(formShowParameter);
}else {
this.getView().showTipNotification("对应考察计划数据异常,请联系管理员");
}
} }
} }
} }