Browse Source

feat:智能陪练一期

Joburgess 4 years ago
parent
commit
8be08c3428

+ 10 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/SysMusicCompareRecord.java

@@ -34,6 +34,8 @@ public class SysMusicCompareRecord {
 	/** 评分数据 */
 	/** 评分数据 */
 	private String scoreData;
 	private String scoreData;
 
 
+	private int notesDataIndex;
+
 	/** 总分 */
 	/** 总分 */
 	private BigDecimal score;
 	private BigDecimal score;
 
 
@@ -127,6 +129,14 @@ public class SysMusicCompareRecord {
 		return this.scoreData;
 		return this.scoreData;
 	}
 	}
 
 
+	public int getNotesDataIndex() {
+		return notesDataIndex;
+	}
+
+	public void setNotesDataIndex(int notesDataIndex) {
+		this.notesDataIndex = notesDataIndex;
+	}
+
 	public BigDecimal getScore() {
 	public BigDecimal getScore() {
 		return score;
 		return score;
 	}
 	}

+ 4 - 1
mec-biz/src/main/resources/config/mybatis/SysMusicCompareRecordMapper.xml

@@ -14,6 +14,7 @@
 		<result column="sys_music_score_name_" property="sysMusicScoreName" />
 		<result column="sys_music_score_name_" property="sysMusicScoreName" />
 		<result column="behavior_id_" property="behaviorId"/>
 		<result column="behavior_id_" property="behaviorId"/>
 		<result column="score_data_" property="scoreData" />
 		<result column="score_data_" property="scoreData" />
+		<result column="notes_data_index_" property="notesDataIndex"/>
 		<result column="score_" property="score" />
 		<result column="score_" property="score" />
 		<result column="intonation_" property="intonation" />
 		<result column="intonation_" property="intonation" />
 		<result column="cadence_" property="cadence" />
 		<result column="cadence_" property="cadence" />
@@ -120,7 +121,9 @@
 	<!-- 分页查询 -->
 	<!-- 分页查询 -->
 	<select id="queryPage" resultMap="SysMusicCompareRecord" parameterType="map">
 	<select id="queryPage" resultMap="SysMusicCompareRecord" parameterType="map">
 		SELECT
 		SELECT
-			smcr.id_, smcr.user_id_, smcr.sys_music_score_id_,smcr.heard_level_, smcr.score_, smcr.intonation_, smcr.cadence_,
+			smcr.id_, smcr.user_id_, smcr.sys_music_score_id_, smcr.heard_level_,
+			LOCATE('musicalNotesPlayStats', smcr.score_data_) notes_data_index_,
+		       smcr.score_, smcr.intonation_, smcr.cadence_,
 		       smcr.integrity_, smcr.record_file_path_, smcr.client_id_, smcr.device_type_, smcr.play_time_,
 		       smcr.integrity_, smcr.record_file_path_, smcr.client_id_, smcr.device_type_, smcr.play_time_,
 		       smcr.monday_, smcr.create_time_,
 		       smcr.monday_, smcr.create_time_,
 			sms.name_ sys_music_score_name_
 			sms.name_ sys_music_score_name_