| 
					
				 | 
			
			
				@@ -1005,6 +1005,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <resultMap type="com.ym.mec.biz.dal.vo.StudentPaymentOrderVo" id="QueryOrderDetail"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result column="orderNo" property="orderNo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="memo_" property="memo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="status_" property="status" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result column="orderType" property="orderType"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result column="orderTypeCode" property="orderTypeCode"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result column="totalAmount" property="totalAmount"/> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1024,20 +1026,24 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="queryStudentOrderPage" resultMap="QueryOrderDetail"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             a.order_no_ as orderNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            a.status_ ,a.memo_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             a.type_                            as orderType, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             a.type_                            as orderTypeCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ifnull(a.actual_amount_, 0) + ifnull(a.balance_payment_amount_, 0) as totalAmount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             a.create_time_ as createTime 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from student_payment_order as a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        where  status_ = 'SUCCESS' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          and create_time_ >= #{param.startDate} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where  create_time_ >= #{param.startDate} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           and create_time_   <![CDATA[ < ]]> #{param.endDate} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           and user_id_ = #{param.userId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <if test="param.status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          and status_ = #{param.status} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="queryOrderDetail" resultMap="QueryOrderDetail"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.order_no_ as orderNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               a.status_ ,a.memo_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.type_                            as orderType, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                ifnull(a.actual_amount_, 0) + ifnull(a.balance_payment_amount_, 0) + ifnull(a.remit_fee_, 0) + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                ifnull(a.coupon_remit_fee_, 0)     as totalAmount, 
			 |