Преглед на файлове

修正无法传递时间

y преди 2 години
родител
ревизия
738d7aec40
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/main/resources/mapper/modules/order/InsOrdersMapper.xml

+ 3 - 3
src/main/resources/mapper/modules/order/InsOrdersMapper.xml

@@ -373,11 +373,11 @@
         <if test="orderstatus != null and orderstatus != '' ">
            and b.orderstatus = #{orderstatus}
         </if>
-        <if test="startDate != null and startDate != '' ">
+        <if test="startDate != null ">
             and a.createtime &gt;= #{startDate}
         </if>
-        <if test="endDate != null and endDate != '' ">
-            and a.endDate &lt;= #{endDate}
+        <if test="endDate != null ">
+            and a.createtime &lt;= #{endDate}
         </if>
     </select>