|
|
|
@ -368,7 +368,7 @@ |
|
|
|
|
o.order_number, |
|
|
|
|
o.create_time, |
|
|
|
|
o.order_type, |
|
|
|
|
GROUP_CONCAT( oi.sku_name ) AS content, |
|
|
|
|
GROUP_CONCAT( oi.prod_name SEPARATOR '、' ) AS content, |
|
|
|
|
sum( oi.prod_count ) AS num, |
|
|
|
|
CASE |
|
|
|
|
WHEN o.order_type = 2 THEN |
|
|
|
@ -380,7 +380,7 @@ |
|
|
|
|
WHEN o.order_type = 2 THEN |
|
|
|
|
kpt.logo_url |
|
|
|
|
WHEN o.order_type = 1 THEN |
|
|
|
|
ui.user_avatars |
|
|
|
|
avatars.user_avatars |
|
|
|
|
END AS logo |
|
|
|
|
FROM |
|
|
|
|
tz_order o |
|
|
|
@ -394,6 +394,14 @@ |
|
|
|
|
LEFT JOIN k_platform_team_account pta ON pta.account_id = ua.id |
|
|
|
|
LEFT JOIN k_platform_team kp ON kp.manage_id = pta.manage_id |
|
|
|
|
LEFT JOIN k_platform_team_classification kpt ON kpt.id = kp.classification_id |
|
|
|
|
LEFT JOIN ( |
|
|
|
|
SELECT |
|
|
|
|
a.app_open_id, |
|
|
|
|
i.user_avatars |
|
|
|
|
FROM |
|
|
|
|
hr_user_account a |
|
|
|
|
JOIN hr_user_info i ON i.user_id = a.user_id AND a.platform_id = 7 and a.is_del = 0 and i.is_del = 0 |
|
|
|
|
) avatars ON avatars.app_open_id = ua.app_open_id |
|
|
|
|
WHERE |
|
|
|
|
o.shop_id = #{orderParam.shopId} |
|
|
|
|
<if test="orderParam.queryCriteria != null and orderParam.queryCriteria != ''"> |
|
|
|
@ -418,7 +426,7 @@ |
|
|
|
|
o.order_number, |
|
|
|
|
o.create_time, |
|
|
|
|
o.order_type, |
|
|
|
|
GROUP_CONCAT( oi.sku_name ) AS content, |
|
|
|
|
GROUP_CONCAT( oi.prod_name SEPARATOR '、' ) AS content, |
|
|
|
|
sum( oi.prod_count ) AS num, |
|
|
|
|
CASE |
|
|
|
|
WHEN o.order_type = 2 THEN |
|
|
|
@ -430,7 +438,7 @@ |
|
|
|
|
WHEN o.order_type = 2 THEN |
|
|
|
|
kpt.logo_url |
|
|
|
|
WHEN o.order_type = 1 THEN |
|
|
|
|
ui.user_avatars |
|
|
|
|
avatars.user_avatars |
|
|
|
|
END AS logo |
|
|
|
|
FROM |
|
|
|
|
tz_order o |
|
|
|
@ -444,6 +452,14 @@ |
|
|
|
|
LEFT JOIN k_platform_team_account pta ON pta.account_id = ua.id |
|
|
|
|
LEFT JOIN k_platform_team kp ON kp.manage_id = pta.manage_id |
|
|
|
|
LEFT JOIN k_platform_team_classification kpt ON kpt.id = kp.classification_id |
|
|
|
|
LEFT JOIN ( |
|
|
|
|
SELECT |
|
|
|
|
a.app_open_id, |
|
|
|
|
i.user_avatars |
|
|
|
|
FROM |
|
|
|
|
hr_user_account a |
|
|
|
|
JOIN hr_user_info i ON i.user_id = a.user_id AND a.platform_id = 7 and a.is_del = 0 and i.is_del = 0 |
|
|
|
|
) avatars ON avatars.app_open_id = ua.app_open_id |
|
|
|
|
WHERE |
|
|
|
|
o.user_id = #{orderParam.userId} |
|
|
|
|
<if test="orderParam.queryCriteria != null and orderParam.queryCriteria != ''"> |
|
|
|
|