Browse Source

修正无法传递时间

y 2 years ago
parent
commit
738d7aec40
1 changed files with 3 additions and 3 deletions
  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>