|
@@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="subscribeCancelNum" column="subscribe_cancel_num"/>
|
|
|
<result property="majorId" column="major_id"/>
|
|
|
<result property="categoryName" column="category_name"/>
|
|
|
- <result property="categoryName" column="category_name"/>
|
|
|
+ <result property="eachExamId" column="each_exam_id"/>
|
|
|
</resultMap>
|
|
|
<select id="getMockSubjectInfo" parameterType="java.lang.Long" resultMap="MockApplyVoResult">
|
|
|
SELECT ma.*,
|
|
@@ -82,7 +82,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ORDER BY ma.create_time desc
|
|
|
</select>
|
|
|
<select id="queryApplyList" parameterType="com.zhongzheng.modules.mock.bo.MockApplyQueryBo" resultMap="MockApplyVoResult">
|
|
|
- SELECT ma.business_id,
|
|
|
+ SELECT ma.apply_id,
|
|
|
+ ma.business_id,
|
|
|
cb.business_name,
|
|
|
ma.apply_name,
|
|
|
ma.project_id,
|
|
@@ -95,7 +96,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
mms.section_id,
|
|
|
mmst.exam_time,
|
|
|
mmst.start_time,
|
|
|
- mmst.end_time
|
|
|
+ mmst.end_time,
|
|
|
+ mms.mock_major_subject_id,
|
|
|
+ ma.apply_start_time,
|
|
|
+ ma.apply_end_time,
|
|
|
+ mmst.id each_exam_id
|
|
|
FROM mock_apply ma
|
|
|
LEFT JOIN course_business cb ON ma.business_id = cb.id
|
|
|
LEFT JOIN course_project_type cpt ON ma.project_id = cpt.id
|
|
@@ -112,6 +117,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="majorId != null and majorId != ''">
|
|
|
and mm.major_id = #{majorId}
|
|
|
</if>
|
|
|
+ <if test="subjectId != null and subjectId != ''">
|
|
|
+ and mms.subject_id = #{subjectId}
|
|
|
+ </if>
|
|
|
<if test="businessId != null and businessId != ''">
|
|
|
and ma.business_id = #{businessId}
|
|
|
</if>
|