30 lines
1.0 KiB
XML
30 lines
1.0 KiB
XML
<?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.UserForbidMapper">
|
|
|
|
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.UserForbidAdminVo">
|
|
select t1.*,t2.usercode,t2.mobile,t2.avatar,t2.nickname
|
|
from cai_user_forbid t1
|
|
left join cai_user t2 on t1.member = t2.usercode and t1.type = 1
|
|
<where>
|
|
<if test="bo.mobile != null and bo.mobile != ''">
|
|
and t2.mobile = #{bo.mobile}
|
|
</if>
|
|
<if test="bo.usercode != null and bo.usercode != ''">
|
|
and t2.usercode = #{bo.usercode}
|
|
</if>
|
|
<if test="bo.type != null">
|
|
and t1.type = #{bo.type}
|
|
</if>
|
|
<if test="bo.member != null and bo.member != ''">
|
|
and t1.member = #{bo.member}
|
|
</if>
|
|
</where>
|
|
order by t1.create_time desc
|
|
</select>
|
|
|
|
|
|
</mapper>
|