[BE] 資料同步修改 條件變成篩選 EL ES
This commit is contained in:
parent
23485396df
commit
495c7b0293
@ -143,12 +143,12 @@ namespace Repository.BackendRepository.Implement
|
||||
{
|
||||
sb.Append($@" -- tag 第二碼為小類(除了安全系統之外)
|
||||
update import_niagara_tag set device_name_tag = device_system_tag
|
||||
where (device_system_tag <> 'S' and device_system_tag <> 'CWB' and device_system_tag <> 'B');
|
||||
where (device_system_tag <> 'S' and device_system_tag <> 'CWB' and (device_name_tag <> 'EL' or device_name_tag <> 'ES'));
|
||||
|
||||
update import_niagara_tag a join dic_system b
|
||||
on a.device_name_tag COLLATE utf8mb4_general_ci = b.s2_code
|
||||
set device_system_tag = b.s1_code -- tag 第二碼為小類(除了安全系統之外)
|
||||
where (device_system_tag <> 'S' and device_system_tag <> 'CWB' and device_system_tag <> 'B'); -- 安全系統 第二段大類 第四段小類");
|
||||
where (device_system_tag <> 'S' and device_system_tag <> 'CWB' and (device_name_tag <> 'EL' or device_name_tag <> 'ES')); -- 安全系統 第二段大類 第四段小類");
|
||||
await conn.ExecuteAsync(sb.ToString());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user