|
@@ -89,7 +89,7 @@
|
|
|
apr.discount_amount as activityDiscountAmount, ai.title activityTitle,tiu.rider_station_id as riderStationId,
|
|
apr.discount_amount as activityDiscountAmount, ai.title activityTitle,tiu.rider_station_id as riderStationId,
|
|
|
(select rs.station_name from rider_station rs where rs.id =tiu.rider_station_id ) as stationName,
|
|
(select rs.station_name from rider_station rs where rs.id =tiu.rider_station_id ) as stationName,
|
|
|
(select st.shop_type_name from shop_type st where st.id =gs.shop_type_id ) as shopTypeName,
|
|
(select st.shop_type_name from shop_type st where st.id =gs.shop_type_id ) as shopTypeName,
|
|
|
- (case when tcu.shop_id =0 then '平台' else gs2.shop_name end) couponTypeRemark,
|
|
|
|
|
|
|
+ (case when tcu.shop_id =0 then '平台' else gs2.shop_name end) couponTypeRemark
|
|
|
from tb_order tor
|
|
from tb_order tor
|
|
|
left join tb_user tu on tor.user_id = tu.user_id
|
|
left join tb_user tu on tor.user_id = tu.user_id
|
|
|
left join goods_shop gs on tor.shop_id = gs.shop_id
|
|
left join goods_shop gs on tor.shop_id = gs.shop_id
|