Merge branch 'Test.IRC' of http://192.168.3.69:2000/XCKJ/irc-netcore-api into Test.IRC

IRC_NewDev
hang 2023-10-18 11:41:25 +08:00
commit e772407e38
2 changed files with 5 additions and 1 deletions

View File

@ -2566,7 +2566,7 @@ namespace IRaCIS.Application.Services
{ {
throw new BusinessValidationFailedException(_localizer["ReadingImage_NeedRest", 2, 20]); throw new BusinessValidationFailedException(_localizer["ReadingImage_NeedRest", 2, 20]);
} }
else if (timespanMin > 1) else if (timespanMin > 140)
{ {
cacheDate = cacheDate.AddMinutes((Math.Floor((double)(timespanMin / 140))) * 140); cacheDate = cacheDate.AddMinutes((Math.Floor((double)(timespanMin / 140))) * 140);
_provider.Set(cacheKey, cacheDate.ToString(), TimeSpan.FromHours(5)); _provider.Set(cacheKey, cacheDate.ToString(), TimeSpan.FromHours(5));

View File

@ -1734,6 +1734,10 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
} }
} }
if (spleenLength == 0)
{
return SpleenAssessment.NotEvaluable.GetEnumInt();
}
#region 最低 #region 最低
var visitTaskIds = await _visitTaskRepository.Where(x => x.ReadingCategory == ReadingCategory.Visit && var visitTaskIds = await _visitTaskRepository.Where(x => x.ReadingCategory == ReadingCategory.Visit &&