|
@@ -128,7 +128,6 @@ public class EmployeeServiceImpl extends BaseServiceImpl<Integer, Employee> impl
|
|
|
Organization organization = organizationDao.findByUserId(employee.getUserId());
|
|
|
if(organization != null){
|
|
|
List<Organization> childOrgans = organizationDao.getChildOrgans(organization.getParentOrganIdTag());
|
|
|
- childOrgans.add(organization);
|
|
|
List<Integer> userIds = childOrgans.stream().map(e -> e.getUserId()).collect(Collectors.toList());
|
|
|
|
|
|
sysUserDao.batchDelEmployeeRole(userIds);
|