主管部门可以选无

limingyu-20240401-app登录曹实业判断修改
liujun 2024-03-19 11:54:29 +08:00
parent a255cf3044
commit 7c9e441b84
1 changed files with 5 additions and 1 deletions

View File

@ -68,7 +68,11 @@ public class XgfCorpController extends BaseController {
if (x.get("MAIN_DEPARTMENT") != null && x.get("MAIN_DEPARTMENT").toString().contains("]")) {
List<String> departmentIds = JSONObject.parseObject(x.get("MAIN_DEPARTMENT").toString(),List.class);
List<PageData> 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;