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)