安全环保检查 - App端的安全环保检查确认时的空指针bug修复

pet-图片单独上传接口-2024.8.28-徐绎丰
water_xu 2024-07-05 16:18:28 +08:00
parent 8f5bbae950
commit 32f94d9cf1
1 changed files with 4 additions and 1 deletions

View File

@ -61,7 +61,10 @@ public class AppSafetyEnvironmentalExplainController extends BaseController {
PageData condition = new PageData();
condition.put("DEPARTMENT_ID",vector.getString("INSPECTED_DEPARTMENT_ID"));
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);
}
map.put("varList", varList);