修改中心调研拷贝数据逻辑错误
parent
585b665b53
commit
d575d8ac73
|
@ -331,8 +331,12 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
copy.TrialSiteEquipmentSurveyList = currentLatest.TrialSiteEquipmentSurveyList.Clone();
|
||||
copy.TrialSiteEquipmentSurveyList.ForEach(t => { t.Id = Guid.Empty; t.CreateTime = DateTime.Now; });
|
||||
|
||||
//锁定了的话,就不拷贝
|
||||
if(currentLatest.State!= TrialSiteSurveyEnum.PMCreatedAndLock)
|
||||
{
|
||||
copy.TrialSiteUserSurveyList = currentLatest.TrialSiteUserSurveyList.Clone().Where(t => t.IsHistoryUser == false).ToList();
|
||||
copy.TrialSiteUserSurveyList.ForEach(t => { t.Id = Guid.Empty; t.IsGenerateSuccess = false; t.CreateTime = DateTime.Now; });
|
||||
}
|
||||
|
||||
//从项目site 中找到已存在的 加到历史人员中
|
||||
|
||||
|
|
Loading…
Reference in New Issue