| 
					
				 | 
			
			
				@@ -21,6 +21,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result column="create_time_" property="createTime"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result column="modify_time_" property="modifyTime"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <resultMap type="com.ym.mec.biz.dal.entity.StudentRecharge" id="StudentRechargeVO" extends="StudentRecharge"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="username_" property="user.username"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="trans_no_" property="transNo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="trans_type_" property="transType"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 根据主键查询一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="get" resultMap="StudentRecharge"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -92,14 +98,27 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 分页查询 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <select id="queryPage" resultMap="StudentRecharge" parameterType="map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        SELECT * FROM student_recharge ORDER BY id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="queryPage" resultMap="StudentRechargeVO" parameterType="map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        SELECT sr.*,u.username_,cad.trans_no_,cad.trans_type_ FROM student_recharge sr left join sys_user u on sr.user_id_ = u.id_ left join sys_user_cash_account_detail cad on sr.user_id_ = cad.user_id_ where 1 = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           and sr.status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="transType != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           and cad.trans_type_ = #{transType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ORDER BY sr.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <include refid="global.limit"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 查询当前表的总记录数 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="queryCount" resultType="int"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		SELECT COUNT(*) FROM student_recharge 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		SELECT COUNT(1) FROM student_recharge sr left join sys_user u on sr.user_id_ = u.id_ left join sys_user_cash_account_detail cad on sr.user_id_ = cad.user_id_ where 1 = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<if test="status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           and sr.status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="transType != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           and cad.trans_type_ = #{transType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="queryByTransNo" resultMap="StudentRecharge"> 
			 |