From fe2e07f1fcb0e0cb01ba6c8db7bde7e4ad88521b Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 20 六月 2023 15:21:30 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/report/ReportUserQuestionAnswerValueServiceDaoImplMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/report/ReportUserQuestionAnswerValueServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/report/ReportUserQuestionAnswerValueServiceDaoImplMapper.xml
index fbded79..a79f715 100644
--- a/java110-db/src/main/resources/mapper/report/ReportUserQuestionAnswerValueServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/report/ReportUserQuestionAnswerValueServiceDaoImplMapper.xml
@@ -60,10 +60,10 @@
         <if test="qaType !=null and qaType != ''">
             and qa.qa_type= #{qaType}
         </if>
-        <if test="startTime != null">
+        <if test="startTime != null and startTime != ''">
             and t.create_time &gt; #{startTime}
         </if>
-        <if test="endTime != null">
+        <if test="endTime != null and endTime != ''">
             and t.create_time &lt; #{endTime}
         </if>
         order by t.create_time desc
@@ -126,10 +126,10 @@
         <if test="qaType !=null and qaType != ''">
             and qa.qa_type= #{qaType}
         </if>
-        <if test="startTime != null">
+        <if test="startTime != null and startTime != ''">
             and t.create_time &gt; #{startTime}
         </if>
-        <if test="endTime != null">
+        <if test="endTime != null and endTime != ''">
             and t.create_time &lt; #{endTime}
         </if>
         <if test="qaId !=null and qaId != ''">

--
Gitblit v1.8.0