|
@@ -149,11 +149,11 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
<select id="queryAccPage" resultMap="SysExamSongAccompaniment">
|
|
|
- SELECT sesa.*,ses.name_,ses.type_,ses.url_
|
|
|
+ SELECT sesa.*,ses.name_,ses.type_,ses.url_,s.name_ subject_name_
|
|
|
FROM sys_exam_song_accompaniment sesa
|
|
|
LEFT JOIN sys_exam_song ses ON ses.id_ = sesa.exam_song_id_
|
|
|
+ LEFT JOIN subject s ON s.id_ = sesa.subject_id_
|
|
|
<include refid="queryPageSql"/>
|
|
|
- <include refid="global.limit"/>
|
|
|
</select>
|
|
|
<select id="findAccCount" resultType="java.lang.Integer">
|
|
|
SELECT COUNT(DISTINCT sesa.id_) FROM sys_exam_song_accompaniment sesa
|
|
@@ -166,6 +166,9 @@
|
|
|
<if test="search != null and search != ''">
|
|
|
AND (sesa.id_ = #{search} OR ses.name_ LIKE CONCAT('%',#{search},'%'))
|
|
|
</if>
|
|
|
+ <if test="sysExamSongId != null">
|
|
|
+ AND sesa.exam_song_id_ = #{sysExamSongId}
|
|
|
+ </if>
|
|
|
<if test="subjectId != null">
|
|
|
AND sesa.subject_id_ = #{subjectId}
|
|
|
</if>
|