From dad16cb36afd2c00feb4dd5c5890bbedfd281387 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Wed, 19 Feb 2025 12:50:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bonus/system/api/domain/SysUser.java | 13 +++++++++++++ .../main/resources/mapper/system/SysUserMapper.xml | 2 ++ .../20250216_mgr_user_move_to_sys_user.sql | 2 ++ 3 files changed, 17 insertions(+) diff --git a/bonus-api/bonus-api-system/src/main/java/com/bonus/system/api/domain/SysUser.java b/bonus-api/bonus-api-system/src/main/java/com/bonus/system/api/domain/SysUser.java index 65cd9a1..e27d2db 100644 --- a/bonus-api/bonus-api-system/src/main/java/com/bonus/system/api/domain/SysUser.java +++ b/bonus-api/bonus-api-system/src/main/java/com/bonus/system/api/domain/SysUser.java @@ -62,6 +62,11 @@ public class SysUser extends BaseEntity { @JsonFormat(shape = JsonFormat.Shape.STRING) private Long areaId; + /** + * 是否客户,判断是否能够登录后台管理页面 + */ + private String isCustomer; + /** * 用户账号 */ @@ -242,6 +247,14 @@ public class SysUser extends BaseEntity { this.areaId = areaId; } + public String getIsCustomer() { + return isCustomer; + } + + public void setIsCustomer(String isCustomer) { + this.isCustomer = isCustomer; + } + @Xss(message = "用户昵称不能包含脚本字符") @Size(min = 0, max = 200, message = "用户昵称长度不能超过200个字符") public String getNickName() { diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml index 6d96a04..c4297ca 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -30,6 +30,7 @@ + @@ -102,6 +103,7 @@ r.status as role_status, u.login_type, u.is_built_in, + u.is_customer, u.cust_id, u.cust_num from sys_user u 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 e2c0228..e0aa1b5 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 @@ -11,6 +11,8 @@ update sys_user set area_id = 378916849707913216, user_id = 380539768947085312, 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; +-- 综服中心管理员的 area_id设成 HFDK(区域),匹配角色中的设置,后面能根据角色给他分配更多的业务数据 +update sys_user set area_id = 378916722880548864 where user_name = 'wangchengsong_0945' and area_id = 378915229716713472; -- select user_id, username as user_name,password,real_name as nick_name,