From 1f0b200ef840ec60315b8905e30cac4e299fcd4c Mon Sep 17 00:00:00 2001 From: "jay.chang" Date: Fri, 15 Mar 2024 14:39:02 +0800 Subject: [PATCH] =?UTF-8?q?[Backend]=E4=BF=AE=E6=AD=A3=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E5=8F=83=E6=95=B8=E5=B0=8E=E8=87=B4=E7=84=A1=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E7=A2=BA=E5=88=AA=E9=99=A4=E6=AC=8A=E9=99=90=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/Controllers/BuildMenuController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Backend/Controllers/BuildMenuController.cs b/Backend/Controllers/BuildMenuController.cs index d0e1aed..ae51322 100644 --- a/Backend/Controllers/BuildMenuController.cs +++ b/Backend/Controllers/BuildMenuController.cs @@ -458,7 +458,7 @@ namespace Backend.Controllers { await backendRepository.PurgeOneByGuidWithCustomDBNameAndTable("building_menu", $"building_tag = '{post.building_tag}' and main_system_tag = '{post.main_system_tag}' and sub_system_tag = '{post.sub_system_tag}'"); var subV = await backendRepository.GetOneAsync(@$"select * from variable where system_value = @sub_system_tag and system_type = @sub_system_type and deleted = 0", new { sub_system_tag = post.sub_system_tag, sub_system_type = sub_system_type }); - var authcode = await backendRepository.GetOneAsync(@$"select AuthCode from auth_page where building_tag = @building_tag and ShowView = @sub_id", new {post.building_tag, subV.id}); + var authcode = await backendRepository.GetOneAsync(@$"select AuthCode from auth_page where building_tag = @building_tag and ShowView = @sub_id", new { building_tag = post.building_tag, sub_id = subV.id}); if (authcode != null) { await backendRepository.PurgeOneByGuidWithCustomDBNameAndTable("role_auth", $" AuthCode = '{authcode}'");