Compare commits
No commits in common. "53544001a740ed6dde602e2e092271422e3187fb" and "29f86482879a413c9071def9f4d9b4900677731d" have entirely different histories.
53544001a7
...
29f8648287
|
|
@ -323,7 +323,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
{
|
{
|
||||||
//CRC只看到他负责的
|
//CRC只看到他负责的
|
||||||
|
|
||||||
var list = await _trialSiteRepository.Where(t => t.TrialId == trialId).IgnoreQueryFilters()
|
var list = await _trialSiteRepository.Where(t => t.TrialId == trialId)
|
||||||
.WhereIf(_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CRA, t => t.CRCUserList.Any(t => t.UserId == _userInfo.Id))
|
.WhereIf(_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CRA, t => t.CRCUserList.Any(t => t.UserId == _userInfo.Id))
|
||||||
.ProjectTo<TrialSiteForSelect>(_mapper.ConfigurationProvider).OrderBy(t => t.TrialSiteCode).ToListAsync();
|
.ProjectTo<TrialSiteForSelect>(_mapper.ConfigurationProvider).OrderBy(t => t.TrialSiteCode).ToListAsync();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1543,7 +1543,6 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
}
|
}
|
||||||
await InsertInspection<TrialSite>(entity, type, x => new InspectionConvertDTO()
|
await InsertInspection<TrialSite>(entity, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
IsDistinctionInterface= type == AuditOpt.Update ? true : false,
|
|
||||||
TrialId = x.TrialId,
|
TrialId = x.TrialId,
|
||||||
|
|
||||||
ObjectRelationParentId = x.TrialId
|
ObjectRelationParentId = x.TrialId
|
||||||
|
|
@ -1594,7 +1593,6 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
await InsertInspection<TrialSiteUser>(item.Entity as TrialSiteUser, type, x => new InspectionConvertDTO
|
await InsertInspection<TrialSiteUser>(item.Entity as TrialSiteUser, type, x => new InspectionConvertDTO
|
||||||
{
|
{
|
||||||
IsDistinctionInterface= type == AuditOpt.Update ? true : false,
|
|
||||||
TrialId = x.TrialId,
|
TrialId = x.TrialId,
|
||||||
ObjectRelationParentId = entity.TrialSite.Id,
|
ObjectRelationParentId = entity.TrialSite.Id,
|
||||||
ObjectRelationParentId2 = x.UserId,
|
ObjectRelationParentId2 = x.UserId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue