|
|
@@ -140,16 +140,16 @@
|
|
|
and tor.reservation_flag = #{query.reservationFlag}
|
|
|
</if>
|
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
|
- and date_format(tor.create_time,'%Y-%m-%d') >= date_format(#{query.startTime},'%Y-%m-%d')
|
|
|
+ and tor.create_time >= #{query.startTime}
|
|
|
</if>
|
|
|
<if test="query.endTime!=null and query.endTime!='' ">
|
|
|
- and date_format(tor.create_time,'%Y-%m-%d') <= date_format(#{query.endTime},'%Y-%m-%d')
|
|
|
+ and tor.create_time <= #{query.endTime}
|
|
|
</if>
|
|
|
<if test="query.payStartTime != null and query.payStartTime != ''">
|
|
|
- and date_format(tor.pay_time,'%Y-%m-%d') >= date_format(#{query.payStartTime},'%Y-%m-%d')
|
|
|
+ and tor.pay_time >= #{query.payStartTime}
|
|
|
</if>
|
|
|
<if test="query.payEndTime != null and query.payEndTime != '' ">
|
|
|
- and date_format(tor.pay_time,'%Y-%m-%d') <= date_format(#{query.payEndTime},'%Y-%m-%d')
|
|
|
+ and tor.pay_time <= #{query.payEndTime}
|
|
|
</if>
|
|
|
<if test="query.riderStationId!=null and query.riderStationId!=''">
|
|
|
and tiu.rider_station_id=#{query.riderStationId}
|
|
|
@@ -224,16 +224,16 @@
|
|
|
and tor.reservation_flag = #{query.reservationFlag}
|
|
|
</if>
|
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
|
- and date_format(tor.create_time,'%Y-%m-%d') >= date_format(#{query.startTime},'%Y-%m-%d')
|
|
|
+ and tor.create_time >= #{query.startTime}
|
|
|
</if>
|
|
|
<if test="query.endTime!=null and query.endTime!='' ">
|
|
|
- and date_format(tor.create_time,'%Y-%m-%d') <= date_format(#{query.endTime},'%Y-%m-%d')
|
|
|
+ and tor.create_time <= #{query.endTime}
|
|
|
</if>
|
|
|
<if test="query.payStartTime != null and query.payStartTime != ''">
|
|
|
- and date_format(tor.pay_time,'%Y-%m-%d') >= date_format(#{query.payStartTime},'%Y-%m-%d')
|
|
|
+ and tor.pay_time >= #{query.payStartTime}
|
|
|
</if>
|
|
|
<if test="query.payEndTime != null and query.payEndTime != '' ">
|
|
|
- and date_format(tor.pay_time,'%Y-%m-%d') <= date_format(#{query.payEndTime},'%Y-%m-%d')
|
|
|
+ and tor.pay_time <= #{query.payEndTime}
|
|
|
</if>
|
|
|
<if test="query.riderStationId!=null and query.riderStationId!=''">
|
|
|
and tiu.rider_station_id=#{query.riderStationId}
|
|
|
@@ -292,16 +292,16 @@
|
|
|
and tor.reservation_flag = #{query.reservationFlag}
|
|
|
</if>
|
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
|
- and date_format(tor.create_time,'%Y-%m-%d') >= date_format(#{query.startTime},'%Y-%m-%d')
|
|
|
+ and tor.create_time >= #{query.startTime}
|
|
|
</if>
|
|
|
<if test="query.endTime!=null and query.endTime!='' ">
|
|
|
- and date_format(tor.create_time,'%Y-%m-%d') <= date_format(#{query.endTime},'%Y-%m-%d')
|
|
|
+ and tor.create_time <= #{query.endTime}
|
|
|
</if>
|
|
|
<if test="query.payStartTime != null and query.payStartTime != ''">
|
|
|
- and date_format(tor.pay_time,'%Y-%m-%d') >= date_format(#{query.payStartTime},'%Y-%m-%d')
|
|
|
+ and tor.pay_time >= #{query.payStartTime}
|
|
|
</if>
|
|
|
<if test="query.payEndTime != null and query.payEndTime != '' ">
|
|
|
- and date_format(tor.pay_time,'%Y-%m-%d') <= date_format(#{query.payEndTime},'%Y-%m-%d')
|
|
|
+ and tor.pay_time <= #{query.payEndTime}
|
|
|
</if>
|
|
|
<if test="query.riderStationId!=null and query.riderStationId!=''">
|
|
|
and tiu.rider_station_id=#{query.riderStationId}
|
|
|
@@ -433,15 +433,6 @@
|
|
|
<if test="query.shopId!=null">
|
|
|
and shop_id=#{query.shopId}
|
|
|
</if>
|
|
|
- <if test="query.dateType=='day'">
|
|
|
- and date_format(pay_time,'%Y-%m-%d')=date_format(#{query.date},'%Y-%m-%d')
|
|
|
- </if>
|
|
|
- <if test="query.dateType=='month'">
|
|
|
- and date_format(pay_time,'%Y-%m')=date_format(#{query.date},'%Y-%m')
|
|
|
- </if>
|
|
|
- <if test="query.dateType=='year'">
|
|
|
- and date_format(pay_time,'%Y')=date_format(#{query.date},'%Y')
|
|
|
- </if>
|
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
|
and pay_time>=#{query.startTime}
|
|
|
</if>
|
|
|
@@ -455,15 +446,6 @@
|
|
|
<if test="query.shopId!=null">
|
|
|
and shop_id=#{query.shopId}
|
|
|
</if>
|
|
|
- <if test="query.dateType=='day'">
|
|
|
- and date_format(pay_time,'%Y-%m-%d')=date_format(#{query.date},'%Y-%m-%d')
|
|
|
- </if>
|
|
|
- <if test="query.dateType=='month'">
|
|
|
- and date_format(pay_time,'%Y-%m')=date_format(#{query.date},'%Y-%m')
|
|
|
- </if>
|
|
|
- <if test="query.dateType=='year'">
|
|
|
- and date_format(pay_time,'%Y')=date_format(#{query.date},'%Y')
|
|
|
- </if>
|
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
|
and pay_time>=#{query.startTime}
|
|
|
</if>
|
|
|
@@ -667,16 +649,16 @@
|
|
|
and tor.reservation_flag = #{query.reservationFlag}
|
|
|
</if>
|
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
|
- and date_format(tor.create_time,'%Y-%m-%d') >= date_format(#{query.startTime},'%Y-%m-%d')
|
|
|
+ and tor.create_time >= #{query.startTime}
|
|
|
</if>
|
|
|
<if test="query.endTime!=null and query.endTime!='' ">
|
|
|
- and date_format(tor.create_time,'%Y-%m-%d') <= date_format(#{query.endTime},'%Y-%m-%d')
|
|
|
+ and tor.create_time <= #{query.endTime}
|
|
|
</if>
|
|
|
<if test="query.payStartTime != null and query.payStartTime != ''">
|
|
|
- and date_format(tor.pay_time,'%Y-%m-%d') >= date_format(#{query.payStartTime},'%Y-%m-%d')
|
|
|
+ and tor.pay_time >= #{query.payStartTime}
|
|
|
</if>
|
|
|
<if test="query.payEndTime != null and query.payEndTime != '' ">
|
|
|
- and date_format(tor.pay_time,'%Y-%m-%d') <= date_format(#{query.payEndTime},'%Y-%m-%d')
|
|
|
+ and tor.pay_time <= #{query.payEndTime}
|
|
|
</if>
|
|
|
<if test="query.riderStationId!=null and query.riderStationId!=''">
|
|
|
and tiu.rider_station_id=#{query.riderStationId}
|