yonge 5 年之前
父節點
當前提交
4f59f9eeb7
共有 1 個文件被更改,包括 3 次插入0 次删除
  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>
 
     <!-- 向数据库增加一条记录 -->