Sfoglia il codice sorgente

fix: 系统日志操作时间查询fix

zhangying 11 mesi fa
parent
commit
11a8f9e5a8
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/main/resources/mapping/cquery/SysLogCQuery.xml

+ 2 - 2
src/main/resources/mapping/cquery/SysLogCQuery.xml

@@ -15,8 +15,8 @@
         <if test="startDate != null">
             and l.logTime <![CDATA[ >= ]]> #{startDate}
         </if>
-        <if test="startDate != null ">
-            and l.logTime <![CDATA[ < ]]> date_add(#{startDate}, interval 1 day)
+        <if test="endDate != null ">
+            and l.logTime <![CDATA[ <= ]]> #{endDate}
         </if>
         order by l.logTime desc
     </select>