From 268766964a996d8b940a543e8feb133e1ddcf2ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=86=AF=E5=87=AF?= <371894675@qq.com>
Date: Thu, 2 Nov 2023 23:29:36 +0800
Subject: [PATCH] upd mapper.xml
---
.../com/health/system/server/controller/SysUserController.java | 1 +
.../src/main/resources/mapper/system/SysUserMapper.xml | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/base-system-server/src/main/java/com/health/system/server/controller/SysUserController.java b/base-system-server/src/main/java/com/health/system/server/controller/SysUserController.java
index 9cfbc03..c7ddc94 100644
--- a/base-system-server/src/main/java/com/health/system/server/controller/SysUserController.java
+++ b/base-system-server/src/main/java/com/health/system/server/controller/SysUserController.java
@@ -129,6 +129,7 @@ public class SysUserController extends BaseController
System.out.println("收到请求邮箱是:"+email);
//先根据邮箱查询有无此人user
SysUser sysUser = userService.selectByEmail(email);
+ System.out.println(sysUser);
if (StringUtils.isNull(sysUser)){
return Result.error("邮箱不存在");
}
diff --git a/base-system-server/src/main/resources/mapper/system/SysUserMapper.xml b/base-system-server/src/main/resources/mapper/system/SysUserMapper.xml
index 397da24..09479d4 100644
--- a/base-system-server/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/base-system-server/src/main/resources/mapper/system/SysUserMapper.xml
@@ -58,11 +58,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
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,m.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 tb_moreover m on u.dept_id = m.id