|
@@ -30,14 +30,7 @@
|
|
<select id="selectPage" resultType="com.yonge.cooleshow.biz.dal.vo.CourseCoursewareVo">
|
|
<select id="selectPage" resultType="com.yonge.cooleshow.biz.dal.vo.CourseCoursewareVo">
|
|
SELECT
|
|
SELECT
|
|
<include refid="baseColumns" />
|
|
<include refid="baseColumns" />
|
|
- ,ms.music_sheet_name_ as musicSheetName
|
|
|
|
- ,ms.state_ as musicStatus
|
|
|
|
- ,ms.payment_type_ as paymentType
|
|
|
|
- ,ms.music_img_ as musicImg
|
|
|
|
- ,ms.title_img_ as titleImg
|
|
|
|
,ms.cbs_music_sheet_id_ as cbsMusicSheetId
|
|
,ms.cbs_music_sheet_id_ as cbsMusicSheetId
|
|
- ,CASE WHEN ms.audio_file_url_ IS NOT NULL AND ms.audio_file_url_ != '' THEN ms.audio_file_url_
|
|
|
|
- WHEN ms.metronome_url_ IS NOT NULL AND ms.metronome_url_ != '' THEN ms.metronome_url_ ELSE ms.url_ END AS url
|
|
|
|
FROM course_courseware t
|
|
FROM course_courseware t
|
|
left join music_sheet ms on t.music_sheet_id_ = ms.id_
|
|
left join music_sheet ms on t.music_sheet_id_ = ms.id_
|
|
<where>
|
|
<where>
|
|
@@ -49,7 +42,7 @@
|
|
and t.client_type_ = #{param.clientType}
|
|
and t.client_type_ = #{param.clientType}
|
|
</if>
|
|
</if>
|
|
<if test="param.idAndName != null and param.idAndName != ''">
|
|
<if test="param.idAndName != null and param.idAndName != ''">
|
|
- and (ms.music_sheet_name_ like '%${param.idAndName}%' or ms.id_ like '%${param.idAndName}%')
|
|
|
|
|
|
+ and (ms.music_sheet_name_ like '%${param.idAndName}%' or ms.cbs_music_sheet_id_ = '${param.idAndName}')
|
|
</if>
|
|
</if>
|
|
<if test="param.musicTagIdList != null and param.musicTagIdList.size() != 0">
|
|
<if test="param.musicTagIdList != null and param.musicTagIdList.size() != 0">
|
|
and
|
|
and
|
|
@@ -58,10 +51,10 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="param.subjectIdList != null and param.subjectIdList.size() != 0">
|
|
<if test="param.subjectIdList != null and param.subjectIdList.size() != 0">
|
|
- and
|
|
|
|
- <foreach collection="param.subjectIdList" separator="or" item="item" open="(" close=")" >
|
|
|
|
|
|
+ and (ms.music_subject_ is null or ms.music_subject_ = '' or ms.music_sheet_type_ = 'CONCERT'
|
|
|
|
+ <foreach collection="param.subjectIdList" separator="or" item="item" open="(" close=")">
|
|
find_in_set(#{item},ms.music_subject_)
|
|
find_in_set(#{item},ms.music_subject_)
|
|
- </foreach>
|
|
|
|
|
|
+ </foreach>)
|
|
</if>
|
|
</if>
|
|
<if test="param.status != null and param.status.code == 1">
|
|
<if test="param.status != null and param.status.code == 1">
|
|
and (ms.payment_type_ like '%FREE%'
|
|
and (ms.payment_type_ like '%FREE%'
|