yonge 5 years ago
parent
commit
4f59f9eeb7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      mec-biz/src/main/resources/config/mybatis/VipGroupMapper.xml

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/VipGroupMapper.xml

@@ -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
     </select>
 
     <!-- 向数据库增加一条记录 -->