Commit 5ffb62a3 by 徐高华

parent 5f43808d
...@@ -730,11 +730,11 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -730,11 +730,11 @@ public class GroupChatServiceImpl implements GroupChatService {
String departmentId = qdto.getDepartmentId(); String departmentId = qdto.getDepartmentId();
if (StringUtils.isNotBlank(departmentId)) { if (StringUtils.isNotBlank(departmentId)) {
TabHaobanDepartment department = this.departmentService.selectById(departmentId); TabHaobanDepartment department = this.departmentService.selectById(departmentId);
departmentIdList.add(departmentId);
if (department != null) { if (department != null) {
String parentDepartmentId = department.getParentDepartmentId(); String parentDepartmentId = department.getParentDepartmentId();
if (!"0".equals(parentDepartmentId)) { if (!"0".equals(parentDepartmentId)) {
String chainId = department.getChainId() + Constant.ID_SEPARATOR + departmentId; String chainId = department.getChainId() + Constant.ID_SEPARATOR + departmentId;
departmentIdList.add(departmentId);
List<TabHaobanDepartment> tabList = departmentService.listByChainId(chainId, List<TabHaobanDepartment> tabList = departmentService.listByChainId(chainId,
qdto.getWxEnterpriseId()); qdto.getWxEnterpriseId());
List<String> departmentIds = tabList.stream().map(TabHaobanDepartment::getDepartmentId) List<String> departmentIds = tabList.stream().map(TabHaobanDepartment::getDepartmentId)
...@@ -742,6 +742,7 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -742,6 +742,7 @@ public class GroupChatServiceImpl implements GroupChatService {
departmentIdList.addAll(departmentIds); departmentIdList.addAll(departmentIds);
} }
} }
qdto.setDepartmentIdList(departmentIdList);
} }
PageHelper.startPage(basePageInfo); PageHelper.startPage(basePageInfo);
List<GroupChatOwnerDTO> list = this.groupChatOwnerMapper.listOwner(qdto); List<GroupChatOwnerDTO> list = this.groupChatOwnerMapper.listOwner(qdto);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment