This commit is contained in:
77
2024-08-03 19:19:04 +08:00
parent 78bd8b6593
commit cf9081d69f
9 changed files with 262 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cai.mapper.AccountBlackMapper">
<select id="pageUserAdmin" resultType="com.ruoyi.cai.dto.admin.vo.UserAdminVo">
select t1.*,t2.last_login_ip,t2.last_login_time,t2.reg_ip,t2.reg_time,
t5.card_account,t5.card_name,
t4.status as online_status
from cai_user t1
left join cai_user_info t2 on t1.id = t2.user_id
left join cai_user_online t4 on t1.id = t4.user_id
join cai_account_cash t5 on t1.id = t5.user_id
where t5.card_account = #{cardAccount} and t5.card_name = #{cardName}
order by t2.last_login_time desc
</select>
</mapper>