|
@@ -126,7 +126,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectGoods" parameterType="long" resultMap="GoodsUserVo">
|
|
|
SELECT
|
|
|
- g.*
|
|
|
+ g.*,
|
|
|
+ (SELECT cet.education_name FROM course_education_type cet where cet.id = g.education_type_id) as education_name,
|
|
|
+ (SELECT cet.project_name FROM course_project_type cet where cet.id = g.project_id) as project_name,
|
|
|
+ (SELECT cet.business_name FROM course_business cet where cet.id = g.business_id) as business_name
|
|
|
FROM
|
|
|
goods g
|
|
|
LEFT JOIN user_plan_goods upg on g.goods_id = upg.source_id
|