Compare commits
No commits in common. "2a9c1ec45c661b8b7e7443e11f25250f21c7f755" and "6c078806cd34c9e4f5ee53c1f947fb9dd95eb8b0" have entirely different histories.
2a9c1ec45c
...
6c078806cd
|
@ -21,12 +21,6 @@ public class TrialFinalRecordView : TrialFinalRecordAddOrEdit
|
|||
|
||||
}
|
||||
|
||||
public class AuthorizedTrialFinalRecordInDto
|
||||
{
|
||||
public List<Guid> Ids { get; set; }
|
||||
|
||||
public bool IsAuthorizedView { get; set; }
|
||||
}
|
||||
|
||||
public class TrialFinalRecordAddOrEdit
|
||||
{
|
||||
|
|
|
@ -64,18 +64,6 @@ public class TrialFinalRecordService(IRepository<TrialFinalRecord> _trialFinalRe
|
|||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 授权文档
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<IResponseOutput> AuthorizedTrialFinalRecord(AuthorizedTrialFinalRecordInDto inDto)
|
||||
{
|
||||
await _trialFinalRecordRepository.UpdatePartialFromQueryAsync(t =>inDto.Ids.Contains(t.Id), t => new TrialFinalRecord() { IsAuthorizedView = inDto.IsAuthorizedView });
|
||||
await _trialFinalRecordRepository.SaveChangesAsync();
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
|
||||
[HttpDelete("{trialFinalRecordId:guid}")]
|
||||
public async Task<IResponseOutput> DeleteTrialFinalRecord(Guid trialFinalRecordId)
|
||||
|
|
Loading…
Reference in New Issue