Jelajahi Sumber

vip定制课

zouxuan 3 bulan lalu
induk
melakukan
d0f5721cb6

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/SysMusicCompareRecordMapper.xml

@@ -572,7 +572,7 @@
 	</select>
 	<select id="getStudentTrainTime"
 			resultType="com.yonge.cooleshow.biz.dal.wrapper.TeacherIndexWrapper$PracticeTimeDto">
-		select SUM(play_time_) practiceTime,DATE_FORMAT(mcr.create_time_, ${groupBy}) 'date' from sys_music_compare_record mcr
+		select SUM(play_time_) practiceTime,DATE_FORMAT(mcr.create_time_, #{groupBy}) 'date' from sys_music_compare_record mcr
 		where mcr.user_id_ IN
 		<foreach collection="studentIds" item="studentId" open="(" close=")" separator=",">
 			#{studentId}
@@ -580,7 +580,7 @@
 		<if test="param.startTime != null and param.startTime != ''">
 			AND mcr.create_time_ BETWEEN #{param.startTime} AND #{param.endTime}
 		</if>
-		GROUP BY DATE_FORMAT(mcr.create_time_, ${groupBy})
+		GROUP BY DATE_FORMAT(mcr.create_time_, #{groupBy})
 		ORDER BY 'date'
 	</select>
     <select id="getStudentTrainCount"