|
@@ -11,6 +11,11 @@
|
|
|
<result column="user_id_" property="userId" />
|
|
|
<result column="sys_music_score_id_" property="sysMusicScoreId" />
|
|
|
<result column="score_data_" property="scoreData" />
|
|
|
+ <result column="score_" property="score" />
|
|
|
+ <result column="intonation_" property="intonation" />
|
|
|
+ <result column="cadence_" property="cadence" />
|
|
|
+ <result column="integrity_" property="integrity" />
|
|
|
+ <result column="record_file_path_" property="recordFilePath" />
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
</resultMap>
|
|
|
|
|
@@ -31,8 +36,8 @@
|
|
|
SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL
|
|
|
</selectKey>
|
|
|
-->
|
|
|
- INSERT INTO sys_music_compare_record (id_,user_id_,sys_music_score_id_,score_data_,create_time_)
|
|
|
- VALUES(#{id},#{userId},#{sysMusicScoreId},#{scoreData},NOW())
|
|
|
+ INSERT INTO sys_music_compare_record (id_,user_id_,sys_music_score_id_,score_data_,score_,intonation_,cadence_,integrity_,record_file_path_,create_time_)
|
|
|
+ VALUES(#{id},#{userId},#{sysMusicScoreId},#{scoreData},#{score},#{intonation},#{cadence},#{integrity},#{recordFilePath},NOW())
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -50,6 +55,21 @@
|
|
|
<if test="scoreData != null">
|
|
|
score_data_ = #{scoreData},
|
|
|
</if>
|
|
|
+ <if test="score != null">
|
|
|
+ score_ = #{score},
|
|
|
+ </if>
|
|
|
+ <if test="integrity != null">
|
|
|
+ integrity_ = #{integrity},
|
|
|
+ </if>
|
|
|
+ <if test="cadence != null">
|
|
|
+ cadence_ = #{cadence},
|
|
|
+ </if>
|
|
|
+ <if test="sysMusicScoreId != null">
|
|
|
+ sys_music_score_id_ = #{sysMusicScoreId},
|
|
|
+ </if>
|
|
|
+ <if test="recordFilePath != null">
|
|
|
+ record_file_path_ = #{recordFilePath},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time_ = #{createTime},
|
|
|
</if>
|