|
@@ -1578,14 +1578,14 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="countStudentWithSubjectByMusicGroupId" resultMap="Mapper">
|
|
|
- select sr.actual_subject_id_ subject_id_, s.name_ key_,count(sr.id_) value_ from student_registration sr LEFT JOIN subject s on sr.actual_subject_id_ = s.id_
|
|
|
- where sr.music_group_status_ = 'NORMAL' and sr.music_group_id_ = #{musicGroupId}
|
|
|
+ select sr.actual_subject_id_ subject_id_, s.name_ key_,count(sr.id_) value_ from student_registration sr LEFT JOIN subject s on sr.actual_subject_id_ = s.id_
|
|
|
+ where sr.music_group_status_ = 'NORMAL' and sr.music_group_id_ = #{musicGroupId}
|
|
|
group by sr.actual_subject_id_
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="countStudentWithGradeByMusicGroupId" resultMap="Mapper">
|
|
|
select s.current_grade_num_ key_,count(sr.id_) value_ from student_registration sr LEFT JOIN student s on sr.user_id_= s.user_id_
|
|
|
- where sr.music_group_status_ = 'NORMAL' and sr.music_group_id_ = #{musicGroupId}
|
|
|
+ where sr.music_group_status_ = 'NORMAL' and sr.music_group_id_ = #{musicGroupId}
|
|
|
group by s.current_grade_num_
|
|
|
</select>
|
|
|
|