Merge branch 'Test.IRC' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test.IRC
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1479,11 +1479,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||
|
||||
|
||||
// 一致性核查文件 是否需要单独一个表记录?
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(ConsistencyCheckFile)))
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(InspectionFile)))
|
||||
{
|
||||
var type = GetEntityAuditOpt(item);
|
||||
|
||||
await InsertInspection<ConsistencyCheckFile>(item.Entity as ConsistencyCheckFile, type, x => new InspectionConvertDTO()
|
||||
await InsertInspection<InspectionFile>(item.Entity as InspectionFile, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
ObjectRelationParentId = x.TrialId
|
||||
|
||||
@@ -1534,6 +1534,30 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||
|
||||
});
|
||||
}
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialSiteUserSurvey)))
|
||||
{
|
||||
var type = GetEntityAuditOpt(item);
|
||||
|
||||
var entity = item.Entity as TrialSiteUserSurvey;
|
||||
|
||||
await InsertInspection<TrialSiteUserSurvey>(entity, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
IsDistinctionInterface = false
|
||||
|
||||
});
|
||||
}
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialSiteEquipmentSurvey)))
|
||||
{
|
||||
var type = GetEntityAuditOpt(item);
|
||||
|
||||
var entity = item.Entity as TrialSiteEquipmentSurvey;
|
||||
|
||||
await InsertInspection<TrialSiteEquipmentSurvey>(entity, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
IsDistinctionInterface = false
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -495,7 +495,7 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||
|
||||
public virtual DbSet<FrontAuditConfig> FrontAuditConfig { get; set; }
|
||||
|
||||
public virtual DbSet<ConsistencyCheckFile> ConsistencyCheckFile { get; set; }
|
||||
public virtual DbSet<InspectionFile> InspectionFile { get; set; }
|
||||
|
||||
public virtual DbSet<CommonDocument> CommonDocument { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user