|
|
@@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="businessName" column="business_name"/>
|
|
|
<result property="educationName" column="education_name"/>
|
|
|
<result property="projectName" column="project_name"/>
|
|
|
+ <result property="configName" column="config_name"/>
|
|
|
<collection property="goodsList" column="goods_ids" select="findGoodsList"/>
|
|
|
</resultMap>
|
|
|
|
|
|
@@ -59,7 +60,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.order.bo.OrderBusinessConfigGoodsQueryBo" resultMap="OrderBusinessConfigGoodsVoResult">
|
|
|
SELECT
|
|
|
bcg.*,
|
|
|
- cs.subject_name
|
|
|
+ cs.subject_name,
|
|
|
+ obc.config_name
|
|
|
FROM
|
|
|
order_business_config_goods bcg
|
|
|
LEFT JOIN order_business_config obc ON bcg.config_id = obc.id
|
|
|
@@ -68,8 +70,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN course_education_type cet ON cet.id = cpt.education_id
|
|
|
LEFT JOIN course_subject cs on bcg.subject_id = cs.id
|
|
|
WHERE
|
|
|
- bcg.config_id = #{configId}
|
|
|
-
|
|
|
+ obc.`status` = 1
|
|
|
+ and bcg.`status` = 1
|
|
|
+ <if test="configId != null and configId != ''">
|
|
|
+ and bcg.config_id = #{configId}
|
|
|
+ </if>
|
|
|
+ <if test="gradeType != null and gradeType != ''">
|
|
|
+ and obc.grade_type = #{gradeType}
|
|
|
+ </if>
|
|
|
+ <if test="businessId != null and businessId != ''">
|
|
|
+ and obc.business_id = #{businessId}
|
|
|
+ </if>
|
|
|
+ <if test="projectId != null and projectId != ''">
|
|
|
+ and cpt.id = #{projectId}
|
|
|
+ </if>
|
|
|
+ <if test="educationId != null and educationId != ''">
|
|
|
+ and cet.id = #{educationId}
|
|
|
+ </if>
|
|
|
+ <if test="subjectId != null and subjectId != ''">
|
|
|
+ and bcg.subject_id = #{subjectId}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|