安全环保检查检查人核实管理列表报错bug
parent
3f584d26a5
commit
02f8e70fcf
|
@ -66,9 +66,14 @@ public class SafetyEnvironmentalInspectorController extends BaseController {
|
|||
PageData condition = new PageData();
|
||||
condition.put("DEPARTMENT_ID",vector.getString("INSPECTED_DEPARTMENT_ID"));
|
||||
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("-"));
|
||||
vector.put("INSPECTED_DEPARTMENT_NAMES",corp_infos);
|
||||
}
|
||||
}
|
||||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
map.put("result", errInfo);
|
||||
|
|
Loading…
Reference in New Issue