Files
geg-gas-pcitc/script/20240914/部门表修改-mysql.sql
2025-02-08 17:51:37 +08:00

51 lines
1.6 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

ALTER TABLE xjr_department ADD COLUMN equal_dept_id bigint COMMENT '等同部门id对平台公司是所管理板块注意造成死循环';
UPDATE xjr_department
SET equal_dept_id=432451392312531611
WHERE id=230227214110393142;
UPDATE xjr_department
SET equal_dept_id=301091911701601041
WHERE id=181164254207252249;
UPDATE xjr_department
SET equal_dept_id=231832551822043153
WHERE id=102549941291661721;
UPDATE xjr_department
SET equal_dept_id=233150193761041949
WHERE id=175215222631309485;
UPDATE xjr_department
SET equal_dept_id=206761142156213912
WHERE id=232179249126164255;
UPDATE xjr_department
SET equal_dept_id=106255231556925120
WHERE id=142518200832281161;
UPDATE xjr_department
SET equal_dept_id=189174211117302364
WHERE id=117221186201183246;
UPDATE xjr_department
SET equal_dept_id=181164254207252249
WHERE id=301091911701601041;
UPDATE xjr_department
SET equal_dept_id=102549941291661721
WHERE id=231832551822043153;
UPDATE xjr_department
SET equal_dept_id=232179249126164255
WHERE id=206761142156213912;
UPDATE xjr_department
SET equal_dept_id=142518200832281161
WHERE id=106255231556925120;
UPDATE xjr_department
SET equal_dept_id=230227214110393142
WHERE id=432451392312531611;
UPDATE xjr_department
SET equal_dept_id=175215222631309485
WHERE id=233150193761041949;
UPDATE xjr_department
SET equal_dept_id=117221186201183246
WHERE id=189174211117302364;
ALTER TABLE xjr_department ADD COLUMN company_lvl integer COMMENT '如果是公司,记录所在层级';
ALTER TABLE xjr_department MODIFY COLUMN area_id varchar(100) COMMENT '所在区域id字符串区域表id';