This commit is contained in:
77
2024-05-13 01:04:47 +08:00
parent ae0143d7bc
commit 84cbbefdec
4 changed files with 27 additions and 2 deletions

View File

@@ -34,4 +34,7 @@ public class AnchorAdminVo extends Anchor {
private String city; private String city;
private Integer onlineStatus; private Integer onlineStatus;
private Long startPrice;
private Long endPrice;
} }

View File

@@ -15,7 +15,9 @@ public class AnchorTopAdminVo extends AnchorTop {
* 昵称 * 昵称
*/ */
private String nickname; private String nickname;
private Long price;
private Long startPrice;
private Long endPrice;
/** /**
* 手机号 * 手机号
*/ */

View File

@@ -43,6 +43,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bo.onlineStatus != null"> <if test="bo.onlineStatus != null">
and t3.status = #{bo.onlineStatus} and t3.status = #{bo.onlineStatus}
</if> </if>
<if test="bo.startPrice != null and bo.startPrice > 0">
<![CDATA[
and t1.price >= #{bo.startPrice}
]]>
</if>
<if test="bo.endPrice != null and bo.endPrice > 0">
<![CDATA[
and t1.price <= #{bo.endPrice}
]]>
</if>
</where> </where>
order by t1.create_time desc order by t1.create_time desc
</select> </select>

View File

@@ -5,7 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.cai.mapper.AnchorTopMapper"> <mapper namespace="com.ruoyi.cai.mapper.AnchorTopMapper">
<!--// 1-生效 2-过期 3-待生效--> <!--// 1-生效 2-过期 3-待生效-->
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.AnchorTopAdminVo"> <select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.AnchorTopAdminVo">
select t1.*, select t1.*,t2.price,
t3.usercode,t3.nickname,t3.mobile,t3.avatar,t3.gender,t3.age,t3.status, t3.usercode,t3.nickname,t3.mobile,t3.avatar,t3.gender,t3.age,t3.status,
t4.status as online_status, t4.status as online_status,
<![CDATA[ <![CDATA[
@@ -30,6 +30,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bo.onlineStatus != null"> <if test="bo.onlineStatus != null">
and t4.status = #{bo.onlineStatus} and t4.status = #{bo.onlineStatus}
</if> </if>
<if test="bo.startPrice != null and bo.startPrice > 0">
<![CDATA[
and t2.price >= #{bo.startPrice}
]]>
</if>
<if test="bo.endPrice != null and bo.endPrice > 0">
<![CDATA[
and t2.price <= #{bo.endPrice}
]]>
</if>
<if test="bo.topStatus != null"> <if test="bo.topStatus != null">
<if test="bo.topStatus == 1"> <if test="bo.topStatus == 1">
<![CDATA[ <![CDATA[