花田厝 пре 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>