From 63e8a631f3e17d29a5b0f876ef0ee0122486201f Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 27 Apr 2022 13:47:25 +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 --- IRaCIS.Core.Infra.EFCore/Repository/Repository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Infra.EFCore/Repository/Repository.cs b/IRaCIS.Core.Infra.EFCore/Repository/Repository.cs index 955c6ecbb..6071fad2e 100644 --- a/IRaCIS.Core.Infra.EFCore/Repository/Repository.cs +++ b/IRaCIS.Core.Infra.EFCore/Repository/Repository.cs @@ -647,7 +647,7 @@ namespace IRaCIS.Core.Infra.EFCore public async Task SetEnum(Guid trilaid, string identification, string json) { var list = await (from u in _dbContext.FrontAuditConfig.Where(x => x.Identification == identification) - join p in _dbContext.FrontAuditConfig.Where(x => x.Code != "AuditState" && (x.DictionaryCode != null && x.DictionaryCode != string.Empty && x.DictionaryType != null && x.DictionaryType != string.Empty)) on u.Id equals p.ParentId + join p in _dbContext.FrontAuditConfig.Where(x => x.Code != "AuditState" && x.EnumType=="Date") on u.Id equals p.ParentId select new { Key = p.Code, @@ -944,7 +944,7 @@ namespace IRaCIS.Core.Infra.EFCore public async Task SetDataInspectionDateType(DataInspection Data) { var list = await (from parent in _dbContext.FrontAuditConfig.AsQueryable().Where(x => x.Identification == Data.Identification) - join child in _dbContext.FrontAuditConfig.AsQueryable().Where(x => x.DateType != null && x.DateType != string.Empty) on parent.Id equals child.ParentId + join child in _dbContext.FrontAuditConfig.AsQueryable().Where(x => x.EnumType== "Date") on parent.Id equals child.ParentId select new DateDto() { Code = child.Code,