修改
This commit is contained in:
@@ -30,6 +30,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
trialExperience.GCP = doctor.GCP;
|
||||
trialExperience.Id = doctor.Id;
|
||||
trialExperience.GCPTime = doctor.GCPTime;
|
||||
trialExperience.GCPAgencies = doctor.GCPAgencies;
|
||||
trialExperience.OtherClinicalExperience = doctor.OtherClinicalExperience ?? "";
|
||||
trialExperience.OtherClinicalExperienceCN = doctor.OtherClinicalExperienceCN ?? "";
|
||||
var attachment = await _attachmentRepository.FirstOrDefaultAsync(t => t.Id == doctor.GCPId);
|
||||
@@ -38,6 +40,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
trialExperience.ExpiryDateStr = attachment.ExpiryDate == null ? "" : attachment.ExpiryDate.Value.ToString("yyyy-MM-dd HH:mm");
|
||||
|
||||
trialExperience.Path = attachment.Path;
|
||||
|
||||
trialExperience.GCPFullPath = attachment.Path + "?access_token=" + _userInfo.UserToken;
|
||||
trialExperience.Type = attachment.Type;
|
||||
trialExperience.FileName = attachment.FileName;
|
||||
@@ -133,6 +136,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
var successs = await _doctorRepository.BatchUpdateNoTrackingAsync(o => o.Id == updateGCPExperienceParam.Id, u => new Doctor()
|
||||
{
|
||||
GCP = updateGCPExperienceParam.GCP,
|
||||
GCPAgencies= updateGCPExperienceParam.GCPAgencies,
|
||||
GCPTime= updateGCPExperienceParam.GCPTime,
|
||||
GCPId = (updateGCPExperienceParam.GCP == 0 || updateGCPExperienceParam.GCPId == null) ? Guid.Empty : updateGCPExperienceParam.GCPId!.Value
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user