|
@@ -51,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="educationName" column="education_name"/>
|
|
<result property="educationName" column="education_name"/>
|
|
<result property="projectName" column="project_name"/>
|
|
<result property="projectName" column="project_name"/>
|
|
<result property="businessName" column="business_name"/>
|
|
<result property="businessName" column="business_name"/>
|
|
|
|
+ <result property="createBy" column="create_by"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.order.bo.OrderGoodsQueryBo" resultMap="OrderGoodsResultVo">
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.order.bo.OrderGoodsQueryBo" resultMap="OrderGoodsResultVo">
|
|
@@ -82,13 +83,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
g.goods_name,
|
|
g.goods_name,
|
|
cet.education_name,
|
|
cet.education_name,
|
|
cpt.project_name,
|
|
cpt.project_name,
|
|
- cb.business_name
|
|
|
|
|
|
+ cb.business_name,
|
|
|
|
+ o.create_by
|
|
FROM
|
|
FROM
|
|
order_goods og
|
|
order_goods og
|
|
LEFT JOIN goods g ON og.goods_id = g.goods_id
|
|
LEFT JOIN goods g ON og.goods_id = g.goods_id
|
|
LEFT JOIN course_education_type cet ON g.education_type_id = cet.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
|
|
LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
|
|
+ LEFT JOIN order o ON og.order_sn = o.order_sn
|
|
WHERE
|
|
WHERE
|
|
og.order_sn = #{orderSn} AND og.goods_id = #{goodsId}
|
|
og.order_sn = #{orderSn} AND og.goods_id = #{goodsId}
|
|
|
|
|