|
@@ -9,16 +9,17 @@
|
|
|
<result column="training_time_" property="trainingTime"/>
|
|
|
<result column="training_flag_" property="trainingFlag"/>
|
|
|
<result column="subject_id_" property="subjectId"/>
|
|
|
+ <result column="group_" property="group"/>
|
|
|
<result column="create_time_" property="createTime"/>
|
|
|
<result column="update_time_" property="updateTime"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<insert id="insertBatch" keyColumn="id_" keyProperty="id" useGeneratedKeys="true"
|
|
|
parameterType="com.ym.mec.biz.dal.entity.StudentLessonExamination">
|
|
|
- insert into student_lesson_examination(user_id_, lesson_examination_id_,subject_id_)
|
|
|
+ insert into student_lesson_examination(user_id_, lesson_examination_id_,subject_id_,group_)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.userId}, #{entity.lessonExaminationId}, #{entity.subjectId})
|
|
|
+ (#{entity.userId}, #{entity.lessonExaminationId}, #{entity.subjectId},#{entity.group})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
<update id="updateTrainingScore">
|
|
@@ -53,7 +54,7 @@
|
|
|
<select id="queryPage" resultType="com.ym.mec.biz.dal.dto.StudentLessonExaminationDto">
|
|
|
select su.avatar_ avatar,su.username_ username,sle.training_time_ trainingTime,sle.training_score_ trainingScore,
|
|
|
CASE WHEN s.membership_end_time_ > NOW() THEN 1 ELSE 0 END memberFlag,sle.training_flag_ trainingFlag,
|
|
|
- sle.user_id_ userId,sle.lesson_examination_id_ lessonExaminationId,sb.name_ subjectName
|
|
|
+ sle.user_id_ userId,sle.lesson_examination_id_ lessonExaminationId,sb.name_ subjectName,sle.group_ 'group'
|
|
|
from student_lesson_examination sle
|
|
|
left join student s ON s.user_id_ = sle.user_id_
|
|
|
left join subject sb ON s.subject_id_list_ = sb.id_
|
|
@@ -74,6 +75,7 @@
|
|
|
<result property="username" column="username_"/>
|
|
|
<result property="trainingScore" column="trainingScore"/>
|
|
|
<result property="trainingTime" column="training_time_"/>
|
|
|
+ <result property="group" column="group_"/>
|
|
|
<collection property="detailDtos" ofType="com.ym.mec.biz.dal.dto.StudentLessonExaminationDetailDto1">
|
|
|
<result property="standardScore" column="standard_score_"/>
|
|
|
<result property="trainingScore" column="training_score_"/>
|
|
@@ -86,7 +88,7 @@
|
|
|
<select id="queryStudentPage" resultMap="StudentLessonExaminationDtoMap">
|
|
|
select sle.user_id_,su.username_,su.phone_,sb.name_ subjectName,sle.training_score_ trainingScore,
|
|
|
sms.name_ musicScoreName,sled.actual_avg_score_,sled.standard_score_,sled.training_score_,
|
|
|
- sled.avg_score_,sled.heard_level_,sle.training_time_
|
|
|
+ sled.avg_score_,sled.heard_level_,sle.training_time_,sle.group_
|
|
|
from student_lesson_examination sle
|
|
|
left join student_lesson_examination_detail sled ON sled.lesson_examination_id_ = sle.lesson_examination_id_ AND sled.user_id_ = sle.user_id_
|
|
|
left join sys_music_score sms ON sms.id_ = sled.music_score_id_
|