|
@@ -68,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
las.order_status, las.create_time, las.is_del, las.user_id, las.consignee, las.phone_number, las.address, las.company_id, las.company_user_id, las.dept_id,
|
|
las.order_status, las.create_time, las.is_del, las.user_id, las.consignee, las.phone_number, las.address, las.company_id, las.company_user_id, las.dept_id,
|
|
|
cu.nick_name as company_user_nick_name, c.company_name,lo.order_id,lo.order_code,lo.user_phone,las.user_id,lo.item_json,lo.pay_time as orderPayTime,
|
|
cu.nick_name as company_user_nick_name, c.company_name,lo.order_id,lo.order_code,lo.user_phone,las.user_id,lo.item_json,lo.pay_time as orderPayTime,
|
|
|
lo.user_address,lo.user_name,lo.pay_price,lo.total_postage,lop.bank_serial_no,lo.delivery_sn as orderDeliveryId,lo.delivery_name as orderDeliveryName,
|
|
lo.user_address,lo.user_name,lo.pay_price,lo.total_postage,lop.bank_serial_no,lo.delivery_sn as orderDeliveryId,lo.delivery_name as orderDeliveryName,
|
|
|
- lo.delivery_code as orderDeliverySn,lo.status as orderStatus,lop.bank_transaction_id,lo.pay_money
|
|
|
|
|
|
|
+ lo.delivery_code as orderDeliverySn,lo.status as orderStatus,lop.bank_transaction_id,lo.pay_money,lop.pay_code as payCode
|
|
|
from live_after_sales las
|
|
from live_after_sales las
|
|
|
left join live_order lo on lo.order_id = las.order_id
|
|
left join live_order lo on lo.order_id = las.order_id
|
|
|
left join company_user cu on cu.user_id = las.company_user_id
|
|
left join company_user cu on cu.user_id = las.company_user_id
|
|
@@ -79,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ <if test="hfOrderCode != null and hfOrderCode != ''"> and lop.pay_code = #{hfOrderCode}</if>
|
|
|
<if test="liveId != null and liveId != ''"> and las.live_id = #{liveId}</if>
|
|
<if test="liveId != null and liveId != ''"> and las.live_id = #{liveId}</if>
|
|
|
<if test="companyUserNickName != null and companyUserNickName != ''"> and cu.nick_name like concat(#{companyUserNickName},'%')</if>
|
|
<if test="companyUserNickName != null and companyUserNickName != ''"> and cu.nick_name like concat(#{companyUserNickName},'%')</if>
|
|
|
<if test="storeId != null and storeId != ''"> and las.store_id = #{storeId}</if>
|
|
<if test="storeId != null and storeId != ''"> and las.store_id = #{storeId}</if>
|