修改一致性分析 以及项目部位编辑
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-01 14:54:15 +08:00
parent f446d400a1
commit f158f092ce
11 changed files with 308 additions and 8 deletions
@@ -1106,6 +1106,9 @@ namespace IRaCIS.Core.Application.Contracts
[NotDefault]
public Guid TrialId { get; set; }
public bool IsHandAdd { get; set; } = true;
}
public class TrialBodyPartView
@@ -1114,5 +1117,9 @@ namespace IRaCIS.Core.Application.Contracts
public string Name { get; set; }
public Guid Id { get; set; }
public bool IsHandAdd { get; set; }
}
}
@@ -1318,7 +1318,7 @@ namespace IRaCIS.Core.Application
public async Task<IResponseOutput<List<TrialBodyPartView>>> GetTrialBodyPartList(Guid trialId)
{
var list = await _trialRepository.Where(t => t.Id == trialId).SelectMany(t => t.TrialBodyPartList).Select(t => new TrialBodyPartView() { Code = t.Code, Name = _userInfo.IsEn_Us ? t.Name : t.NameCN }).ToListAsync();
var list = await _trialRepository.Where(t => t.Id == trialId).SelectMany(t => t.TrialBodyPartList).Select(t => new TrialBodyPartView() { Code = t.Code, Name = _userInfo.IsEn_Us ? t.Name : t.NameCN ,Id=t.Id,IsHandAdd=t.IsHandAdd}).ToListAsync();
return ResponseOutput.Ok(list);
}