|
@@ -20,6 +20,7 @@
|
|
|
<result column="cadence_" property="cadence" />
|
|
|
<result column="integrity_" property="integrity" />
|
|
|
<result column="record_file_path_" property="recordFilePath" />
|
|
|
+ <result column="video_file_path_" property="videoFilePath" />
|
|
|
<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"/>
|
|
@@ -46,12 +47,12 @@
|
|
|
</selectKey>
|
|
|
-->
|
|
|
INSERT INTO sys_music_compare_record (id_,user_id_,sys_music_score_id_,heard_level_,behavior_id_,score_data_,score_,intonation_,cadence_,integrity_,
|
|
|
- record_file_path_,device_type_,client_id_,play_time_,monday_,
|
|
|
- feature_,create_time_)
|
|
|
+ record_file_path_,video_file_path_,device_type_,client_id_,play_time_,monday_,
|
|
|
+ feature_,create_time_,update_time_)
|
|
|
VALUES(#{id},#{userId},#{sysMusicScoreId},#{heardLevel,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{behaviorId},#{scoreData},
|
|
|
#{score},#{intonation},#{cadence},#{integrity},
|
|
|
- #{recordFilePath},#{deviceType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{clientId},#{playTime},#{monday},
|
|
|
- #{feature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, NOW())
|
|
|
+ #{recordFilePath},#{videoFilePath},#{deviceType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{clientId},#{playTime},#{monday},
|
|
|
+ #{feature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, NOW(), NOW())
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -60,39 +61,52 @@
|
|
|
<if test="userId != null">
|
|
|
user_id_ = #{userId},
|
|
|
</if>
|
|
|
- <if test="id != null">
|
|
|
- id_ = #{id},
|
|
|
- </if>
|
|
|
<if test="sysMusicScoreId != null">
|
|
|
sys_music_score_id_ = #{sysMusicScoreId},
|
|
|
</if>
|
|
|
+ <if test="behaviorId!=null">
|
|
|
+ behavior_id_ = #{behaviorId},
|
|
|
+ </if>
|
|
|
<if test="scoreData != null">
|
|
|
score_data_ = #{scoreData},
|
|
|
</if>
|
|
|
<if test="score != null">
|
|
|
score_ = #{score},
|
|
|
</if>
|
|
|
+ <if test="intonation!=null">
|
|
|
+ intonation_ = #{intonation},
|
|
|
+ </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="videoFilePath != null">
|
|
|
+ video_file_path_ = #{videoFilePath},
|
|
|
+ </if>
|
|
|
<if test="clientId != null">
|
|
|
client_id_ = #{clientId},
|
|
|
</if>
|
|
|
+ <if test="deviceType!=null">
|
|
|
+ device_type_ = #{deviceType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
<if test="playTime != null">
|
|
|
play_time_ = #{playTime},
|
|
|
</if>
|
|
|
<if test="monday != null">
|
|
|
monday_ = #{monday},
|
|
|
</if>
|
|
|
+ <if test="feature!=null">
|
|
|
+ feature_ = #{feature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="heardLevel!=null">
|
|
|
+ heard_level_ = #{heardLevel,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ update_time_ = NOW()
|
|
|
</set> WHERE id_ = #{id}
|
|
|
</update>
|
|
|
|