From 227621db6b291056a0b8ffbecacf0a47b619b5c7 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Sat, 7 May 2022 14:54:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Common/DTO/FrontAuditConfigViewModel.cs | 2 +- .../Service/Common/FrontAuditConfigService.cs | 2 +- IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) 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))) {