|
@@ -22,6 +22,8 @@
|
|
<result column="speed_" property="speed" />
|
|
<result column="speed_" property="speed" />
|
|
<result column="create_time_" property="createTime" />
|
|
<result column="create_time_" property="createTime" />
|
|
<result column="update_time_" property="updateTime" />
|
|
<result column="update_time_" property="updateTime" />
|
|
|
|
+ <result column="is_show_fingering_" property="isShowFingering" />
|
|
|
|
+ <result column="memo_" property="memo" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<delete id="deleteBySongId">
|
|
<delete id="deleteBySongId">
|
|
@@ -48,10 +50,10 @@
|
|
VALUES(#{examSongId},#{subjectId},#{mp3Url},#{speed},#{xmlUrl},NOW(),NOW())
|
|
VALUES(#{examSongId},#{subjectId},#{mp3Url},#{speed},#{xmlUrl},NOW(),NOW())
|
|
</insert>
|
|
</insert>
|
|
<insert id="batchInsert">
|
|
<insert id="batchInsert">
|
|
- INSERT INTO sys_music_score_accompaniment (exam_song_id_,subject_id_,mp3_url_,speed_,xml_url_,create_time_,update_time_)
|
|
|
|
|
|
+ INSERT INTO sys_music_score_accompaniment (exam_song_id_,subject_id_,mp3_url_,speed_,xml_url_,create_time_,update_time_,is_show_fingering_,memo_)
|
|
VALUES
|
|
VALUES
|
|
<foreach collection="sysMusicScoreAccompaniments" item="item" separator=",">
|
|
<foreach collection="sysMusicScoreAccompaniments" item="item" separator=",">
|
|
- (#{sysMusicScoreId},#{item.subjectId},#{item.mp3Url},#{item.speed},#{item.xmlUrl},NOW(),NOW())
|
|
|
|
|
|
+ (#{sysMusicScoreId},#{item.subjectId},#{item.mp3Url},#{item.speed},#{item.xmlUrl},NOW(),NOW(),#{item.isShowFingering},#{item.memo})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -59,6 +61,12 @@
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.SysMusicScoreAccompaniment">
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.SysMusicScoreAccompaniment">
|
|
UPDATE sys_music_score_accompaniment
|
|
UPDATE sys_music_score_accompaniment
|
|
<set>
|
|
<set>
|
|
|
|
+ <if test="isShowFingering != null">
|
|
|
|
+ is_show_fingering_ = #{isShowFingering},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="memo != null">
|
|
|
|
+ memo_ = #{memo},
|
|
|
|
+ </if>
|
|
<if test="subjectId != null">
|
|
<if test="subjectId != null">
|
|
subject_id_ = #{subjectId},
|
|
subject_id_ = #{subjectId},
|
|
</if>
|
|
</if>
|
|
@@ -87,6 +95,12 @@
|
|
<foreach collection="sysMusicScoreAccompaniments" item="item" separator=";">
|
|
<foreach collection="sysMusicScoreAccompaniments" item="item" separator=";">
|
|
UPDATE sys_music_score_accompaniment
|
|
UPDATE sys_music_score_accompaniment
|
|
<set>
|
|
<set>
|
|
|
|
+ <if test="item.isShowFingering != null">
|
|
|
|
+ is_show_fingering_ = #{item.isShowFingering},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="item.memo != null">
|
|
|
|
+ memo_ = #{item.memo},
|
|
|
|
+ </if>
|
|
<if test="item.speed != null">
|
|
<if test="item.speed != null">
|
|
speed_ = #{item.speed},
|
|
speed_ = #{item.speed},
|
|
</if>
|
|
</if>
|
|
@@ -188,6 +202,9 @@
|
|
<if test="subjectId != null">
|
|
<if test="subjectId != null">
|
|
AND sesa.subject_id_ = #{subjectId}
|
|
AND sesa.subject_id_ = #{subjectId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isShowFingering != null">
|
|
|
|
+ AND sesa.is_show_fingering_ = #{isShowFingering}
|
|
|
|
+ </if>
|
|
<if test="type != null and type == 'COMMON'">
|
|
<if test="type != null and type == 'COMMON'">
|
|
AND ses.type_ = #{type}
|
|
AND ses.type_ = #{type}
|
|
</if>
|
|
</if>
|