|
@@ -63,9 +63,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.order.bo.OrderBusinessConfigGoodsQueryBo" resultMap="OrderBusinessConfigGoodsVoResult">
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.order.bo.OrderBusinessConfigGoodsQueryBo" resultMap="OrderBusinessConfigGoodsVoResult">
|
|
|
SELECT
|
|
SELECT
|
|
|
- bcg.*,
|
|
|
|
|
- cs.subject_name,
|
|
|
|
|
- obc.config_name
|
|
|
|
|
|
|
+ bcg.config_id,
|
|
|
|
|
+ any_value ( obc.config_name ) config_name,
|
|
|
|
|
+ group_concat( bcg.goods_ids ) goods_ids
|
|
|
FROM
|
|
FROM
|
|
|
order_business_config_goods bcg
|
|
order_business_config_goods bcg
|
|
|
LEFT JOIN order_business_config obc ON bcg.config_id = obc.id
|
|
LEFT JOIN order_business_config obc ON bcg.config_id = obc.id
|
|
@@ -106,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="subjectName != null and subjectName != ''">
|
|
<if test="subjectName != null and subjectName != ''">
|
|
|
and cs.subject_name = #{subjectName}
|
|
and cs.subject_name = #{subjectName}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ GROUP BY bcg.config_id
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|