diff --git a/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs index ddf2a7d6c..d3603a6ea 100644 --- a/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs +++ b/IRaCIS.Core.Application/Service/Common/DTO/FrontAuditConfigViewModel.cs @@ -45,7 +45,7 @@ namespace IRaCIS.Core.Application.ViewModel { - public string Identification { get; set; } + public Guid Id { get; set; } } diff --git a/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs index 3598e4295..e40faf00d 100644 --- a/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs +++ b/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs @@ -122,7 +122,7 @@ namespace IRaCIS.Core.Application.Service [HttpPost] public async Task> GetChildrenItem(GetChildrenItem item) { - var list =await (from data in _repository.GetQueryable().Where(x => x.Identification == item.Identification&&x.Identification!=string.Empty&&x.Identification!=null) + var list =await (from data in _repository.GetQueryable().Where(x => x.Id == item.Id) join childrenType in _repository.GetQueryable() on data.Id equals childrenType.ParentId select childrenType).OrderBy(x=>x.Sort).ToListAsync(); return list; diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index dd0c68cce..433262897 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -234,6 +234,17 @@ namespace IRaCIS.Core.Infra.EFCore.Common }); } + + //质疑 + foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(QCChallengeDialog))) + { + type = _userInfo.UserTypeShortName + "/" + type; + await InsertInspection(item, type, x => new DataInspection() + { + GeneralId = x.Id, + }); + } + //一致性核查 foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(CheckChallengeDialog))) {