|
@@ -144,6 +144,8 @@
|
|
|
|
|
|
<select id="selectAlbumDetailPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicSheetVo">
|
|
<select id="selectAlbumDetailPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicSheetVo">
|
|
select distinct <include refid="Base_Column_List"/>
|
|
select distinct <include refid="Base_Column_List"/>
|
|
|
|
+ ,su.username_ as addName
|
|
|
|
+ ,su.avatar_ as addUserAvatar
|
|
,(select group_concat(mt.name_) from music_tag mt
|
|
,(select group_concat(mt.name_) from music_tag mt
|
|
where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0 and mt.state_ = 1) as musicTagNames
|
|
where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0 and mt.state_ = 1) as musicTagNames
|
|
,(select group_concat(s.name_) from subject s
|
|
,(select group_concat(s.name_) from subject s
|
|
@@ -153,6 +155,7 @@
|
|
,amr.sort_number_ as albumSortNumber
|
|
,amr.sort_number_ as albumSortNumber
|
|
from music_sheet t
|
|
from music_sheet t
|
|
left join album_music_relate amr on t.id_ = amr.music_sheet_id_
|
|
left join album_music_relate amr on t.id_ = amr.music_sheet_id_
|
|
|
|
+ left join sys_user su on t.create_by_ = su.id_
|
|
<where>
|
|
<where>
|
|
<if test="param.idAndName != null and param.idAndName != ''">
|
|
<if test="param.idAndName != null and param.idAndName != ''">
|
|
and (t.id_ like concat('%',#{param.idAndName},'%') or
|
|
and (t.id_ like concat('%',#{param.idAndName},'%') or
|
|
@@ -383,9 +386,9 @@
|
|
where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0 and mt.state_ = 1) as musicTagNames
|
|
where find_in_set(mt.id_,t.music_tag_) and mt.del_flag_ = 0 and mt.state_ = 1) as musicTagNames
|
|
,(select group_concat(s.name_) from subject s where find_in_set(s.id_,t.music_subject_) ) as subjectNames
|
|
,(select group_concat(s.name_) from subject s where find_in_set(s.id_,t.music_subject_) ) as subjectNames
|
|
,if(mf.id_ is not null,1,0) as favorite
|
|
,if(mf.id_ is not null,1,0) as favorite
|
|
- from music_sheet t
|
|
|
|
|
|
+ from music_sheet_practice_record mspr
|
|
|
|
+ left join music_sheet t on mspr.music_sheet_id_ = t.id_
|
|
left join sys_user su on t.create_by_ = su.id_
|
|
left join sys_user su on t.create_by_ = su.id_
|
|
- left join music_sheet_practice_record mspr on mspr.music_sheet_id_ = t.id_
|
|
|
|
left join music_favorite mf on t.id_ = mf.music_sheet_id_ and mspr.user_id_ = mf.user_id_
|
|
left join music_favorite mf on t.id_ = mf.music_sheet_id_ and mspr.user_id_ = mf.user_id_
|
|
<where>
|
|
<where>
|
|
su.del_flag_ = 0
|
|
su.del_flag_ = 0
|