|
@@ -383,9 +383,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
|