|
@@ -64,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="liveSubscribe" column="live_subscribe"/>
|
|
|
<result property="liveStartTime" column="live_start_time"/>
|
|
|
<result property="liveEndTime" column="live_end_time"/>
|
|
|
+ <result property="liveUrl" column="live_url"/>
|
|
|
<result property="prefixName" column="prefix_name"/>
|
|
|
<result property="hasMockRemind" column="has_mock_remind"/>
|
|
|
<result property="hasLiveSubscribe" column="has_live_subscribe"/>
|
|
@@ -205,6 +206,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and ums.has_live_subscribe = 0
|
|
|
and cs.live_start_time is not null
|
|
|
</select>
|
|
|
+ <select id="listSubscribeInfo" parameterType="java.lang.Long" resultMap="UserMockSubscribeVoResult">
|
|
|
+ SELECT
|
|
|
+ ums.*,
|
|
|
+ cs.live_start_time,
|
|
|
+ cs.live_end_time,
|
|
|
+ cs.live_url
|
|
|
+ FROM
|
|
|
+ user_mock_subscribe ums
|
|
|
+ LEFT JOIN mock_major_subject mms ON ums.mock_major_subject_id = mms.mock_major_subject_id
|
|
|
+ LEFT JOIN course_section cs ON mms.section_id = cs.section_id
|
|
|
+ WHERE
|
|
|
+ ums.subscribe_id =#{subscribeId}
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
</mapper>
|