修复人员角色为空时 分权后页面问题

feature/cl
Chengliang 2 days ago
parent eceb6ea209
commit 9f738bf9a4

@ -1,5 +1,6 @@
package com.engine.organization.service.impl;
import cn.hutool.core.collection.CollectionUtil;
import com.api.browser.bean.BrowserBean;
import com.api.browser.bean.SearchConditionGroup;
import com.api.browser.bean.SearchConditionItem;
@ -252,9 +253,12 @@ public class ManagerDetachServiceImpl extends Service implements ManagerDetachSe
HrmCommonService hrmCommonService = new HrmCommonServiceImpl();
List<String> roleIds = new ArrayList<>(Arrays.asList(hrmCommonService.getRoleIds(uId).split(",")));
List<Integer> integerList = roleIds.stream()
.filter(s -> !s.trim().isEmpty())
.map(Integer::parseInt)
.collect(Collectors.toList());
detachListById.addAll(MapperProxyFactory.getProxy(ManagerDetachMapper.class).selectDetachListByManager(integerList));
if (!CollectionUtil.isEmpty(integerList)) {
detachListById.addAll(MapperProxyFactory.getProxy(ManagerDetachMapper.class).selectDetachListByManager(integerList));
}
for (ManagerDetachPO managerDetachPO : detachListById) {
List<Integer> ids = Stream.of(managerDetachPO.getJclRolelevel().split(",")).map(Integer::parseInt).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(ids)) {

Loading…
Cancel
Save