Explorar el Código

修正无法传递时间

y hace 2 años
padre
commit
738d7aec40
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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>