From 9931d6f56816aecb09333cef2d12777c08793547 Mon Sep 17 00:00:00 2001
From: xin <1099200748@qq.com>
Date: Wed, 04 Jun 2025 21:41:48 +0800
Subject: [PATCH] 系统:订阅消息列表

---
 oying-system/src/main/resources/mapper/system/UserMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/oying-system/src/main/resources/mapper/system/UserMapper.xml b/oying-system/src/main/resources/mapper/system/UserMapper.xml
index a71e0a3..93bd442 100644
--- a/oying-system/src/main/resources/mapper/system/UserMapper.xml
+++ b/oying-system/src/main/resources/mapper/system/UserMapper.xml
@@ -116,6 +116,15 @@
         where u.username = #{username}
     </select>
 
+    <select id="findByOpenid" resultMap="BaseResultMap">
+        select
+        u.password user_password, u.is_admin user_is_admin,
+        <include refid="Base_Column_List"/>
+        from sys_user u
+        left join sys_dept d on u.dept_id = d.dept_id
+        where u.openid = #{openid}
+    </select>
+
     <select id="findByEmail" resultType="com.oying.modules.system.domain.User">
         select user_id as id, username from sys_user
         where email = #{email}

--
Gitblit v1.9.3