|
@@ -23,6 +23,7 @@
|
|
|
<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="source_time_" property="sourceTime"/>
|
|
|
<result column="play_time_" property="playTime"/>
|
|
|
<result column="feature_" property="feature" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
|
|
|
<result column="monday_" property="monday"/>
|
|
@@ -48,11 +49,11 @@
|
|
|
-->
|
|
|
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_,video_file_path_,device_type_,client_id_,play_time_,monday_,
|
|
|
- feature_,create_time_,update_time_)
|
|
|
+ source_time_,feature_,create_time_,update_time_)
|
|
|
VALUES(#{id},#{userId},#{sysMusicScoreId},#{heardLevel,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{behaviorId},#{scoreData},
|
|
|
#{score},#{intonation},#{cadence},#{integrity},
|
|
|
#{recordFilePath},#{videoFilePath},#{deviceType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{clientId},#{playTime},#{monday},
|
|
|
- #{feature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, NOW(), NOW())
|
|
|
+ #{sourceTime},#{feature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, NOW(), NOW())
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -94,6 +95,9 @@
|
|
|
<if test="deviceType!=null">
|
|
|
device_type_ = #{deviceType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
+ <if test="sourceTime != null">
|
|
|
+ source_time_ = #{sourceTime},
|
|
|
+ </if>
|
|
|
<if test="playTime != null">
|
|
|
play_time_ = #{playTime},
|
|
|
</if>
|