添加 签名之后 不让设置TNMValue
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
he 2025-08-28 16:16:31 +08:00
parent d0352590ed
commit a3f8730aa8
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace IRaCIS.Core.Application.Service
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<TNMValueDto> GetTNMValue(TNMValueDto inDto)
public async Task<TNMValueDto?> GetTNMValue(TNMValueDto inDto)
{
var result= await _visitTaskRepository.Where(x=>x.Id==inDto.VisitTaskId).Select(x => new TNMValueDto()
{
@ -89,6 +89,7 @@ namespace IRaCIS.Core.Application.Service
[HttpPost]
public async Task<TNMValueDto> SetTNMValue(TNMValueDto inDto)
{
await this.VerifyTaskIsSign(inDto.VisitTaskId);
await _visitTaskRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.VisitTaskId, x => new VisitTask()
{
TNMValue = inDto.TNMValue