This commit is contained in:
77
2024-04-19 00:40:49 +08:00
parent 92b78cf2d5
commit 115eebac8e
8 changed files with 97 additions and 2 deletions

View File

@@ -4,9 +4,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.xq.mapper.UserMapper">
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.user.UserAdminVo">
select t1.*, t2.id as invite_id, t2.nickname as invite_nickname, t2.usercode as invite_usercode
select t1.*, t2.id as invite_id, t2.nickname as invite_nickname, t2.usercode as invite_usercode,
t3.last_login_ip, t3.last_login_time,t3.reg_time
from xq_user t1
left join xq_user t2 on t1.invite_id = t2.id
left join xq_user_login t3 on t1.id = t3.user_id
<where>
<if test="bo.usercode != null and bo.usercode != ''">
and t1.usercode = #{bo.usercode}