安全环保检查检查人核实管理列表报错bug

liujun-2024-05-23-接口漏洞修复
limingyu 2024-03-30 16:20:15 +08:00
parent 3f584d26a5
commit 02f8e70fcf
1 changed files with 7 additions and 2 deletions

View File

@ -66,9 +66,14 @@ public class SafetyEnvironmentalInspectorController extends BaseController {
PageData condition = new PageData(); PageData condition = new PageData();
condition.put("DEPARTMENT_ID",vector.getString("INSPECTED_DEPARTMENT_ID")); condition.put("DEPARTMENT_ID",vector.getString("INSPECTED_DEPARTMENT_ID"));
List<PageData> parent_list = departmentService.getGenealogy(condition); List<PageData> parent_list = departmentService.getGenealogy(condition);
if (parent_list == null || parent_list.size() < 1) {
String corp_infos = "";
vector.put("INSPECTED_DEPARTMENT_NAMES", corp_infos);
} else {
String corp_infos = parent_list.stream().map(n -> n.getString("NAME")).collect(Collectors.joining("-")); String corp_infos = parent_list.stream().map(n -> n.getString("NAME")).collect(Collectors.joining("-"));
vector.put("INSPECTED_DEPARTMENT_NAMES",corp_infos); vector.put("INSPECTED_DEPARTMENT_NAMES",corp_infos);
} }
}
map.put("varList", varList); map.put("varList", varList);
map.put("page", page); map.put("page", page);
map.put("result", errInfo); map.put("result", errInfo);