|
@@ -262,12 +262,14 @@ public class AdminUserLogic {
|
|
|
}
|
|
|
|
|
|
private void dataPermissionsHandle(AdminUserAddReqBean adminUser, List<AdminUserPermissions> permissions, List<AdminUserPermissions> deptList) {
|
|
|
- final List<String> deptIdList = deptList.stream()
|
|
|
- .map(AdminUserPermissions::getAdminUserPermissionsId)
|
|
|
- .collect(Collectors.toList());
|
|
|
|
|
|
List<AdminDept> deptExistList = new ArrayList<>();
|
|
|
- if (CollectionUtil.isNotEmpty(deptIdList)) {
|
|
|
+ if (CollectionUtil.isNotEmpty(deptList)) {
|
|
|
+
|
|
|
+ final List<String> deptIdList = deptList.stream()
|
|
|
+ .map(AdminUserPermissions::getAdminUserPermissionsId)
|
|
|
+ .collect(Collectors.toList());
|
|
|
+
|
|
|
deptExistList = adminDeptService.lambdaQuery()
|
|
|
.in(AdminDept::getAdminDeptId, deptIdList)
|
|
|
.list();
|