This commit is contained in:
dute7liang
2024-01-03 23:08:11 +08:00
parent 55ce7ee6b8
commit 4be439a6a1
9 changed files with 136 additions and 40 deletions

View File

@@ -7,7 +7,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="com.ruoyi.cai.domain.AnchorApply" id="CaiAnchorApplyResult">
<result property="id" column="id"/>
<result property="userId" column="user_id"/>
<result property="agreeProtocol" column="agree_protocol"/>
<result property="createTime" column="create_time"/>
<result property="status" column="status"/>
<result property="auditCount" column="audit_count"/>
@@ -18,6 +17,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select t1.*,t2.age,t2.avatar,t2.usercode,t2.nickname,t2.mobile,t2.gender
from cai_anchor_apply t1
left join cai_user t2 on t1.user_id = t2.id
<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.auditStatus != null">
and t1.audit_status = #{bo.auditStatus}
</if>
</where>
order by t2.create_time desc
</select>