浏览代码

修改时间查询字段

花田厝 11 月之前
父节点
当前提交
56b6171c88
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jsjp-service/src/main/resources/mapper/order/OrderInfoMapper.xml

+ 2 - 2
jsjp-service/src/main/resources/mapper/order/OrderInfoMapper.xml

@@ -90,10 +90,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="schoolName != null  and schoolName != ''">
                 and school_name like concat('%', #{schoolName}, '%')
             </if>
-            <if test="startTime != null">
+            <if test="startTime != null and startTime != ''">
                 and DATE_FORMAT(success_time,'%Y-%m-%d %H:%i:%S')<![CDATA[ >= ]]> #{startTime}
             </if>
-            <if test="endTime != null">
+            <if test="endTime != null and endTime != '' ">
                 and DATE_FORMAT(success_time,'%Y-%m-%d %H:%i:%S') <![CDATA[ <= ]]> #{endTime}
             </if>
         </where>