diff --git a/src/main/java/com/zcloud/controller/xgf/XgfCorpController.java b/src/main/java/com/zcloud/controller/xgf/XgfCorpController.java index 83c27554..e152ae2d 100644 --- a/src/main/java/com/zcloud/controller/xgf/XgfCorpController.java +++ b/src/main/java/com/zcloud/controller/xgf/XgfCorpController.java @@ -68,7 +68,11 @@ public class XgfCorpController extends BaseController { if (x.get("MAIN_DEPARTMENT") != null && x.get("MAIN_DEPARTMENT").toString().contains("]")) { List departmentIds = JSONObject.parseObject(x.get("MAIN_DEPARTMENT").toString(),List.class); List departmentList = departmentService.getCorpDepartmentByIds(departmentIds); - x.put("MAIN_DEPARTMENT_NAME", departmentList.stream().map(n -> n.getString("NAME")).collect(Collectors.joining(","))); + String MAIN_DEPARTMENT_NAME = departmentList.stream().map(n -> n.getString("NAME")).collect(Collectors.joining(",")); + if (x.get("MAIN_DEPARTMENT").toString().contains(",0,")){ + MAIN_DEPARTMENT_NAME = MAIN_DEPARTMENT_NAME + ",无"; + } + x.put("MAIN_DEPARTMENT_NAME", MAIN_DEPARTMENT_NAME); } } return result;