[後端] 修改資料顯示使用join

This commit is contained in:
dev02 2023-09-13 16:33:26 +08:00
parent a7afe09ac1
commit a5ff9bc835

View File

@ -56,7 +56,7 @@ namespace Backend.Controllers
from ( from (
select main_system_tag from building_menu bm where bm.building_tag = @building_tag group by bm.main_system_tag select main_system_tag from building_menu bm where bm.building_tag = @building_tag group by bm.main_system_tag
) bm ) bm
left join variable v on v.system_value = bm.main_system_tag AND v.system_type = @main_system_type and v.deleted = 0 join variable v on v.system_value = bm.main_system_tag AND v.system_type = @main_system_type and v.deleted = 0
ORDER BY v.system_priority ASC"; ORDER BY v.system_priority ASC";
var param = new { building_tag = building_tag, main_system_type = main_system_type }; var param = new { building_tag = building_tag, main_system_type = main_system_type };