修改验证

This commit is contained in:
he
2022-12-16 10:14:38 +08:00
committed by {872297557@qq.com}
parent bb95a50abc
commit e2cd980da8
@@ -162,6 +162,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
/// <returns></returns>
public async Task<object> GetReportVerify(GetReportVerifyInDto inDto)
{
var service = await this.GetService(inDto.VisitTaskId);
if (service != null)
@@ -186,11 +187,17 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
if (service != null)
{
await service.CalculateTask(new CalculateTaskInDto()
{
VisitTaskId = inDto.VisitTaskId
});
var taskInfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstNotNullAsync();
if (taskInfo.SignTime == null)
{
await service.CalculateTask(new CalculateTaskInDto()
{
VisitTaskId = inDto.VisitTaskId
});
}
return await service.GetReadingReportEvaluation(inDto);
}
else