zouxuan 5 vuotta sitten
vanhempi
commit
bbac5e1b62

+ 1 - 2
mec-biz/src/main/resources/config/mybatis/ClassGroupStudentMapperMapper.xml

@@ -106,10 +106,9 @@
             class_group_student_mapper cgsm
             LEFT JOIN class_group cg ON cgsm.class_group_id_ = cg.id_
             LEFT JOIN sys_user su ON cgsm.user_id_ = su.id_
-            LEFT JOIN music_group_student_fee_ mgsf ON cg.music_group_id_=mgsf.music_group_id_
+            LEFT JOIN music_group_student_fee_ mgsf ON cg.music_group_id_=mgsf.music_group_id_ AND su.id_ = mgsf.user_id_
         WHERE
             cgsm.class_group_id_ = #{classGroupId}
-        GROUP BY su.id_,mgsf.continuous_absenteeism_times_
         ORDER BY su.id_
         <include refid="global.limit"/>
     </select>