From cfc996db66b1cfe9085fbd57477db54d37bdf890 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Mon, 17 Feb 2025 15:14:07 +0800 Subject: [PATCH] sql --- .../20250216_mgr_user_move_to_sys_user.sql | 22 +++++++++---------- ...17_mgr_user_role_move_to_sys_user_role.sql | 19 ++++++++++++++++ 2 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 sql/bns_houqin_202502_patch/20250217_mgr_user_role_move_to_sys_user_role.sql diff --git a/sql/bns_houqin_202502_patch/20250216_mgr_user_move_to_sys_user.sql b/sql/bns_houqin_202502_patch/20250216_mgr_user_move_to_sys_user.sql index 30b66ab..ca2a7fc 100644 --- a/sql/bns_houqin_202502_patch/20250216_mgr_user_move_to_sys_user.sql +++ b/sql/bns_houqin_202502_patch/20250216_mgr_user_move_to_sys_user.sql @@ -1,15 +1,15 @@ -- 管理员已随着 cust_info 转移至 sys_user表,唯一缺少的就是 area_id 代表他们是区域管理员 -update sys_user set area_id = 378916886416461824 where cust_id = 379489785460297728; -update sys_user set area_id = 378916886416461824 where cust_id = 379185426889445376; -update sys_user set area_id = 378916807488049152 where cust_id = 379497946028183552; -update sys_user set area_id = 378916849707913216 where cust_id = 379163461193568256; -update sys_user set area_id = 378916886416461824 where cust_id = 379185188929802240; -update sys_user set area_id = 378916807488049152 where cust_id = 379498051389100032; -update sys_user set area_id = 378916807488049152 where cust_id = 379497835516661760; -update sys_user set area_id = 378916849707913216 where cust_id = 379162910842163200; -update sys_user set area_id = 378916849707913216 where cust_id = 379441288094683136; -update sys_user set area_id = 378916849707913216 where cust_id = 379163162596872192; -update sys_user set area_id = 378915229716713472 where cust_id = 379823749551099904; +update sys_user set area_id = 378916886416461824, user_id = 379189599139794944 where cust_id = 379489785460297728; +update sys_user set area_id = 378916886416461824, user_id = 379189931303505920 where cust_id = 379185426889445376; +update sys_user set area_id = 378916807488049152, user_id = 379258529644548096 where cust_id = 379497946028183552; +update sys_user set area_id = 378916849707913216, user_id = 379452675235778560 where cust_id = 379163461193568256; +update sys_user set area_id = 378916886416461824, user_id = 379479475219337216 where cust_id = 379185188929802240; +update sys_user set area_id = 378916807488049152, user_id = 380246658740391936 where cust_id = 379498051389100032; +update sys_user set area_id = 378916807488049152, user_id = 380261841554640896 where cust_id = 379497835516661760; +update sys_user set area_id = 378916849707913216, user_id = 380510419623612416 where cust_id = 379162910842163200; +update sys_user set area_id = 378916849707913216, user_id = 380539768947085312 where cust_id = 379441288094683136; +update sys_user set area_id = 378916849707913216, user_id = 380539944529039360 where cust_id = 379163162596872192; +update sys_user set area_id = 378915229716713472, user_id = 391436598056587264 where cust_id = 379823749551099904; diff --git a/sql/bns_houqin_202502_patch/20250217_mgr_user_role_move_to_sys_user_role.sql b/sql/bns_houqin_202502_patch/20250217_mgr_user_role_move_to_sys_user_role.sql new file mode 100644 index 0000000..0fbabc4 --- /dev/null +++ b/sql/bns_houqin_202502_patch/20250217_mgr_user_role_move_to_sys_user_role.sql @@ -0,0 +1,19 @@ +INSERT INTO sys_user_role (user_id, role_id) VALUES (378915988030099456, 378915986868277248); +INSERT INTO sys_user_role (user_id, role_id) VALUES (379189599139794944, 379184733143175168); +INSERT INTO sys_user_role (user_id, role_id) VALUES (379189931303505920, 383116772808593408); +INSERT INTO sys_user_role (user_id, role_id) VALUES (379189931303505920, 383116918359330816); +INSERT INTO sys_user_role (user_id, role_id) VALUES (379258529644548096, 383477531031900160); +INSERT INTO sys_user_role (user_id, role_id) VALUES (379258529644548096, 383477651244847104); +INSERT INTO sys_user_role (user_id, role_id) VALUES (379452675235778560, 379181814666760192); +INSERT INTO sys_user_role (user_id, role_id) VALUES (379452675235778560, 379452240479391744); +INSERT INTO sys_user_role (user_id, role_id) VALUES (379479475219337216, 380196444893614080); +INSERT INTO sys_user_role (user_id, role_id) VALUES (380246658740391936, 379182932578799616); +INSERT INTO sys_user_role (user_id, role_id) VALUES (380261841554640896, 379185399521611776); +INSERT INTO sys_user_role (user_id, role_id) VALUES (380261841554640896, 380657128215416832); +INSERT INTO sys_user_role (user_id, role_id) VALUES (380510419623612416, 383066643296686080); +INSERT INTO sys_user_role (user_id, role_id) VALUES (380510419623612416, 383066920754089984); +INSERT INTO sys_user_role (user_id, role_id) VALUES (380539768947085312, 380539602458382336); +INSERT INTO sys_user_role (user_id, role_id) VALUES (380539768947085312, 383066643296686080); +INSERT INTO sys_user_role (user_id, role_id) VALUES (380539944529039360, 383066643296686080); +INSERT INTO sys_user_role (user_id, role_id) VALUES (380539944529039360, 383066920754089984); +INSERT INTO sys_user_role (user_id, role_id) VALUES (391436598056587264, 391435841123127296);