diff --git a/aucma-common/src/main/java/com/aucma/common/core/domain/entity/SysUser.java b/aucma-common/src/main/java/com/aucma/common/core/domain/entity/SysUser.java index 0a2ea9c..3b29a98 100644 --- a/aucma-common/src/main/java/com/aucma/common/core/domain/entity/SysUser.java +++ b/aucma-common/src/main/java/com/aucma/common/core/domain/entity/SysUser.java @@ -89,6 +89,28 @@ public class SysUser extends BaseEntity /** 角色ID */ private Long roleId; + /** 工位编号 */ + private String stationCode; + + /** 工位名称 */ + private String stationName; + + public String getStationCode() { + return stationCode; + } + + public void setStationCode(String stationCode) { + this.stationCode = stationCode; + } + + public String getStationName() { + return stationName; + } + + public void setStationName(String stationName) { + this.stationName = stationName; + } + public SysUser() { diff --git a/aucma-system/src/main/resources/mapper/system/SysUserMapper.xml b/aucma-system/src/main/resources/mapper/system/SysUserMapper.xml index 78cfde0..f91f8fc 100644 --- a/aucma-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/aucma-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -23,6 +23,8 @@ + + @@ -49,16 +51,19 @@ select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status, - r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status + r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status, u.station_code ,pl.PRODUCT_LINE_NAME station_name from sys_user u left join sys_dept d on u.dept_id = d.dept_id left join sys_user_role ur on u.user_id = ur.user_id left join sys_role r on r.role_id = ur.role_id + left join BASE_PRODUCTLINE pl on pl.PRODUCT_LINE_CODE = u.station_code