|
@@ -18,6 +18,7 @@
|
|
|
<result column="record_file_path_" property="recordFilePath" />
|
|
|
<result column="device_type_" property="deviceType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
|
|
|
<result column="client_id_" property="clientId" />
|
|
|
+ <result column="play_time_" property="playTime"/>
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
</resultMap>
|
|
|
|
|
@@ -39,9 +40,9 @@
|
|
|
</selectKey>
|
|
|
-->
|
|
|
INSERT INTO sys_music_compare_record (id_,user_id_,sys_music_score_id_,score_data_,score_,intonation_,cadence_,integrity_,
|
|
|
- record_file_path_,device_type_,client_id_,create_time_)
|
|
|
+ record_file_path_,device_type_,client_id_,play_time_,create_time_)
|
|
|
VALUES(#{id},#{userId},#{sysMusicScoreId},#{scoreData},#{score},#{intonation},#{cadence},#{integrity},
|
|
|
- #{recordFilePath},#{deviceType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{clientId},NOW())
|
|
|
+ #{recordFilePath},#{deviceType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{clientId},#{playTime},NOW())
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -77,6 +78,9 @@
|
|
|
<if test="clientId != null">
|
|
|
client_id_ = #{clientId},
|
|
|
</if>
|
|
|
+ <if test="playTime != null">
|
|
|
+ play_time_ = #{playTime},
|
|
|
+ </if>
|
|
|
</set> WHERE id_ = #{id}
|
|
|
</update>
|
|
|
|