修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
12449325a9
commit
04e4e786b0
|
@ -246,8 +246,19 @@ namespace IRaCIS.Core.Application.Service
|
||||||
await _doctorSummarizeRepository.InsertOrUpdateAsync(system, true);
|
await _doctorSummarizeRepository.InsertOrUpdateAsync(system, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (inDto.TrialId == null)
|
||||||
|
{
|
||||||
|
var systemCount = await _doctorSummarizeRepository.Where(x => x.DoctorId == inDto.DoctorId && x.TrialId == null).CountAsync();
|
||||||
|
if (systemCount == 0)
|
||||||
|
{
|
||||||
|
inDto.IsMain = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (inDto.TrialId == null && inDto.IsMain)
|
if (inDto.TrialId == null && inDto.IsMain)
|
||||||
{
|
{
|
||||||
|
|
||||||
await _doctorSummarizeRepository.BatchUpdateNoTrackingAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == null,
|
await _doctorSummarizeRepository.BatchUpdateNoTrackingAsync(x => x.DoctorId == inDto.DoctorId && x.TrialId == null,
|
||||||
x => new DoctorSummarize()
|
x => new DoctorSummarize()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue