修改启用禁用查询
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
hang 2025-01-03 17:16:13 +08:00
parent 522d619ee8
commit 25648a8a69
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ namespace IRaCIS.Core.Application.Service
{ {
Id = ur.Id, Id = ur.Id,
UserTypeShortName = ur.UserRole.UserTypeRole.UserTypeShortName, UserTypeShortName = ur.UserRole.UserTypeRole.UserTypeShortName,
IsUserRoleDisabled= ur.UserRole.IsUserRoleDisabled, IsUserRoleDisabled = ur.UserRole.IsUserRoleDisabled,
IsDeleted = ur.IsDeleted, IsDeleted = ur.IsDeleted,
CreateTime = ur.CreateTime, CreateTime = ur.CreateTime,
UserTypeEnum = ur.UserRole.UserTypeEnum, UserTypeEnum = ur.UserRole.UserTypeEnum,
@ -113,7 +113,7 @@ namespace IRaCIS.Core.Application.Service
[HttpPut] [HttpPut]
public async Task<IResponseOutput> UpdateTrialUserRole(UpdateTrialUserRoleCommand updateCommand) public async Task<IResponseOutput> UpdateTrialUserRole(UpdateTrialUserRoleCommand updateCommand)
{ {
await _trialUseRoleRepository.UpdatePartialFromQueryAsync(t => updateCommand.IdList.Contains(t.Id), u => new TrialUserRole() { IsDeleted = updateCommand.IsDeleted }, true); await _trialUseRoleRepository.UpdatePartialFromQueryAsync(t => updateCommand.IdList.Contains(t.Id), u => new TrialUserRole() { IsDeleted = updateCommand.IsDeleted }, true, true);
return ResponseOutput.Ok(); return ResponseOutput.Ok();
} }