|  | @@ -1005,6 +1005,7 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <resultMap type="com.ym.mec.biz.dal.vo.StudentPaymentOrderVo" id="QueryOrderDetail">
 | 
	
		
			
				|  |  |          <result column="orderNo" property="orderNo"/>
 | 
	
		
			
				|  |  | +        <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,6 +1025,7 @@
 | 
	
		
			
				|  |  |      <select id="queryStudentOrderPage" resultMap="QueryOrderDetail">
 | 
	
		
			
				|  |  |          select
 | 
	
		
			
				|  |  |              a.order_no_ as orderNo,
 | 
	
		
			
				|  |  | +            a.status_ status,
 | 
	
		
			
				|  |  |              a.type_                            as orderType,
 | 
	
		
			
				|  |  |              a.type_                            as orderTypeCode,
 | 
	
		
			
				|  |  |              ifnull(a.actual_amount_, 0) + ifnull(a.balance_payment_amount_, 0) as totalAmount,
 | 
	
	
		
			
				|  | @@ -1032,14 +1034,15 @@
 | 
	
		
			
				|  |  |          where  create_time_ >= #{param.startDate}
 | 
	
		
			
				|  |  |            and create_time_   <![CDATA[ < ]]> #{param.endDate}
 | 
	
		
			
				|  |  |            and user_id_ = #{param.userId}
 | 
	
		
			
				|  |  | -          <if test="status != null">
 | 
	
		
			
				|  |  | -          and status_ = #{status}
 | 
	
		
			
				|  |  | +          <if test="param.status != null">
 | 
	
		
			
				|  |  | +          and status_ = #{param.status}
 | 
	
		
			
				|  |  |            </if>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="queryOrderDetail" resultMap="QueryOrderDetail">
 | 
	
		
			
				|  |  |          select
 | 
	
		
			
				|  |  |                 a.order_no_ as orderNo,
 | 
	
		
			
				|  |  | +               a.status_ status,
 | 
	
		
			
				|  |  |                 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,
 |