Merge branch 'master' of http://192.168.1.2:8033/IRaCIS_Core_Api
commit
694cf0f59a
|
@ -712,9 +712,9 @@ namespace IRaCIS.Application.Services
|
|||
public async Task<(GetReadingTableQuestionOutDto, object)> GetCustomTableQuestionAnswer(GetCustomTableQuestionAnswerInDto inDto)
|
||||
{
|
||||
|
||||
await _readingCalculateService.AddTaskLesionAnswerFromLastTask(new AddTaskLesionAnswerFromLastTaskInDto() {
|
||||
VisitTaskId=inDto.VisitTaskId
|
||||
});
|
||||
//await _readingCalculateService.AddTaskLesionAnswerFromLastTask(new AddTaskLesionAnswerFromLastTaskInDto() {
|
||||
//VisitTaskId=inDto.VisitTaskId
|
||||
//});
|
||||
var taskInfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).Include(x=>x.SourceSubjectVisit).FirstNotNullAsync();
|
||||
|
||||
var tableAnswers = await _readingTableQuestionAnswerRepository
|
||||
|
|
|
@ -771,13 +771,13 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
var findindex = taskList.OrderBy(x => x.VisitTaskNum).ToList().FindIndex(x => x.VisitTaskId == inDto.VisitTaskId);
|
||||
|
||||
|
||||
if (findindex < 2)
|
||||
if (findindex < 3)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
var twoindex = taskList.OrderBy(x => x.VisitTaskNum).ToList()[2];
|
||||
var twoindex = taskList.OrderBy(x => x.VisitTaskNum).ToList()[3];
|
||||
|
||||
|
||||
result = inDto.QuestionInfo.Where(x => x.LesionType == LesionType.AlwaysNewLesions).SelectMany(x => x.TableRowInfoList)
|
||||
|
|
Loading…
Reference in New Issue