|
@@ -32,10 +32,10 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="collectionDateFrom != null and collectionDateFrom != ''">
|
|
|
- AND p.pay_time >= #{collectionDateFrom}
|
|
|
+ AND date_format(p.pay_time,'%Y-%m-%d') >= #{collectionDateFrom}
|
|
|
</if>
|
|
|
<if test="collectionDateTo != null and collectionDateTo != ''">
|
|
|
- AND p.pay_time <= #{collectionDateTo}
|
|
|
+ AND date_format(p.pay_time,'%Y-%m-%d') <= #{collectionDateTo}
|
|
|
</if>
|
|
|
<if test="buyerName != null and buyerName != ''">
|
|
|
AND cm.buyer_name like concat('%',#{buyerName},'%')
|
|
@@ -74,10 +74,10 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="collectionDateFrom != null and collectionDateFrom != ''">
|
|
|
- AND d.created_at >= #{collectionDateFrom}
|
|
|
+ AND date_format(r.created_at,'%Y-%m-%d') >= #{collectionDateFrom}
|
|
|
</if>
|
|
|
<if test="collectionDateTo != null and collectionDateTo != ''">
|
|
|
- AND d.created_at <= #{collectionDateTo}
|
|
|
+ AND date_format(r.created_at,'%Y-%m-%d') <= #{collectionDateTo}
|
|
|
</if>
|
|
|
<if test="buyerName != null and buyerName != ''">
|
|
|
AND r.buyer_name like concat('%',#{buyerName},'%')
|
|
@@ -160,10 +160,10 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="collectionDateFrom !=null and collectionDateFrom != '' " >
|
|
|
- and convert_date >= date_format(#{collectionDateFrom},'%Y-%m-%d')
|
|
|
+ and date_format(convert_date,'%Y-%m-%d') >= date_format(#{collectionDateFrom},'%Y-%m-%d')
|
|
|
</if>
|
|
|
<if test="collectionDateTo !=null and collectionDateTo != '' " >
|
|
|
- and convert_date <= date_format(#{collectionDateTo},'%Y-%m-%d')
|
|
|
+ and date_format(convert_date,'%Y-%m-%d') <= date_format(#{collectionDateTo},'%Y-%m-%d')
|
|
|
</if>
|
|
|
<if test="convertType !=null and convertType != '' " >
|
|
|
and convert_type = #{convertType}
|