系统数据不区分接口

Uat_Study
hang 2022-08-30 09:46:55 +08:00
parent 66e9139ecd
commit b15505f2ba
1 changed files with 12 additions and 3 deletions

View File

@ -469,7 +469,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var userTypeNameList = await _dbContext.UserType.Where(x => needConfirmedUserTypeIdList.Contains(x.Id)).Select(x => x.UserTypeShortName).ToListAsync();
var userTypeName = string.Join(",", userTypeNameList);
await InsertInspection<SystemDocument>(entity, type, null, new
await InsertInspection<SystemDocument>(entity, type, x => new InspectionConvertDTO()
{
IsDistinctionInterface = true
}, new
{
NeedConfirmedUserType = userTypeName,
});
@ -495,7 +498,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var usertypeNames = await _dbContext.UserType.Where(x => needConfirmedUserTypeIdList.Contains(x.Id)).Select(x => x.UserTypeShortName).ToListAsync();
var usertypeName = string.Join(",", usertypeNames);
await InsertInspection<TrialDocument>(entity, type, x => new InspectionConvertDTO()
{ ObjectRelationParentId = x.TrialId },
{
IsDistinctionInterface=true,
ObjectRelationParentId = x.TrialId
},
new
{
NeedConfirmedUserType = usertypeName,
@ -532,7 +538,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common
// 签名模板
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(SystemBasicData)))
{
await InsertInspection<SystemBasicData>(item.Entity as SystemBasicData, type);
await InsertInspection<SystemBasicData>(item.Entity as SystemBasicData, type, x => new InspectionConvertDTO()
{
IsDistinctionInterface=false
});
}
// 项目