[後端] 修改資料顯示使用join
This commit is contained in:
parent
a7afe09ac1
commit
a5ff9bc835
@ -56,7 +56,7 @@ namespace Backend.Controllers
|
||||
from (
|
||||
select main_system_tag from building_menu bm where bm.building_tag = @building_tag group by bm.main_system_tag
|
||||
) 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";
|
||||
|
||||
var param = new { building_tag = building_tag, main_system_type = main_system_type };
|
||||
|
Loading…
Reference in New Issue
Block a user