|
|
@@ -25,6 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="goodsType" column="goods_type"/>
|
|
|
<result property="templateType" column="template_type"/>
|
|
|
<result property="projectId" column="project_id"/>
|
|
|
+ <result property="educationName" column="education_name"/>
|
|
|
+ <result property="projectName" column="project_name"/>
|
|
|
+ <result property="businessName" column="business_name"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.base.bo.ShoppingCartQueryBo" resultMap="ShoppingCartVoResult">
|
|
|
@@ -38,12 +41,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
g.`status`,
|
|
|
g.goods_status,
|
|
|
g.project_id,
|
|
|
- ot.type AS template_type
|
|
|
+ ot.type AS template_type,
|
|
|
+ cet.education_name,
|
|
|
+ cpt.project_name,
|
|
|
+ cb.business_name,
|
|
|
FROM
|
|
|
shopping_cart s
|
|
|
LEFT JOIN goods g ON s.goods_id = g.goods_id
|
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
|
LEFT JOIN order_input_template ot ON cb.template_status = ot.id
|
|
|
+ LEFT JOIN course_education_type cet ON g.education_type_id = cet.id
|
|
|
+ LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
|
WHERE
|
|
|
s.user_id = #{userId}
|
|
|
order by s.update_time desc
|