修改:

1.添加ServerBigBrother创建时间字段
2.修改 ServerBigBrotherMapper.xml 注释
This commit is contained in:
2025-06-26 14:03:30 +08:00
parent 273db0b8a1
commit 85c872ff07
2 changed files with 16 additions and 9 deletions

View File

@@ -103,6 +103,13 @@ public class ServerBigBrotherDTO extends PageRequest implements Serializable {
@ApiModelProperty(value="租户 Id") @ApiModelProperty(value="租户 Id")
private Long tenantId; private Long tenantId;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间开始(yyyy-MM-dd)", example = "2023-01-01")
private Date createTime;
/** /**
* 数据插入时间 * 数据插入时间
*/ */

View File

@@ -35,19 +35,19 @@
select * from select * from
server_big_brother sbr left join server_country_info ci ON sbr.region = ci.country_name server_big_brother sbr left join server_country_info ci ON sbr.region = ci.country_name
where sbr.tenant_id=#{dto.tenantId} where sbr.tenant_id=#{dto.tenantId}
<!-- 主播国家筛选 --> <!-- 大哥所属国家筛选 -->
<if test="dto.region!= '' and dto.region != null"> <if test="dto.region!= '' and dto.region != null">
and ci.country_group_name =#{dto.region,jdbcType=VARCHAR} and ci.country_group_name =#{dto.region,jdbcType=VARCHAR}
</if> </if>
<!-- 按照入库时间筛选主播 --> <!-- 大哥入库时间筛选 -->
<if test="dto.createTimeStart != null and dto.createTimeEnd != null"> <if test="dto.createTimeStart != null and dto.createTimeEnd != null">
and sbr.create_time BETWEEN #{dto.createTimeStart,jdbcType=TIMESTAMP} and #{dto.createTimeEnd,jdbcType=TIMESTAMP} and sbr.create_time BETWEEN #{dto.createTimeStart,jdbcType=TIMESTAMP} and #{dto.createTimeEnd,jdbcType=TIMESTAMP}
</if> </if>
<!-- 主播 Id 模糊搜索 --> <!-- 大哥 Id 模糊搜索 -->
<if test="dto.displayId != null and dto.displayId != '' "> <if test="dto.displayId != null and dto.displayId != '' ">
and sbr.display_id like concat(#{dto.displayId,jdbcType=VARCHAR},'%') and sbr.display_id like concat(#{dto.displayId,jdbcType=VARCHAR},'%')
</if> </if>
<!-- 今日主播金币筛选 --> <!-- 大哥打赏金币筛选 -->
<if test="dto.hostcoinsMin != null and dto.hostcoinsMax == null and dto.hostcoinsMax != '' "> <if test="dto.hostcoinsMin != null and dto.hostcoinsMax == null and dto.hostcoinsMax != '' ">
and sbr.hostcoins >=#{dto.hostcoinsMin,jdbcType=INTEGER} and sbr.hostcoins >=#{dto.hostcoinsMin,jdbcType=INTEGER}
</if> </if>
@@ -57,7 +57,7 @@
<if test="dto.hostcoinsMin != null and dto.hostcoinsMax != null " > <if test="dto.hostcoinsMin != null and dto.hostcoinsMax != null " >
and sbr.hostcoins between #{dto.hostcoinsMin,jdbcType=INTEGER} and #{dto.hostcoinsMax,jdbcType=INTEGER} and sbr.hostcoins between #{dto.hostcoinsMin,jdbcType=INTEGER} and #{dto.hostcoinsMax,jdbcType=INTEGER}
</if> </if>
<!-- 昨日主播金币筛选 --> <!-- 大哥打赏总金币筛选 -->
<if test="dto.totalGiftCoinsMin != null and dto.totalGiftCoinsMax == null and dto.totalGiftCoinsMax != ''"> <if test="dto.totalGiftCoinsMin != null and dto.totalGiftCoinsMax == null and dto.totalGiftCoinsMax != ''">
and sbr.total_gift_coins >=#{dto.totalGiftCoinsMin,jdbcType=INTEGER} and sbr.total_gift_coins >=#{dto.totalGiftCoinsMin,jdbcType=INTEGER}
</if> </if>
@@ -67,7 +67,7 @@
<if test="dto.totalGiftCoinsMin != null and dto.totalGiftCoinsMax != null " > <if test="dto.totalGiftCoinsMin != null and dto.totalGiftCoinsMax != null " >
and sbr.total_gift_coins between #{dto.totalGiftCoinsMin,jdbcType=INTEGER} and #{dto.totalGiftCoinsMax,jdbcType=INTEGER} and sbr.total_gift_coins between #{dto.totalGiftCoinsMin,jdbcType=INTEGER} and #{dto.totalGiftCoinsMax,jdbcType=INTEGER}
</if> </if>
<!-- 主播粉丝数筛选--> <!-- 大哥等级筛选 -->
<if test="dto.levelMin != null and dto.levelMax == null and dto.levelMax != ''"> <if test="dto.levelMin != null and dto.levelMax == null and dto.levelMax != ''">
and sbr.level >=#{dto.levelMin,jdbcType=INTEGER} and sbr.level >=#{dto.levelMin,jdbcType=INTEGER}
</if> </if>
@@ -89,15 +89,15 @@
<if test="dto.sortName == 'createTime' and dto.sort != null"> <if test="dto.sortName == 'createTime' and dto.sort != null">
sbr.create_time ${dto.sort} sbr.create_time ${dto.sort}
</if> </if>
<!-- 昨日主播金币条件排序 --> <!-- 大哥等级排序 -->
<if test="dto.sortName == 'level' and dto.sort != null"> <if test="dto.sortName == 'level' and dto.sort != null">
sbr.level ${dto.sort} sbr.level ${dto.sort}
</if> </if>
<!-- 主播金币条件排序 --> <!-- 大哥打赏金币排序 -->
<if test="dto.sortName == 'historicHighCoins' and dto.sort != null"> <if test="dto.sortName == 'historicHighCoins' and dto.sort != null">
sbr.historic_high_coins ${dto.sort} sbr.historic_high_coins ${dto.sort}
</if> </if>
<!-- 主播粉丝条件排序 --> <!-- 大哥打赏总金币排序 -->
<if test="dto.sortName == 'totalGiftCoins' and dto.sort != null"> <if test="dto.sortName == 'totalGiftCoins' and dto.sort != null">
sbr.total_gift_coins ${dto.sort} sbr.total_gift_coins ${dto.sort}
</if> </if>