|
|
@@ -109,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
a.delivery_pay_money, a.delivery_import_time, a.delivery_send_time, a.is_after_sales, a.dept_id,
|
|
|
a.channel, a.source, a.bill_price, a.total_postage, a.pay_postage, a.gain_integral,
|
|
|
a.use_integral, a.pay_integral, a.back_integral, a.is_edit_money, b.product_info as product_introduce,a.customer_id,
|
|
|
- b.product_name as product_name,a.total_price - a.pay_money as delivery_collection_amount
|
|
|
+ b.product_name as product_name,'0' as delivery_collection_amount
|
|
|
FROM
|
|
|
live_order a LEFT JOIN fs_store_product b ON a.product_id = b.product_id
|
|
|
left join company_user cu on a.company_user_id = cu.user_id
|
|
|
@@ -170,6 +170,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="payStartTime != null and payEndTime != null and payStartTime!='' and payEndTime!=''">
|
|
|
and a.pay_time between CONCAT(#{payStartTime}, ' 00:00:00') and CONCAT(#{payEndTime}, ' 23:59:59')
|
|
|
</if>
|
|
|
+ <if test="createTimeStart != null and createTimeEnd != null and createTimeStart != '' and createTimeEnd != ''">
|
|
|
+ and a.create_time between CONCAT(#{createTimeStart}, ' 00:00:00') and CONCAT(#{createTimeEnd}, ' 23:59:59')
|
|
|
+ </if>
|
|
|
<if test="finishTimeStart != null and finishTimeEnd != null and finishTimeStart != '' and finishTimeEnd!=''">
|
|
|
and a.finish_time between CONCAT(#{finishTimeStart}, ' 00:00:00') and CONCAT(#{finishTimeEnd}, ' 23:59:59')
|
|
|
</if>
|