소스 검색

修正无法传递时间

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>