Compare commits
No commits in common. "f726088cc982e7d0f6726dab7f7cb8dd0b7975c5" and "641d61d242238a5f34258b9e2d1c6bfa949921a2" have entirely different histories.
f726088cc9
...
641d61d242
|
|
@ -95,8 +95,6 @@ namespace IRaCIS.Core.Application.BusinessFilter.LegacyController
|
||||||
|
|
||||||
// 验证请求频繁情况
|
// 验证请求频繁情况
|
||||||
if (
|
if (
|
||||||
requestPath == "/ReadingImageTask/changeDicomReadingQuestionAnswer"&&
|
|
||||||
|
|
||||||
!requestPath
|
!requestPath
|
||||||
.Split("/", StringSplitOptions.RemoveEmptyEntries)
|
.Split("/", StringSplitOptions.RemoveEmptyEntries)
|
||||||
.Any(segment => segment.StartsWith("get", StringComparison.OrdinalIgnoreCase)) &&
|
.Any(segment => segment.StartsWith("get", StringComparison.OrdinalIgnoreCase)) &&
|
||||||
|
|
|
||||||
|
|
@ -3429,16 +3429,16 @@ namespace IRaCIS.Core.Application.Service
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IResponseOutput> VerifyVisitTaskQuestions(VerifyVisitTaskQuestionsInDto inDto)
|
public async Task<IResponseOutput> VerifyVisitTaskQuestions(VerifyVisitTaskQuestionsInDto inDto)
|
||||||
{
|
{
|
||||||
// 验证一个问题不能有多个答案
|
//// 验证一个问题不能有多个答案
|
||||||
bool hasDuplicate = await _readingTaskQuestionAnswerRepository
|
//bool hasDuplicate = await _readingTaskQuestionAnswerRepository
|
||||||
.Where(x => x.VisitTaskId == inDto.VisitTaskId)
|
// .Where(x => x.VisitTaskId == inDto.VisitTaskId)
|
||||||
.GroupBy(x => x.ReadingQuestionTrialId)
|
// .GroupBy(x => x.ReadingQuestionTrialId)
|
||||||
.AnyAsync(g => g.Count() > 1);
|
// .AnyAsync(g => g.Count() > 1);
|
||||||
|
|
||||||
if (hasDuplicate)
|
//if (hasDuplicate)
|
||||||
{
|
//{
|
||||||
_ = SendWeComNotifier(inDto.VisitTaskId, "阅片问题答案有重复");
|
// return ResponseOutput.NotOk(_localizer["ReadingImage_BackImageNotExist"]);
|
||||||
}
|
//}
|
||||||
|
|
||||||
|
|
||||||
//验证后处理影像必须传
|
//验证后处理影像必须传
|
||||||
|
|
|
||||||
|
|
@ -946,7 +946,6 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
var userList = _config.GetSection("WeComNoticeConfig:APINoticeUserList").Get<string[]>();
|
var userList = _config.GetSection("WeComNoticeConfig:APINoticeUserList").Get<string[]>();
|
||||||
|
|
||||||
var visitTask = await _visitTaskRepository.Where(x => x.Id == visiTaskId).Include(x=>x.Subject).Include(x=>x.SourceSubjectVisit).FirstNotNullAsync();
|
|
||||||
|
|
||||||
|
|
||||||
// 🔔 异步告警(不要阻塞请求)
|
// 🔔 异步告警(不要阻塞请求)
|
||||||
|
|
@ -957,7 +956,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
Env = baseUrl,
|
Env = baseUrl,
|
||||||
UserName = msg,
|
UserName = msg,
|
||||||
Api = "",
|
Api = "",
|
||||||
Message = $"异常信息:{msg},受试者:{visitTask.Subject.Code},访视:{visitTask.SourceSubjectVisit.VisitName},任务Id:{visiTaskId}",
|
Message = $"异常信息:{msg}",
|
||||||
Stack = string.Empty,
|
Stack = string.Empty,
|
||||||
AtUsers = userList ?? []
|
AtUsers = userList ?? []
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue