|
@@ -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"/>
|
|
@@ -154,7 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND mms.subject_id = #{subjectId}
|
|
|
</if>
|
|
|
<if test="applyName != null and applyName != ''">
|
|
|
- AND ma.apply_Name = #{applyName}
|
|
|
+ AND ma.apply_name = #{applyName}
|
|
|
</if>
|
|
|
<if test="subscribeStatus != null and subscribeStatus != ''">
|
|
|
AND ums.subscribe_status = #{subscribeStatus}
|
|
@@ -184,7 +185,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and ums.user_id = #{userId}
|
|
|
</if>
|
|
|
<if test="applyName != null and applyName != ''">
|
|
|
- and ma.applyName = #{applyName}
|
|
|
+ and ma.apply_name = #{applyName}
|
|
|
</if>
|
|
|
AND ma.`status` = 1
|
|
|
</select>
|
|
@@ -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>
|