|
@@ -955,6 +955,10 @@ public class StaffAssignAuthInfoService implements IStaffAssignAuthInfoService {
|
|
|
}
|
|
|
//2、保存用户角色授权
|
|
|
List<StaffAssignAuthInfo> oldUserRoles = this.findByPropertyValue("staffId", dto.getUserId());//已授权角色
|
|
|
+ List<StaffAssignAuthInfo> logUserRoles = new ArrayList<>();
|
|
|
+ if(CollectionUtils.isNotEmpty(oldUserRoles)) {
|
|
|
+ logUserRoles.addAll(oldUserRoles);
|
|
|
+ }
|
|
|
try {
|
|
|
for (int i = 0; i < saveList.size(); i++) {
|
|
|
JSONObject jsonObject = (JSONObject) saveList.get(i);
|
|
@@ -1008,11 +1012,11 @@ public class StaffAssignAuthInfoService implements IStaffAssignAuthInfoService {
|
|
|
sendMessage(staffList, appId);
|
|
|
}
|
|
|
|
|
|
- logInfoFillService.sendUserViewAuthLog(AuthResultEnum.SUC, dto,oldUserRoles, RequestIpUtil.getRealIp());
|
|
|
+ logInfoFillService.sendUserViewAuthLog(AuthResultEnum.SUC, dto,logUserRoles, RequestIpUtil.getRealIp());
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
logger.info("保存异常=====", e);
|
|
|
- logInfoFillService.sendUserViewAuthLog(AuthResultEnum.FAIL, dto, oldUserRoles, RequestIpUtil.getRealIp());
|
|
|
+ logInfoFillService.sendUserViewAuthLog(AuthResultEnum.FAIL, dto, logUserRoles, RequestIpUtil.getRealIp());
|
|
|
return ResponseStatus.success("保存异常,请稍后重试!");
|
|
|
}
|
|
|
return ResponseStatus.success("保存成功!");
|