Commit 3141775e by 徐高华

test

parent f1ca4ff5
......@@ -886,7 +886,6 @@ public class GroupChatServiceImpl implements GroupChatService {
List<String> departmentIdList = new ArrayList<>();
if (StringUtils.isNotBlank(departmentId)) {
TabHaobanDepartment department = this.departmentService.selectById(departmentId);
departmentIdList.add(departmentId);
if (department != null) {
String parentDepartmentId = department.getParentDepartmentId();
if (!"0".equals(parentDepartmentId)) {
......@@ -894,6 +893,7 @@ public class GroupChatServiceImpl implements GroupChatService {
List<TabHaobanDepartment> tabList = departmentService.listByChainId(chainId, wxEnterpriseId);
List<String> departmentIds = tabList.stream().map(TabHaobanDepartment::getDepartmentId)
.collect(Collectors.toList());
departmentIdList.add(departmentId);
departmentIdList.addAll(departmentIds);
}
}
......
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