[後端] 調整後台同步building_menu, 調整前台選單api資料
This commit is contained in:
parent
a5ff9bc835
commit
5931e057b0
@ -196,7 +196,7 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
where ap.AuthType = 1
|
where ap.AuthType = 1
|
||||||
) shower on shower.building_tag = me.building_tag and shower.ShowView = v2.id
|
) shower on shower.building_tag = me.building_tag and shower.ShowView = v2.id
|
||||||
join building b on b.building_tag = me.building_tag and b.deleted = 0 and shower.building_tag = b.building_tag
|
join building b on b.building_tag = me.building_tag and b.deleted = 0 and shower.building_tag = b.building_tag
|
||||||
where me.is_link = 1
|
where me.is_link > 0
|
||||||
order by b.priority, v1.system_priority, me.priority, v2.system_priority, v2.created_at DESC", new { Account = account });
|
order by b.priority, v1.system_priority, me.priority, v2.system_priority, v2.created_at DESC", new { Account = account });
|
||||||
|
|
||||||
var floorsql = await backendRepository.GetAllAsync<Floorsql>(@"
|
var floorsql = await backendRepository.GetAllAsync<Floorsql>(@"
|
||||||
|
@ -702,7 +702,7 @@ namespace Repository.BackendRepository.Implement
|
|||||||
) AS a ON b.building_tag COLLATE utf8mb4_0900_ai_ci = a.device_building_tag COLLATE utf8mb4_0900_ai_ci
|
) AS a ON b.building_tag COLLATE utf8mb4_0900_ai_ci = a.device_building_tag COLLATE utf8mb4_0900_ai_ci
|
||||||
and a.device_system_tag COLLATE utf8mb4_0900_ai_ci = b.main_system_tag COLLATE utf8mb4_0900_ai_ci and a.device_name_tag COLLATE utf8mb4_0900_ai_ci = b.sub_system_tag COLLATE utf8mb4_0900_ai_ci
|
and a.device_system_tag COLLATE utf8mb4_0900_ai_ci = b.main_system_tag COLLATE utf8mb4_0900_ai_ci and a.device_name_tag COLLATE utf8mb4_0900_ai_ci = b.sub_system_tag COLLATE utf8mb4_0900_ai_ci
|
||||||
SET b.is_link = 0
|
SET b.is_link = 0
|
||||||
WHERE a.device_building_tag IS NULL");
|
WHERE a.device_building_tag IS NULL and b.is_link < 2");
|
||||||
using (TransactionScope scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
|
using (TransactionScope scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
|
||||||
{
|
{
|
||||||
await conn.ExecuteAsync(sb.ToString());
|
await conn.ExecuteAsync(sb.ToString());
|
||||||
|
Loading…
Reference in New Issue
Block a user