Commit 5ffb62a3 by 徐高华

parent 5f43808d
......@@ -730,11 +730,11 @@ public class GroupChatServiceImpl implements GroupChatService {
String departmentId = qdto.getDepartmentId();
if (StringUtils.isNotBlank(departmentId)) {
TabHaobanDepartment department = this.departmentService.selectById(departmentId);
departmentIdList.add(departmentId);
if (department != null) {
String parentDepartmentId = department.getParentDepartmentId();
if (!"0".equals(parentDepartmentId)) {
String chainId = department.getChainId() + Constant.ID_SEPARATOR + departmentId;
departmentIdList.add(departmentId);
List<TabHaobanDepartment> tabList = departmentService.listByChainId(chainId,
qdto.getWxEnterpriseId());
List<String> departmentIds = tabList.stream().map(TabHaobanDepartment::getDepartmentId)
......@@ -742,6 +742,7 @@ public class GroupChatServiceImpl implements GroupChatService {
departmentIdList.addAll(departmentIds);
}
}
qdto.setDepartmentIdList(departmentIdList);
}
PageHelper.startPage(basePageInfo);
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