|
@@ -29,6 +29,7 @@
|
|
|
<result column="feature_" property="feature" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
|
|
|
<result column="monday_" property="monday"/>
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
+ <result column="part_index_" property="partIndex" />
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
@@ -45,11 +46,11 @@
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.SysMusicCompareRecord" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
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_,speed_,monday_,
|
|
|
- source_time_,feature_,create_time_,update_time_)
|
|
|
+ source_time_,feature_,create_time_,update_time_,part_index_)
|
|
|
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},#{speed},#{monday},
|
|
|
- #{sourceTime},#{feature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, NOW(), NOW())
|
|
|
+ #{sourceTime},#{feature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, NOW(), NOW(),#{partIndex})
|
|
|
</insert>
|
|
|
|
|
|
|
|
@@ -103,6 +104,9 @@
|
|
|
<if test="monday != null">
|
|
|
monday_ = #{monday},
|
|
|
</if>
|
|
|
+ <if test="partIndex != null">
|
|
|
+ part_index_ = #{partIndex},
|
|
|
+ </if>
|
|
|
<if test="feature!=null">
|
|
|
feature_ = #{feature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|