123
This commit is contained in:
@@ -34,4 +34,7 @@ public class AnchorAdminVo extends Anchor {
|
||||
private String city;
|
||||
|
||||
private Integer onlineStatus;
|
||||
|
||||
private Long startPrice;
|
||||
private Long endPrice;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,9 @@ public class AnchorTopAdminVo extends AnchorTop {
|
||||
* 昵称
|
||||
*/
|
||||
private String nickname;
|
||||
|
||||
private Long price;
|
||||
private Long startPrice;
|
||||
private Long endPrice;
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
|
||||
@@ -43,6 +43,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="bo.onlineStatus != null">
|
||||
and t3.status = #{bo.onlineStatus}
|
||||
</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>
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
|
||||
@@ -5,7 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<mapper namespace="com.ruoyi.cai.mapper.AnchorTopMapper">
|
||||
<!--// 1-生效 2-过期 3-待生效-->
|
||||
<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,
|
||||
t4.status as online_status,
|
||||
<![CDATA[
|
||||
@@ -30,6 +30,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="bo.onlineStatus != null">
|
||||
and t4.status = #{bo.onlineStatus}
|
||||
</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 == 1">
|
||||
<![CDATA[
|
||||
|
||||
Reference in New Issue
Block a user