14 lines
690 B
MySQL
14 lines
690 B
MySQL
|
|
update hrsa_salary_sob_item set item_hide = 0
|
||
|
|
GO
|
||
|
|
|
||
|
|
update hrsa_salary_sob_item_group set item_hide = 0
|
||
|
|
GO
|
||
|
|
|
||
|
|
UPDATE hrsa_salary_sob_item SET item_hide = b.item_hide FROM hrsa_salary_sob_item a INNER JOIN hrsa_salary_item_hide b ON a.salary_item_id = b.salary_item_id and a.salary_sob_id = b.salary_sob_id
|
||
|
|
WHERE a.delete_type=0 and b.delete_type=0 and b.is_group=0 and b.item_hide is not null
|
||
|
|
GO
|
||
|
|
|
||
|
|
|
||
|
|
UPDATE hrsa_salary_sob_item_group SET item_hide = b.item_hide FROM hrsa_salary_sob_item_group a INNER JOIN hrsa_salary_item_hide b ON a.id = b.salary_item_id and a.salary_sob_id = b.salary_sob_id
|
||
|
|
WHERE a.delete_type=0 and b.delete_type=0 and b.is_group=1 and b.item_hide is not null
|
||
|
|
GO
|