From 7c9e441b8417fa4132b5fa635f5a5f7c03edb67b Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 19 Mar 2024 11:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E7=AE=A1=E9=83=A8=E9=97=A8=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E9=80=89=E6=97=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zcloud/controller/xgf/XgfCorpController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;