S-62
parent
9f4582bf27
commit
b03d539578
|
@ -238,6 +238,11 @@ namespace IRaCIS.Core.Application.Service
|
||||||
return ResponseOutput.NotOk("问题序号存在重复!");
|
return ResponseOutput.NotOk("问题序号存在重复!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (await _trialClinicalQuestionRepository.AnyAsync(x => x.TrialClinicalId == inDto.TrialClinicalId && x.Id != inDto.Id && x.IsCheckDate == inDto.IsCheckDate&&inDto.IsCheckDate))
|
||||||
|
{
|
||||||
|
return ResponseOutput.NotOk("已经添加过类型为检查日期的问题!");
|
||||||
|
}
|
||||||
|
|
||||||
var entity = await _trialClinicalQuestionRepository.InsertOrUpdateAsync(inDto, true);
|
var entity = await _trialClinicalQuestionRepository.InsertOrUpdateAsync(inDto, true);
|
||||||
return ResponseOutput.Ok(entity.Id.ToString());
|
return ResponseOutput.Ok(entity.Id.ToString());
|
||||||
|
|
||||||
|
@ -325,6 +330,10 @@ namespace IRaCIS.Core.Application.Service
|
||||||
{
|
{
|
||||||
return ResponseOutput.NotOk("问题序号存在重复!");
|
return ResponseOutput.NotOk("问题序号存在重复!");
|
||||||
}
|
}
|
||||||
|
if (await _systemClinicalQuestionRepository.AnyAsync(x => x.SystemClinicalId == inDto.SystemClinicalId && x.Id != inDto.Id && x.IsCheckDate == inDto.IsCheckDate && inDto.IsCheckDate))
|
||||||
|
{
|
||||||
|
return ResponseOutput.NotOk("已经添加过类型为检查日期的问题!");
|
||||||
|
}
|
||||||
var entity = await _systemClinicalQuestionRepository.InsertOrUpdateAsync(inDto, true);
|
var entity = await _systemClinicalQuestionRepository.InsertOrUpdateAsync(inDto, true);
|
||||||
return ResponseOutput.Ok(entity.Id.ToString());
|
return ResponseOutput.Ok(entity.Id.ToString());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue