|
@@ -70,6 +70,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND og.order_sn = #{orderSn}
|
|
|
</if>
|
|
|
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectDetail" parameterType="com.zhongzheng.modules.order.bo.OrderGoodsQueryBo" resultMap="OrderGoodsResultVo">
|
|
|
+ SELECT
|
|
|
+ og.*,
|
|
|
+ g.`code`,
|
|
|
+ g.goods_name,
|
|
|
+ cet.education_name,
|
|
|
+ cpt.project_name,
|
|
|
+ cb.business_name
|
|
|
+ FROM
|
|
|
+ order_goods og
|
|
|
+ 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_project_type cpt ON g.project_id = cpt.id
|
|
|
+ LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
|
+ WHERE
|
|
|
+ og.order_sn = #{orderSn} AND og.goods_id = #{goodsId}
|
|
|
|
|
|
</select>
|
|
|
</mapper>
|