From 0b3ff378a9faaf9d7a4831b7f0de67378fe0dfea Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:20:15 +0800
Subject: [PATCH] optimize 统计
---
java110-db/src/main/resources/mapper/common/AdvertServiceDaoImplMapper.xml | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/common/AdvertServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/AdvertServiceDaoImplMapper.xml
index b5acb5d..67c7d7d 100755
--- a/java110-db/src/main/resources/mapper/common/AdvertServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/AdvertServiceDaoImplMapper.xml
@@ -204,13 +204,13 @@
and t.advert_id= #{advertId}
</if>
<if test="startTime !=null ">
- and t.start_time= #{startTime}
+ and t.start_time <= #{startTime}
+ </if>
+ <if test="endTime !=null ">
+ and t.end_time >= #{endTime}
</if>
<if test="state !=null and state != ''">
and t.state= #{state}
- </if>
- <if test="endTime !=null ">
- and t.end_time= #{endTime}
</if>
<if test="bId !=null and bId != ''">
and t.b_id= #{bId}
--
Gitblit v1.8.0