This commit is contained in:
dute7liang
2024-01-19 00:11:27 +08:00
parent a5bd7060a7
commit d35e93b0a7
24 changed files with 271 additions and 51 deletions

View File

@@ -4,18 +4,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cai.mapper.UserForbidMapper">
<resultMap type="com.ruoyi.cai.domain.UserForbid" id="CaiUserForbidResult">
<result property="id" column="id"/>
<result property="type" column="type"/>
<result property="sourceId" column="source_id"/>
<result property="member" column="member"/>
<result property="forbidTime" column="forbid_time"/>
<result property="beginTime" column="begin_time"/>
<result property="endTime" column="end_time"/>
<result property="createTime" column="create_time"/>
<result property="originUid" column="origin_uid"/>
<result property="reason" column="reason"/>
</resultMap>
<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>