yonge 5 năm trước cách đây
mục cha
commit
4f59f9eeb7

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