@@ -212,6 +212,8 @@
</select>
<select id="countVipGroupByOrgan" resultType="int">
+ select count(*) from
+ (
SELECT
count(distinct vg.id_)
FROM
@@ -219,6 +221,7 @@
left join course_schedule_student_payment cssp on cssp.music_group_id_ = vg.id_ and cssp.group_type_ = 'VIP'
<include refid="vipGroupQueryCondition"/>
GROUP BY vg.id_
+ ) t
<!-- 向数据库增加一条记录 -->