新增forgeImportLog,資料錯誤記Log,其他資料繼續匯入

系統監控選單新增判斷buildmenu.is_link = 1
This commit is contained in:
史萬澤 2023-03-02 11:36:47 +08:00
parent 4349620dc9
commit fb37ac3014
2 changed files with 682 additions and 674 deletions

File diff suppressed because it is too large Load Diff

View File

@ -75,7 +75,7 @@ namespace FrontendWebApi.ApiControllers
left join device_kind dk on v1.system_value = dk.device_system_tag and v2.system_value = dk.device_name_tag and dk.device_building_tag = @building_tag
-- left join device_item di on v2.system_value = di.device_name_tag and v1.system_value = di.device_system_tag and di.deleted = 0
join (
select distinct main_system_tag, sub_system_tag from building_menu where building_tag = @building_tag
select distinct main_system_tag, sub_system_tag from building_menu where building_tag = @building_tag and is_link = 1
) as bm on v2.system_value = bm.sub_system_tag and v1.system_value = bm.main_system_tag
where c.account = @account
order by v2.system_priority", new { @account = myUser.account, @sub_system_type = sub_system_type, @main_system_type = main_system_type, @building_tag = fd.building_tag });