| 
														
															@@ -15,7 +15,6 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<result column="activate_num_" property="activateNum" /> 
														 | 
														
														 | 
														
															 		<result column="activate_num_" property="activateNum" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<result column="percent_" property="percent" /> 
														 | 
														
														 | 
														
															 		<result column="percent_" property="percent" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<result column="data_type_" property="dataType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/> 
														 | 
														
														 | 
														
															 		<result column="data_type_" property="dataType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		<result column="type_" property="orderType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<result column="extend_info_" property="extendInfo"/> 
														 | 
														
														 | 
														
															 		<result column="extend_info_" property="extendInfo"/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<result column="create_time_" property="createTime" /> 
														 | 
														
														 | 
														
															 		<result column="create_time_" property="createTime" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<result column="update_time_" property="updateTime" /> 
														 | 
														
														 | 
														
															 		<result column="update_time_" property="updateTime" /> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1337,7 +1336,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			   SUM(CASE WHEN spo.actual_amount_ IS NULL THEN 0 ELSE spo.actual_amount_ END + 
														 | 
														
														 | 
														
															 			   SUM(CASE WHEN spo.actual_amount_ IS NULL THEN 0 ELSE spo.actual_amount_ END + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		CASE WHEN spo.balance_payment_amount_ IS NULL THEN 0 ELSE spo.balance_payment_amount_ END) activate_num_, 
														 | 
														
														 | 
														
															 		CASE WHEN spo.balance_payment_amount_ IS NULL THEN 0 ELSE spo.balance_payment_amount_ END) activate_num_, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			   SUM(CASE WHEN spo.actual_amount_ IS NULL THEN 0 ELSE spo.actual_amount_ END + 
														 | 
														
														 | 
														
															 			   SUM(CASE WHEN spo.actual_amount_ IS NULL THEN 0 ELSE spo.actual_amount_ END + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		CASE WHEN spo.balance_payment_amount_ IS NULL THEN 0 ELSE spo.balance_payment_amount_ END) percent_,DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') month_,spo.type_ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		CASE WHEN spo.balance_payment_amount_ IS NULL THEN 0 ELSE spo.balance_payment_amount_ END) percent_,DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') month_ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		FROM student_payment_order spo 
														 | 
														
														 | 
														
															 		FROM student_payment_order spo 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		WHERE spo.status_ = 'SUCCESS' AND DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') BETWEEN #{startDate} AND #{endDate} 
														 | 
														
														 | 
														
															 		WHERE spo.status_ = 'SUCCESS' AND DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') BETWEEN #{startDate} AND #{endDate} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<if test="orderType != null"> 
														 | 
														
														 | 
														
															 		<if test="orderType != null"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1355,7 +1354,69 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				#{organId} 
														 | 
														
														 | 
														
															 				#{organId} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			</foreach> 
														 | 
														
														 | 
														
															 			</foreach> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		</if> 
														 | 
														
														 | 
														
															 		</if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		GROUP BY spo.type_,DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		GROUP BY DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	</select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	<select id="getVipAmountDataWithTimelyDetails" resultMap="IndexBaseMonthData"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		SELECT organ_id_,SUM(c.total_num_) total_num_,SUM(c.total_num_) activate_num_,SUM(c.total_num_) percent_,month_ FROM ( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		SELECT spo.organ_id_,SUM(CASE WHEN spod.price_ IS NULL THEN 0 ELSE spod.price_ END) total_num_,DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') month_ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		FROM student_payment_order spo 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		LEFT JOIN student_payment_order_detail spod ON spo.id_ = spod.payment_order_id_ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		WHERE spo.status_ = 'SUCCESS' AND DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') BETWEEN #{startDate} AND #{endDate} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		AND spo.type_ = 'DEGREE' AND spod.type_ IN ('THEORY_COURSE','VIP') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		<if test="organIds!=null and organIds.size()>0"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			AND spo.organ_id_ IN 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			<foreach collection="organIds" item="organId" open="(" close=")" separator=","> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				#{organId} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			</foreach> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		</if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		GROUP BY DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		UNION 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		SELECT spo.organ_id_,SUM(CASE WHEN spo.actual_amount_ IS NULL THEN 0 ELSE spo.actual_amount_ END + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		CASE WHEN spo.balance_payment_amount_ IS NULL THEN 0 ELSE spo.balance_payment_amount_ END) total_num_ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		,DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') month_ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		FROM student_payment_order spo 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		WHERE spo.status_ = 'SUCCESS' AND DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') BETWEEN #{startDate} AND #{endDate} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		AND spo.type_ = 'SMALL_CLASS_TO_BUY' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		<if test="organIds!=null and organIds.size()>0"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			AND spo.organ_id_ IN 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			<foreach collection="organIds" item="organId" open="(" close=")" separator=","> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				#{organId} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			</foreach> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		</if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		GROUP BY DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		)c GROUP BY DATE_FORMAT(c.month_,'%Y-%m-%d') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	</select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	<select id="getOtherAmountDataWithTimelyDetails" resultMap="IndexBaseMonthData"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		SELECT organ_id_,SUM(c.total_num_) total_num_,month_ FROM ( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		SELECT spo.organ_id_,SUM(CASE WHEN spo.actual_amount_ IS NULL THEN 0 ELSE spo.actual_amount_ END + 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							   CASE WHEN spo.balance_payment_amount_ IS NULL THEN 0 ELSE spo.balance_payment_amount_ END) total_num_ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		   ,DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') month_ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		FROM student_payment_order spo 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		WHERE spo.status_ = 'SUCCESS' AND DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') BETWEEN #{startDate} AND #{endDate} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		AND spo.type_ NOT IN ('APPLY','RENEW','PRACTICE_GROUP_BUY','PRACTICE_GROUP_RENEW','SMALL_CLASS_TO_BUY','DEGREE') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		<if test="organIds!=null and organIds.size()>0"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			AND spo.organ_id_ IN 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			<foreach collection="organIds" item="organId" open="(" close=")" separator=","> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				#{organId} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			</foreach> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		</if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		GROUP BY DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		UNION 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		SELECT spo.organ_id_,SUM(CASE WHEN spod.price_ IS NULL THEN 0 ELSE spod.price_ END) total_num_,DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') month_ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		FROM student_payment_order spo 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			   LEFT JOIN student_payment_order_detail spod ON spo.id_ = spod.payment_order_id_ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		WHERE spo.status_ = 'SUCCESS' AND DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') BETWEEN #{startDate} AND #{endDate} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		AND spo.type_ = 'DEGREE' AND spod.type_ = 'DEGREE_REGISTRATION' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		<if test="organIds!=null and organIds.size()>0"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			AND spo.organ_id_ IN 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			<foreach collection="organIds" item="organId" open="(" close=")" separator=","> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				#{organId} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			</foreach> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		</if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		GROUP BY DATE_FORMAT(spo.pay_time_,'%Y-%m-%d') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		)c GROUP BY DATE_FORMAT(c.month_,'%Y-%m-%d') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	</select> 
														 | 
														
														 | 
														
															 	</select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	<sql id="queryTeacherServeInfoCondition"> 
														 | 
														
														 | 
														
															 	<sql id="queryTeacherServeInfoCondition"> 
														 |