系统数据不区分接口
parent
66e9139ecd
commit
b15505f2ba
|
@ -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 userTypeNameList = await _dbContext.UserType.Where(x => needConfirmedUserTypeIdList.Contains(x.Id)).Select(x => x.UserTypeShortName).ToListAsync();
|
||||||
var userTypeName = string.Join(",", userTypeNameList);
|
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,
|
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 usertypeNames = await _dbContext.UserType.Where(x => needConfirmedUserTypeIdList.Contains(x.Id)).Select(x => x.UserTypeShortName).ToListAsync();
|
||||||
var usertypeName = string.Join(",", usertypeNames);
|
var usertypeName = string.Join(",", usertypeNames);
|
||||||
await InsertInspection<TrialDocument>(entity, type, x => new InspectionConvertDTO()
|
await InsertInspection<TrialDocument>(entity, type, x => new InspectionConvertDTO()
|
||||||
{ ObjectRelationParentId = x.TrialId },
|
{
|
||||||
|
IsDistinctionInterface=true,
|
||||||
|
ObjectRelationParentId = x.TrialId
|
||||||
|
},
|
||||||
new
|
new
|
||||||
{
|
{
|
||||||
NeedConfirmedUserType = usertypeName,
|
NeedConfirmedUserType = usertypeName,
|
||||||
|
@ -532,7 +538,10 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
// 签名模板
|
// 签名模板
|
||||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(SystemBasicData)))
|
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
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 项目
|
// 项目
|
||||||
|
|
Loading…
Reference in New Issue