xin
2025-06-04 9931d6f56816aecb09333cef2d12777c08793547
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}