diff --git a/sql/bns_houqin_202502_patch/20250216_mgr_role_move_to_sys_role.sql b/sql/bns_houqin_202502_patch/20250216_mgr_role_move_to_sys_role.sql index c7bfeb5..6ad1d96 100644 --- a/sql/bns_houqin_202502_patch/20250216_mgr_role_move_to_sys_role.sql +++ b/sql/bns_houqin_202502_patch/20250216_mgr_role_move_to_sys_role.sql @@ -27,4 +27,5 @@ INSERT INTO SYS_ROLE(role_id, role_name, role_key, role_type, area_id, role_sort INSERT INTO SYS_ROLE(role_id, role_name, role_key, role_type, area_id, role_sort, status, create_by, create_time, update_by, update_time) VALUES (391435841123127296, '综服中心', 'ROLE_ADMIN&&391435841123127296', 1, 378916722880548864, 99, 0, '19805657725', '2024-12-13 12:48:17', '', '2024-12-13 12:48:17'); -update sys_role set company_id = 378915985597403136; \ No newline at end of file +update sys_role set company_id = 378915985597403136; +update sys_role set role_id = role_id % 100000; 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 e0aa1b5..2cbaf9b 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,19 +1,19 @@ -- 管理员已随着 cust_info 转移至 sys_user表,缺少 area_id 代表他们是区域管理员, user_id 是用来在框架中匹配角色的,is_customer 为null可以登录后台 -update sys_user set area_id = 378916886416461824, user_id = 379189599139794944, is_customer = null where cust_id = 379489785460297728; -update sys_user set area_id = 378916886416461824, user_id = 379189931303505920, is_customer = null where cust_id = 379185426889445376; -update sys_user set area_id = 378916807488049152, user_id = 379258529644548096, is_customer = null where cust_id = 379497946028183552; -update sys_user set area_id = 378916849707913216, user_id = 379452675235778560, is_customer = null where cust_id = 379163461193568256; -update sys_user set area_id = 378916886416461824, user_id = 379479475219337216, is_customer = null where cust_id = 379185188929802240; -update sys_user set area_id = 378916807488049152, user_id = 380246658740391936, is_customer = null where cust_id = 379498051389100032; -update sys_user set area_id = 378916807488049152, user_id = 380261841554640896, is_customer = null where cust_id = 379497835516661760; -update sys_user set area_id = 378916849707913216, user_id = 380510419623612416, is_customer = null where cust_id = 379162910842163200; -update sys_user set area_id = 378916849707913216, user_id = 380539768947085312, is_customer = null where cust_id = 379441288094683136; -update sys_user set area_id = 378916849707913216, user_id = 380539944529039360, is_customer = null where cust_id = 379163162596872192; -update sys_user set area_id = 378915229716713472, user_id = 391436598056587264, is_customer = null where cust_id = 379823749551099904; +update sys_user set area_id = 378916886416461824, user_id = 379189599139794944, login_type = '0,1,2' where cust_id = 379489785460297728; +update sys_user set area_id = 378916886416461824, user_id = 379189931303505920, login_type = '0,1,2' where cust_id = 379185426889445376; +update sys_user set area_id = 378916807488049152, user_id = 379258529644548096, login_type = '0,1,2' where cust_id = 379497946028183552; +update sys_user set area_id = 378916849707913216, user_id = 379452675235778560, login_type = '0,1,2' where cust_id = 379163461193568256; +update sys_user set area_id = 378916886416461824, user_id = 379479475219337216, login_type = '0,1,2' where cust_id = 379185188929802240; +update sys_user set area_id = 378916807488049152, user_id = 380246658740391936, login_type = '0,1,2' where cust_id = 379498051389100032; +update sys_user set area_id = 378916807488049152, user_id = 380261841554640896, login_type = '0,1,2' where cust_id = 379497835516661760; +update sys_user set area_id = 378916849707913216, user_id = 380510419623612416, login_type = '0,1,2' where cust_id = 379162910842163200; +update sys_user set area_id = 378916849707913216, user_id = 380539768947085312, login_type = '0,1,2' where cust_id = 379441288094683136; +update sys_user set area_id = 378916849707913216, user_id = 380539944529039360, login_type = '0,1,2' where cust_id = 379163162596872192; +update sys_user set area_id = 378915229716713472, user_id = 391436598056587264, login_type = '0,1,2' where cust_id = 379823749551099904; -- 综服中心管理员的 area_id设成 HFDK(区域),匹配角色中的设置,后面能根据角色给他分配更多的业务数据 update sys_user set area_id = 378916722880548864 where user_name = 'wangchengsong_0945' and area_id = 378915229716713472; - +update sys_user_role set role_id = role_id % 100000; -- select user_id, username as user_name,password,real_name as nick_name, -- phone as phonenumber,avatar,cust_id,area_id,