|  | @@ -413,7 +413,7 @@
 | 
	
		
			
				|  |  |  				 LEFT JOIN activity_user_mapper aum ON spo.id_ = aum.payment_order_id_ AND spo.user_id_ = aum.user_id_
 | 
	
		
			
				|  |  |  				 LEFT JOIN vip_group_activity vga ON vga.id_ = aum.activity_id_
 | 
	
		
			
				|  |  |  		WHERE spo.group_type_ = 'ACTIVITY' AND spo.type_ = 'SMALL_CLASS_TO_BUY' AND spo.status_ = 'SUCCESS' AND spo.memo_ = '2022双十一活动购买'
 | 
	
		
			
				|  |  | -		  AND spo.organ_id_ IN (10,11,12,13,14,19,21,23,26,28,34,1,7,9,17,20,37,40,6,3,57,58,8,15,16,4)
 | 
	
		
			
				|  |  | +		  AND FIND_IN_SET(spo.organ_id_,#{organId})
 | 
	
		
			
				|  |  |  		GROUP BY aum.activity_id_,aum.user_id_) c GROUP BY c.type_
 | 
	
		
			
				|  |  |  	</select>
 | 
	
		
			
				|  |  |  	<resultMap id="DoubleEleven2021Dto" type="com.ym.mec.biz.dal.dto.DoubleEleven2021Dto">
 | 
	
	
		
			
				|  | @@ -430,7 +430,7 @@
 | 
	
		
			
				|  |  |  	<select id="countDoubleEleven2022Statis" resultMap="DoubleEleven2021Dto">
 | 
	
		
			
				|  |  |  		SELECT SUM(spo.expect_amount_) total_buy_amount_,COUNT(DISTINCT spo.user_id_) total_buy_num_ FROM student_payment_order spo
 | 
	
		
			
				|  |  |  		WHERE spo.group_type_ = 'ACTIVITY' AND spo.type_ = 'SMALL_CLASS_TO_BUY' AND spo.status_ = 'SUCCESS' AND spo.memo_ = '2022双十一活动购买'
 | 
	
		
			
				|  |  | -		AND spo.organ_id_ IN (10,11,12,13,14,19,21,23,26,28,34,1,7,9,17,20,37,40,6,3,57,58,8,15,16,4)
 | 
	
		
			
				|  |  | +		AND FIND_IN_SET(spo.organ_id_,#{organId})
 | 
	
		
			
				|  |  |  	</select>
 | 
	
		
			
				|  |  |  	<select id="countGiveMemberNum" resultType="java.lang.Integer">
 | 
	
		
			
				|  |  |  		SELECT COUNT(DISTINCT student_id_) FROM cloud_teacher_order WHERE remark_ = '双十一活动赠送会员'
 |