|
@@ -1504,7 +1504,8 @@
|
|
|
(
|
|
|
SELECT
|
|
|
concat( `cet`.`education_name`, '-', `cb`.`business_name`, `cpt`.`project_name` ) AS `business_name`,
|
|
|
- g.goods_id
|
|
|
+ g.goods_id,
|
|
|
+ og.order_sn
|
|
|
FROM
|
|
|
order_goods og LEFT JOIN `goods` `g` on og.goods_id = `g`.goods_id
|
|
|
LEFT JOIN `course_education_type` `cet` ON `g`.`education_type_id` = `cet`.`id`
|
|
@@ -1512,7 +1513,7 @@
|
|
|
LEFT JOIN `course_business` `cb` ON `g`.`business_id` = `cb`.`id`
|
|
|
) oug
|
|
|
WHERE
|
|
|
- o.order_sn = og.order_sn
|
|
|
+ o.order_sn = oug.order_sn
|
|
|
AND oug.business_name = #{businessName}
|
|
|
)>0
|
|
|
</if>
|