|
@@ -150,6 +150,9 @@
|
|
AND t.notation_ = #{param.notation}
|
|
AND t.notation_ = #{param.notation}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ <if test="param.auditStatus != null">
|
|
|
|
+ group by msar.music_sheet_id_
|
|
|
|
+ </if>
|
|
order by
|
|
order by
|
|
<if test="param.sortByAlbumIdDesc != null">
|
|
<if test="param.sortByAlbumIdDesc != null">
|
|
if(isnull(tam.id_),0,1),
|
|
if(isnull(tam.id_),0,1),
|
|
@@ -165,11 +168,19 @@
|
|
and t.music_sheet_type_ = #{param.musicSheetType}
|
|
and t.music_sheet_type_ = #{param.musicSheetType}
|
|
</if>
|
|
</if>
|
|
<if test="param.idAndName != null and param.idAndName != ''">
|
|
<if test="param.idAndName != null and param.idAndName != ''">
|
|
- and (((su.id_ like concat('%',#{param.idAndName} ,'%')
|
|
|
|
- or su.username_ like concat('%',#{param.idAndName},'%')
|
|
|
|
- or t.music_sheet_name_ like concat('%',#{param.idAndName},'%')
|
|
|
|
- or su.phone_ like concat('%',#{param.idAndName},'%')) AND msar.audit_state_ = 'PASS') OR
|
|
|
|
- (JSON_UNQUOTE(JSON_EXTRACT(music_sheet_json_, '$.name')) LIKE CONCAT('%',#{param.idAndName},'%') AND msar.audit_state_ != 'PASS'))
|
|
|
|
|
|
+ <if test="param.auditStatus != null">
|
|
|
|
+ AND ((su.id_ like concat('%',#{param.idAndName} ,'%')
|
|
|
|
+ or su.username_ like concat('%',#{param.idAndName},'%')
|
|
|
|
+ or su.phone_ like concat('%',#{param.idAndName},'%')) OR
|
|
|
|
+ (t.music_sheet_name_ like concat('%',#{param.idAndName},'%') AND msar.audit_state_ = 'PASS') OR
|
|
|
|
+ (JSON_UNQUOTE(JSON_EXTRACT(music_sheet_json_, '$.name')) LIKE CONCAT('%',#{param.idAndName},'%') AND msar.audit_state_ != 'PASS'))
|
|
|
|
+ </if>
|
|
|
|
+ <if test="param.auditStatus == null">
|
|
|
|
+ AND (su.id_ like concat('%',#{param.idAndName} ,'%')
|
|
|
|
+ or su.username_ like concat('%',#{param.idAndName},'%')
|
|
|
|
+ or su.phone_ like concat('%',#{param.idAndName},'%') OR
|
|
|
|
+ t.music_sheet_name_ like concat('%',#{param.idAndName},'%'))
|
|
|
|
+ </if>
|
|
</if>
|
|
</if>
|
|
<if test="param.search != null and param.search != ''">
|
|
<if test="param.search != null and param.search != ''">
|
|
and (t.cbs_music_sheet_id_ like concat('%',#{param.search},'%') or
|
|
and (t.cbs_music_sheet_id_ like concat('%',#{param.search},'%') or
|
|
@@ -428,6 +439,9 @@
|
|
and #{param.auditVersion} = t.audit_version_
|
|
and #{param.auditVersion} = t.audit_version_
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ <if test="param.auditStatus != null">
|
|
|
|
+ group by msar.music_sheet_id_
|
|
|
|
+ </if>
|
|
order by
|
|
order by
|
|
|
|
|
|
<choose>
|
|
<choose>
|
|
@@ -482,6 +496,9 @@
|
|
AND mspr.course_music_album_id_ <choose><when test="param.courseGift == 0"> = </when><otherwise> > </otherwise> </choose> 0
|
|
AND mspr.course_music_album_id_ <choose><when test="param.courseGift == 0"> = </when><otherwise> > </otherwise> </choose> 0
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ <if test="param.auditStatus != null">
|
|
|
|
+ group by msar.music_sheet_id_
|
|
|
|
+ </if>
|
|
order by mspr.id_ desc
|
|
order by mspr.id_ desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -510,6 +527,9 @@
|
|
and mf.user_id_ = #{param.studentId}
|
|
and mf.user_id_ = #{param.studentId}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ <if test="param.auditStatus != null">
|
|
|
|
+ group by msar.music_sheet_id_
|
|
|
|
+ </if>
|
|
order by mf.id_ desc
|
|
order by mf.id_ desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -538,6 +558,9 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ <if test="param.auditStatus != null">
|
|
|
|
+ group by msar.music_sheet_id_
|
|
|
|
+ </if>
|
|
<if test="practiceMusicIdList != null and practiceMusicIdList.size() != 0">
|
|
<if test="practiceMusicIdList != null and practiceMusicIdList.size() != 0">
|
|
order by field(mspr.id_,
|
|
order by field(mspr.id_,
|
|
<foreach collection="practiceMusicIdList" item="item" separator=",">
|
|
<foreach collection="practiceMusicIdList" item="item" separator=",">
|