소스 검색

优化代码

java110 3 년 전
부모
커밋
fe2e07f1fc
1개의 변경된 파일과 4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      java110-db/src/main/resources/mapper/report/ReportUserQuestionAnswerValueServiceDaoImplMapper.xml

+ 4 - 4
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 != ''">