安全环保检查 - App端的安全环保检查确认时的空指针bug修复
parent
8f5bbae950
commit
32f94d9cf1
|
@ -61,7 +61,10 @@ public class AppSafetyEnvironmentalExplainController 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("-"));
|
String corp_infos = "";
|
||||||
|
if(parent_list != null) {
|
||||||
|
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);
|
||||||
|
|
Loading…
Reference in New Issue