|
@@ -132,13 +132,12 @@
|
|
|
|
|
|
<!-- 体验人数 -->
|
|
|
<select id="getPracticeGroupsFree" resultMap="PracticeGroupsOrgan">
|
|
|
- SELECT pg.organ_id_, count(*) total_nums_
|
|
|
- FROM class_group cg
|
|
|
- LEFT JOIN practice_group pg on cg.music_group_id_ = pg.id_
|
|
|
- WHERE cg.group_type_ = 'PRACTICE'
|
|
|
- AND pg.buy_months_ IS NULL
|
|
|
- AND pg.group_status_ != 'LOCK'
|
|
|
- GROUP BY pg.organ_id_
|
|
|
+ SELECT organ_id_, count(distinct student_id_) total_nums_
|
|
|
+ FROM practice_group
|
|
|
+ WHERE group_status_ != 'LOCK'
|
|
|
+ AND group_status_ != 'CANCEL'
|
|
|
+ AND buy_months_ IS NULL
|
|
|
+ GROUP BY organ_id_
|
|
|
</select>
|
|
|
|
|
|
<!-- 已购买人数 -->
|