|
@@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="status" column="status"/>
|
|
|
+ <result property="gradeType" column="grade_type"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.zhongzheng.modules.order.vo.OrderBusinessConfigVo" id="OrderBusinessConfigVoResult">
|
|
@@ -21,6 +22,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="gradeType" column="grade_type"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getList" parameterType="com.zhongzheng.modules.order.bo.OrderBusinessConfigQueryBo" resultMap="OrderBusinessConfigVoResult">
|
|
@@ -37,6 +39,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN course_education_type cet ON cet.id = cpt.education_id
|
|
|
WHERE
|
|
|
obc.`status` = 1
|
|
|
+ <if test="gradeType != null and gradeType != ''">
|
|
|
+ and obc.grade_type = #{gradeType}
|
|
|
+ </if>
|
|
|
<if test="businessId != null and businessId != ''">
|
|
|
and obc.business_id = #{businessId}
|
|
|
</if>
|
|
@@ -46,6 +51,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="educationId != null and educationId != ''">
|
|
|
and cet.id = #{educationId}
|
|
|
</if>
|
|
|
+ <if test="subjectId != null and subjectId != ''">
|
|
|
+ and (SELECT COUNT(obcg.id) FROM order_business_config_goods obcg where obcg.subject_id = #{subjectId} AND obcg.config_id = obc.id AND obcg.`status` = 1) > 0
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="getDetail" parameterType="com.zhongzheng.modules.order.bo.OrderBusinessConfigQueryBo" resultMap="OrderBusinessConfigVoResult">
|