|
@@ -147,10 +147,11 @@ public class ManageInfoService implements IManageInfoService {
|
|
|
manageInfos.add(manageInfo);
|
|
|
}
|
|
|
manageInfoRepository.saveAll(manageInfos);
|
|
|
- Map<String, String> authMap = new HashMap<>();
|
|
|
//未启用auth管理本系统菜单
|
|
|
List<TempMtAuth> list = tempMtAuthService.findByUserIds(uids);
|
|
|
tempMtAuthService.deleteAll(list);
|
|
|
+ Map<String, String> authMap = list.stream()
|
|
|
+ .collect(Collectors.toMap(TempMtAuth::getUserId, TempMtAuth::getOrgId));
|
|
|
this.setMgeAuth(manageInfos, authMap);
|
|
|
return ResponseStatus.success();
|
|
|
}
|