安全环保检查检查人核实管理列表报错bug
parent
3f584d26a5
commit
02f8e70fcf
|
@ -66,8 +66,13 @@ 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);
|
||||||
String corp_infos = parent_list.stream().map(n -> n.getString("NAME")).collect(Collectors.joining("-"));
|
if (parent_list == null || parent_list.size() < 1) {
|
||||||
vector.put("INSPECTED_DEPARTMENT_NAMES",corp_infos);
|
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("varList", varList);
|
||||||
map.put("page", page);
|
map.put("page", page);
|
||||||
|
|
Loading…
Reference in New Issue