|
@@ -876,7 +876,7 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="queryRequiredOverList" resultMap="VipGroup">
|
|
|
- select vg.* from vip_group vg left join class_group cg on vg.id_ = cg.music_group_id_
|
|
|
+ select vg.* from vip_group vg left join class_group cg on vg.id_ = cg.music_group_id_ AND cg.group_type_='VIP'
|
|
|
where vg.group_status_ = 2 and cg.total_class_times_ = cg.current_class_times_ and cg.total_class_times_ > 0
|
|
|
</select>
|
|
|
<select id="queryNormalStatusList" resultMap="VipGroup">
|