|
|
@@ -21,6 +21,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="subjectName" column="subject_name"/>
|
|
|
<result property="goodsIds" column="goods_ids"/>
|
|
|
<result property="status" column="status"/>
|
|
|
+ <result property="businessName" column="business_name"/>
|
|
|
+ <result property="educationName" column="education_name"/>
|
|
|
+ <result property="projectName" column="project_name"/>
|
|
|
<collection property="goodsList" column="goods_ids" select="findGoodsList"/>
|
|
|
</resultMap>
|
|
|
|
|
|
@@ -59,6 +62,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
cs.subject_name
|
|
|
FROM
|
|
|
order_business_config_goods bcg
|
|
|
+ LEFT JOIN order_business_config obc ON bcg.config_id = obc.id
|
|
|
+ LEFT JOIN course_business cb ON obc.business_id = cb.id
|
|
|
+ LEFT JOIN course_project_type cpt ON cb.project_id = cpt.id
|
|
|
+ LEFT JOIN course_education_type cet ON cet.id = cpt.education_id
|
|
|
LEFT JOIN course_subject cs on bcg.subject_id = cs.id
|
|
|
WHERE
|
|
|
bcg.config_id = #{configId}
|