|
@@ -23,6 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="coverUrl" column="cover_url"/>
|
|
|
<result property="goodsStatus" column="goods_status"/>
|
|
|
<result property="goodsType" column="goods_type"/>
|
|
|
+ <result property="templateType" column="template_type"/>
|
|
|
+ <result property="projectId" column="project_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.base.bo.ShoppingCartQueryBo" resultMap="ShoppingCartVoResult">
|
|
@@ -34,10 +36,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
g.goods_type,
|
|
|
g.goods_name,
|
|
|
g.`status`,
|
|
|
- g.goods_status
|
|
|
+ g.goods_status,
|
|
|
+ g.project_id,
|
|
|
+ ot.type AS template_type
|
|
|
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
|
|
|
WHERE
|
|
|
s.user_id = #{userId}
|
|
|
</select>
|