|
|
@@ -26,9 +26,9 @@ public class DeptRoleServiceImpl extends MyBaseServiceImpl<DeptRoleMapper, DeptR
|
|
|
@Override
|
|
|
public void updateDeptRole(Long roleId, Set<Long> deptIds) {
|
|
|
if (Objects.nonNull(roleId) && !CollectionUtils.isEmpty(deptIds)) {
|
|
|
- this.removeByMap(Map.of("role_id", roleId));
|
|
|
- Set<DeptRoleEntity> collect = deptIds.stream().map(deptId -> new DeptRoleEntity(roleId, deptId)).collect(Collectors.toSet());
|
|
|
- this.saveBatch(collect);
|
|
|
+// this.removeByMap(Map.of("role_id", roleId));
|
|
|
+// Set<DeptRoleEntity> collect = deptIds.stream().map(deptId -> new DeptRoleEntity(roleId, deptId)).collect(Collectors.toSet());
|
|
|
+// this.saveBatch(collect);
|
|
|
}
|
|
|
}
|
|
|
}
|