主管部门可以选无
parent
a255cf3044
commit
7c9e441b84
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue