Pārlūkot izejas kodu

修正无法传递时间

y 2 gadi atpakaļ
vecāks
revīzija
738d7aec40

+ 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>