From 85c872ff07d85fb7612b71b6e76188f50d79ee1c Mon Sep 17 00:00:00 2001 From: Ziin Date: Thu, 26 Jun 2025 14:03:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=201.=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0ServerBigBrother=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=202.=E4=BF=AE=E6=94=B9=20ServerBigBrotherMap?= =?UTF-8?q?per.xml=20=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/dto/host/ServerBigBrotherDTO.java | 7 +++++++ .../mapper/ServerBigBrotherMapper.xml | 18 +++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/yupi/springbootinit/model/dto/host/ServerBigBrotherDTO.java b/src/main/java/com/yupi/springbootinit/model/dto/host/ServerBigBrotherDTO.java index 6287c6b..43a0dfe 100644 --- a/src/main/java/com/yupi/springbootinit/model/dto/host/ServerBigBrotherDTO.java +++ b/src/main/java/com/yupi/springbootinit/model/dto/host/ServerBigBrotherDTO.java @@ -103,6 +103,13 @@ public class ServerBigBrotherDTO extends PageRequest implements Serializable { @ApiModelProperty(value="租户 Id") private Long tenantId; + + /** + * 创建时间 + */ + @ApiModelProperty(value = "创建时间开始(yyyy-MM-dd)", example = "2023-01-01") + private Date createTime; + /** * 数据插入时间 */ diff --git a/src/main/resources/mapper/ServerBigBrotherMapper.xml b/src/main/resources/mapper/ServerBigBrotherMapper.xml index c58d184..8586884 100644 --- a/src/main/resources/mapper/ServerBigBrotherMapper.xml +++ b/src/main/resources/mapper/ServerBigBrotherMapper.xml @@ -35,19 +35,19 @@ select * from server_big_brother sbr left join server_country_info ci ON sbr.region = ci.country_name where sbr.tenant_id=#{dto.tenantId} - + and ci.country_group_name =#{dto.region,jdbcType=VARCHAR} - + and sbr.create_time BETWEEN #{dto.createTimeStart,jdbcType=TIMESTAMP} and #{dto.createTimeEnd,jdbcType=TIMESTAMP} - + and sbr.display_id like concat(#{dto.displayId,jdbcType=VARCHAR},'%') - + and sbr.hostcoins >=#{dto.hostcoinsMin,jdbcType=INTEGER} @@ -57,7 +57,7 @@ and sbr.hostcoins between #{dto.hostcoinsMin,jdbcType=INTEGER} and #{dto.hostcoinsMax,jdbcType=INTEGER} - + and sbr.total_gift_coins >=#{dto.totalGiftCoinsMin,jdbcType=INTEGER} @@ -67,7 +67,7 @@ and sbr.total_gift_coins between #{dto.totalGiftCoinsMin,jdbcType=INTEGER} and #{dto.totalGiftCoinsMax,jdbcType=INTEGER} - + and sbr.level >=#{dto.levelMin,jdbcType=INTEGER} @@ -89,15 +89,15 @@ sbr.create_time ${dto.sort} - + sbr.level ${dto.sort} - + sbr.historic_high_coins ${dto.sort} - + sbr.total_gift_coins ${dto.sort}