|
@@ -30,6 +30,7 @@
|
|
|
<result column="monday_" property="monday"/>
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
<result column="part_index_" property="partIndex" />
|
|
|
+ <result column="custom_configuration_" property="customConfiguration" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -46,11 +47,11 @@
|
|
|
<insert id="insert" parameterType="com.yonge.cooleshow.biz.dal.entity.SysMusicCompareRecord" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO sys_music_compare_record (id_,user_id_,music_sheet_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_,part_index_)
|
|
|
+ source_time_,feature_,create_time_,update_time_,part_index_,custom_configuration_)
|
|
|
VALUES(#{id},#{userId},#{musicSheetId},#{heardLevel,typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler},#{behaviorId},#{scoreData},
|
|
|
#{score},#{intonation},#{cadence},#{integrity},
|
|
|
#{recordFilePath},#{videoFilePath},#{deviceType,typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler},#{clientId},#{playTime},#{speed},#{monday},
|
|
|
- #{sourceTime},#{feature,typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler}, NOW(), NOW(),#{partIndex})
|
|
|
+ #{sourceTime},#{feature,typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler}, NOW(), NOW(),#{partIndex},#{customConfiguration})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -107,6 +108,9 @@
|
|
|
<if test="partIndex != null">
|
|
|
part_index_ = #{partIndex},
|
|
|
</if>
|
|
|
+ <if test="customConfiguration != null">
|
|
|
+ custom_configuration_ = #{customConfiguration},
|
|
|
+ </if>
|
|
|
<if test="feature!=null">
|
|
|
feature_ = #{feature,typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
@@ -147,7 +151,8 @@
|
|
|
smcr.score_, smcr.intonation_, smcr.cadence_,
|
|
|
smcr.integrity_, smcr.record_file_path_, smcr.video_file_path_, smcr.client_id_, smcr.device_type_, smcr.play_time_,
|
|
|
smcr.monday_, smcr.create_time_,
|
|
|
- sms.music_sheet_name_ sys_music_score_name_,if(smcr.create_time_ is not null and date_add(smcr.create_time_,INTERVAL #{expireTime} DAY) < now(),1,0) as expire
|
|
|
+ sms.music_sheet_name_ sys_music_score_name_,if(smcr.create_time_ is not null and date_add(smcr.create_time_,INTERVAL #{expireTime} DAY) < now(),1,0) as expire,
|
|
|
+ smcr.custom_configuration_ as customConfiguration
|
|
|
FROM sys_music_compare_record smcr
|
|
|
LEFT JOIN music_sheet sms on smcr.music_sheet_id_ = sms.id_
|
|
|
<include refid="queryCondition"/>
|