修改一版

Uat_Study
he 2022-07-01 09:32:52 +08:00
parent 8a002bbd12
commit e515970a30
1 changed files with 2 additions and 1 deletions

View File

@ -155,8 +155,9 @@ namespace IRaCIS.Core.Application.Service
[HttpPost]
public async Task<IResponseOutput> AddOrUpdateReadingMedicineTrialQuestion(ReadingMedicineTrialQuestionAddOrEdit inDto)
{
var existsQuery = _readingMedicineSystemQuestionRepository
var existsQuery = _readingMedicineTrialQuestionRepository
.WhereIf(inDto.Id != null, x => x.Id != inDto.Id)
.Where(x => x.TrialId==inDto.TrialId)
.Where(x => x.QuestionName == inDto.QuestionName || x.ShowOrder == inDto.ShowOrder);
if (await existsQuery.AnyAsync())