wuxw 2 роки тому
батько
коміт
3e59b59ce7

+ 4 - 4
java110-db/src/main/resources/mapper/oa/WorkPoolV1ServiceDaoImplMapper.xml

@@ -60,10 +60,10 @@
         <if test="endTime !=null and endTime != ''">
             and t.end_time= #{endTime}
         </if>
-        <if test="queryStartTime !=null">
+        <if test="queryStartTime !=null and queryStartTime !=''">
             and t.create_time &gt;= #{queryStartTime}
         </if>
-        <if test="queryEndTime !=null">
+        <if test="queryEndTime !=null and queryEndTime !=''">
             and t.create_time &lt;= #{queryEndTime}
         </if>
         <if test="state !=null and state != ''">
@@ -165,10 +165,10 @@
             and t.end_time= #{endTime}
         </if>
 
-        <if test="queryStartTime !=null">
+        <if test="queryStartTime !=null and queryStartTime !=''">
             and t.create_time &gt;= #{queryStartTime}
         </if>
-        <if test="queryEndTime !=null">
+        <if test="queryEndTime !=null and queryEndTime !=''">
             and t.create_time &lt;= #{queryEndTime}
         </if>
         <if test="state !=null and state != ''">