修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
72ff2bbf15
commit
1f7b96d9f0
|
|
@ -154,7 +154,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
{
|
{
|
||||||
isVirtual = await _trialRepository.Where(x => x.Id == inDto.TrialId).Select(x => x.TrialType != TrialType.OfficialTrial).FirstNotNullAsync();
|
isVirtual = await _trialRepository.Where(x => x.Id == inDto.TrialId).Select(x => x.TrialType != TrialType.OfficialTrial).FirstNotNullAsync();
|
||||||
|
|
||||||
await _doctorRepository.UpdatePartialFromQueryAsync(x => x.Id == dockerInfo.Id, y => new Doctor()
|
await _doctorRepository.BatchUpdateNoTrackingAsync(x => x.Id == dockerInfo.Id, y => new Doctor()
|
||||||
{
|
{
|
||||||
IsVirtual = isVirtual,
|
IsVirtual = isVirtual,
|
||||||
AcceptingNewTrial = inDto.TrialId == null ? false : true,
|
AcceptingNewTrial = inDto.TrialId == null ? false : true,
|
||||||
|
|
@ -245,6 +245,17 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
{
|
{
|
||||||
result.DoctorId = dockerInfo.Id;
|
result.DoctorId = dockerInfo.Id;
|
||||||
result.ReviewStatus = dockerInfo.ReviewStatus;
|
result.ReviewStatus = dockerInfo.ReviewStatus;
|
||||||
|
|
||||||
|
if(inDto.TrialId != null)
|
||||||
|
{
|
||||||
|
var isVirtual = await _trialRepository.Where(x => x.Id == inDto.TrialId).Select(x => x.TrialType != TrialType.OfficialTrial).FirstNotNullAsync();
|
||||||
|
await _doctorRepository.BatchUpdateNoTrackingAsync(x => x.Id == dockerInfo.Id, y => new Doctor()
|
||||||
|
{
|
||||||
|
IsVirtual = isVirtual,
|
||||||
|
AcceptingNewTrial = inDto.TrialId == null ? false : true,
|
||||||
|
CooperateStatus = inDto.TrialId == null ? ContractorStatusEnum.Noncooperation : ContractorStatusEnum.Cooperation,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue