|
|
@@ -61,7 +61,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
o.delivery_pay_status,
|
|
|
o.total_price,
|
|
|
csc.NAME AS mini_program_name,
|
|
|
- sp_latest.bank_transaction_id
|
|
|
+ sp_latest.bank_transaction_id,
|
|
|
+ CONCAT('store-',sp_latest.pay_code) as hfshh
|
|
|
FROM
|
|
|
fs_store_order_scrm o
|
|
|
left join ( SELECT fsois.*, ROW_NUMBER() OVER ( PARTITION BY fsois.order_id ORDER BY fsois.item_id ) AS rn FROM fs_store_order_item_scrm fsois ) item_latest ON item_latest.order_id = o.id and item_latest.rn = 1
|
|
|
@@ -202,8 +203,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
o.delivery_pay_status,
|
|
|
o.total_price,
|
|
|
csc.NAME AS mini_program_name,
|
|
|
- sp_latest.bank_transaction_id
|
|
|
- FROM
|
|
|
+ sp_latest.bank_transaction_id,
|
|
|
+ CONCAT('store-',sp_latest.pay_code) as hfshh
|
|
|
+ FROM
|
|
|
fs_store_order_scrm o
|
|
|
left join ( SELECT fsois.*, ROW_NUMBER() OVER ( PARTITION BY fsois.order_id ORDER BY fsois.item_id ) AS rn FROM fs_store_order_item_scrm fsois ) item_latest ON item_latest.order_id = o.id and item_latest.rn = 1
|
|
|
LEFT JOIN fs_user u ON o.user_id = u.user_id
|
|
|
@@ -343,7 +345,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
o.delivery_pay_status,
|
|
|
o.total_price,
|
|
|
csc.NAME AS mini_program_name,
|
|
|
- sp_latest.bank_transaction_id
|
|
|
+ sp_latest.bank_transaction_id,
|
|
|
+ CONCAT('live-',sp_latest.pay_code) as hfshh
|
|
|
FROM
|
|
|
live_order o
|
|
|
left join live_order_item loi on loi.order_id = o.order_id
|