init
This commit is contained in:
@@ -4,15 +4,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.cai.mapper.UserForbidLogMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.cai.domain.UserForbidLog" id="UserForbidLogResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="member" column="member"/>
|
||||
<result property="forbidTime" column="forbid_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.UserForbidLogAdminVo">
|
||||
select t1.*,t2.usercode,t2.mobile,t2.avatar,t2.nickname
|
||||
from cai_user_forbid_log 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.forbidTime != null">
|
||||
and t1.forbid_time = #{bo.forbidTime}
|
||||
</if>
|
||||
<if test="bo.member != null and bo.member != ''">
|
||||
and t1.member = #{bo.member}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user