Ver código fonte

优化代码

wuxw 3 anos atrás
pai
commit
beb132cbe3

+ 2 - 2
java110-db/src/main/resources/mapper/community/NoticeServiceDaoImplMapper.xml

@@ -113,10 +113,10 @@
         <if test="context !=null and context != ''">
         <if test="context !=null and context != ''">
             and t.context= #{context}
             and t.context= #{context}
         </if>
         </if>
-        <if test="startTime !=null">
+        <if test="startTime !=null and startTime != ''">
             and t.start_time &lt;= #{startTime}
             and t.start_time &lt;= #{startTime}
         </if>
         </if>
-        <if test="endTime !=null">
+        <if test="endTime !=null  and endTime != ''">
             and t.end_time &gt;= #{endTime}
             and t.end_time &gt;= #{endTime}
         </if>
         </if>
         <if test="statusCd !=null and statusCd != ''">
         <if test="statusCd !=null and statusCd != ''">