|
@@ -46,6 +46,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="majorId" column="major_id"/>
|
|
<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"/>
|
|
<result property="eachExamId" column="each_exam_id"/>
|
|
|
|
+ <result property="sectionType" column="section_type"/>
|
|
|
|
+ <result property="liveUrl" column="live_url"/>
|
|
|
|
+ <result property="liveStartTime" column="live_start_time"/>
|
|
|
|
+ <result property="liveEndTime" column="live_end_time"/>
|
|
|
|
+ <result property="recordingUrl" column="recording_url"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
<select id="getMockSubjectInfo" parameterType="java.lang.Long" resultMap="MockApplyVoResult">
|
|
<select id="getMockSubjectInfo" parameterType="java.lang.Long" resultMap="MockApplyVoResult">
|
|
SELECT ma.*,
|
|
SELECT ma.*,
|
|
@@ -173,6 +178,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
GROUP BY a.business_id,a.business_name,a.project_id,a.project_name
|
|
GROUP BY a.business_id,a.business_name,a.project_id,a.project_name
|
|
HAVING COUNT(a.project_id)=2
|
|
HAVING COUNT(a.project_id)=2
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="listMockLive" parameterType="com.zhongzheng.modules.mock.bo.MockApplyQueryBo" resultMap="MockApplyVoResult">
|
|
|
|
+ SELECT
|
|
|
|
+ ma.*,
|
|
|
|
+ cb.business_name,
|
|
|
|
+ cpt.project_name,
|
|
|
|
+ cs.section_type,
|
|
|
|
+ cs.live_url,
|
|
|
|
+ cs.live_start_time,
|
|
|
|
+ cs.live_end_time,
|
|
|
|
+ cs.recording_url
|
|
|
|
+ FROM
|
|
|
|
+ mock_apply ma
|
|
|
|
+ LEFT JOIN mock_major mm ON ma.apply_id = mm.apply_id
|
|
|
|
+ LEFT JOIN mock_major_subject mms ON mm.mock_major_id = mms.mock_major_id
|
|
|
|
+ LEFT JOIN course_business cb ON ma.business_id = cb.id
|
|
|
|
+ LEFT JOIN course_project_type cpt ON ma.project_id = cpt.id
|
|
|
|
+ LEFT JOIN course_section cs ON mms.section_id = cs.section_id
|
|
|
|
+ WHERE 1=1
|
|
|
|
+ <if test="startTime != null and starTime != ''">
|
|
|
|
+ AND cs.live_start_time > #{startTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
|
+ AND cs.live_end_time < #{endTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="applyName != null and applyName != ''">
|
|
|
|
+ AND ma.apply_name = #{applyName}
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|