init
This commit is contained in:
@@ -4,16 +4,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.cai.mapper.ForbidFilterMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.cai.domain.ForbidFilter" id="ForbidFilterResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="member" column="member"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="traceNo" column="trace_no"/>
|
||||
<result property="forbidId" column="forbid_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="filterReason" column="filter_reason"/>
|
||||
</resultMap>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.ForbidFilterAdminVo">
|
||||
select t1.*,
|
||||
t2.usercode as user_usercode,t2.mobile as user_mobile,
|
||||
t3.nickname as member_nickname, t3.avatar as member_avatar
|
||||
from cai_forbid_filter t1
|
||||
left join cai_user t2 on t1.user_id = t2.id
|
||||
left join cai_user t3 on t1.member = t3.usercode and t1.type = 1
|
||||
<where>
|
||||
<if test="bo.userMobile != null and bo.userMobile != ''">
|
||||
and t2.mobile = #{bo.userMobile}
|
||||
</if>
|
||||
<if test="bo.userUsercode != null and bo.userUsercode != ''">
|
||||
and t2.usercode = #{bo.userUsercode}
|
||||
</if>
|
||||
<if test="bo.traceNo != null and bo.traceNo != ''">
|
||||
and t1.trace_no = #{bo.traceNo}
|
||||
</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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user