修改启用禁用查询
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
522d619ee8
commit
25648a8a69
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue