From ed527f3fff0f9b8a53d792fdc8ab97644e959d44 Mon Sep 17 00:00:00 2001 From: "{872297557@qq.com}" <872297557@qq.com> Date: Tue, 20 Dec 2022 18:19:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A8=BD=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Inspection/FrontAuditConfigService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs index 5cf3c16ef..9de5f6c63 100644 --- a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs +++ b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs @@ -673,12 +673,12 @@ namespace IRaCIS.Core.Application.Service { para += para == string.Empty ? $"'{v.ToString()}'" : $",'{v.ToString()}'"; } - sql = $"select {ForeignKeyText} Text from {Table} where {ForeignKeyValue} in (@para)"; + sql = $"select {ForeignKeyText} Text from [{Table}] where {ForeignKeyValue} in (@para)"; } else { para = $"{JsonData["item"].ToString()}"; - sql = $"select {ForeignKeyText} Text from {Table} where {ForeignKeyValue} = @para"; + sql = $"select {ForeignKeyText} Text from [{Table}] where {ForeignKeyValue} = @para"; } SqlParameter[] paravalue = new SqlParameter[] { new SqlParameter("@para",para)