修改一版
parent
8a002bbd12
commit
e515970a30
|
@ -155,8 +155,9 @@ namespace IRaCIS.Core.Application.Service
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IResponseOutput> AddOrUpdateReadingMedicineTrialQuestion(ReadingMedicineTrialQuestionAddOrEdit inDto)
|
public async Task<IResponseOutput> AddOrUpdateReadingMedicineTrialQuestion(ReadingMedicineTrialQuestionAddOrEdit inDto)
|
||||||
{
|
{
|
||||||
var existsQuery = _readingMedicineSystemQuestionRepository
|
var existsQuery = _readingMedicineTrialQuestionRepository
|
||||||
.WhereIf(inDto.Id != null, x => x.Id != inDto.Id)
|
.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);
|
.Where(x => x.QuestionName == inDto.QuestionName || x.ShowOrder == inDto.ShowOrder);
|
||||||
|
|
||||||
if (await existsQuery.AnyAsync())
|
if (await existsQuery.AnyAsync())
|
||||||
|
|
Loading…
Reference in New Issue