修改非dicom 检查编号重复问题
parent
6dc1ef5728
commit
1867277e1b
|
@ -86,10 +86,12 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
//默认会是0
|
||||
var code = await _noneDicomStudyRepository.Where(t => t.TrialId == addOrEditNoneDicomStudy.TrialId).Select(x => x.Code).DefaultIfEmpty().MaxAsync();
|
||||
|
||||
addOrEditNoneDicomStudy.Code = code + 1;
|
||||
|
||||
optEntity = await _noneDicomStudyRepository.InsertFromDTOAsync(addOrEditNoneDicomStudy);
|
||||
|
||||
optEntity.Code = code + 1;
|
||||
|
||||
|
||||
optEntity.StudyCode = AppSettings.GetCodeStr(optEntity.Code, nameof(NoneDicomStudy));
|
||||
|
||||
}
|
||||
|
|
|
@ -52,8 +52,6 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
public DateTime ImageDate { get; set; }
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public int Code { get; set; }
|
||||
|
||||
public string StudyName { get; set; }
|
||||
|
||||
public string VideoName { get; set; } = string.Empty;
|
||||
|
|
Loading…
Reference in New Issue