|
@@ -32,6 +32,15 @@
|
|
|
<result column="part_index_" property="partIndex" />
|
|
|
<result column="tenant_id_" property="tenantId"/>
|
|
|
<result column="subject_id_" property="subjectId"/>
|
|
|
+ <result column="custom_configuration_" property="customConfiguration"/>
|
|
|
+ <result column="practice_time_" property="practiceTime"/>
|
|
|
+ <result column="practice_source_" property="practiceSource"/>
|
|
|
+ <result column="result_analyze_" property="resultAnalyze"/>
|
|
|
+ <result column="headphone_flag_" property="headphoneFlag"/>
|
|
|
+ <result column="instrument_id_" property="instrumentId"/>
|
|
|
+ <result column="hidden_flag_" property="hiddenFlag"/>
|
|
|
+ <result column="del_flag_" property="delFlag"/>
|
|
|
+ <result column="play_rate_" property="playRate"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -48,11 +57,13 @@
|
|
|
<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_,create_date_,update_time_,part_index_,tenant_id_,subject_id_)
|
|
|
+ source_time_,feature_,create_time_,create_date_,update_time_,part_index_,tenant_id_,subject_id_,
|
|
|
+ custom_configuration_,practice_time_,practice_source_,result_analyze_,headphone_flag_,instrument_id_,hidden_flag_,del_flag_,play_rate_)
|
|
|
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}, #{createTime}, #{createDate}, NOW(),#{partIndex},#{tenantId},#{subjectId})
|
|
|
+ #{sourceTime},#{feature,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{createTime}, #{createDate}, NOW(),#{partIndex},#{tenantId},#{subjectId}
|
|
|
+ ,#{customConfiguration},#{practiceTime},#{practiceSource},#{resultAnalyze},#{headphoneFlag},#{instrumentId},#{hiddenFlag},#{delFlag},#{playRate})
|
|
|
</insert>
|
|
|
<insert id="init">
|
|
|
insert into sys_music_compare_day_data (user_id_, day_, train_num_, train_time_, tenant_id_)
|
|
@@ -125,6 +136,33 @@
|
|
|
<if test="heardLevel!=null">
|
|
|
heard_level_ = #{heardLevel,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
+ <if test="customConfiguration != null and customConfiguration != ''">
|
|
|
+ custom_configuration_ = #{customConfiguration},
|
|
|
+ </if>
|
|
|
+ <if test="practiceSource != null and practiceSource != ''">
|
|
|
+ practice_source_ = #{practiceSource},
|
|
|
+ </if>
|
|
|
+ <if test="practiceSource != null and practiceSource != ''">
|
|
|
+ practice_time_ = #{practiceTime},
|
|
|
+ </if>
|
|
|
+ <if test="resultAnalyze != null and resultAnalyze != ''">
|
|
|
+ result_analyze_ = #{resultAnalyze},
|
|
|
+ </if>
|
|
|
+ <if test="headphoneFlag != null">
|
|
|
+ headphone_flag_ = #{headphoneFlag},
|
|
|
+ </if>
|
|
|
+ <if test="instrumentId != null">
|
|
|
+ instrument_id_ = #{instrumentId},
|
|
|
+ </if>
|
|
|
+ <if test="hiddenFlag != null">
|
|
|
+ hidden_flag_ = #{hiddenFlag},
|
|
|
+ </if>
|
|
|
+ <if test="delFlag != null">
|
|
|
+ del_flag_ = #{delFlag},
|
|
|
+ </if>
|
|
|
+ <if test="playRate != null">
|
|
|
+ play_rate_ = #{playRate},
|
|
|
+ </if>
|
|
|
update_time_ = NOW()
|
|
|
</set> WHERE id_ = #{id} and tenant_id_ = #{tenantId}
|
|
|
</update>
|