| 
					
				 | 
			
			
				@@ -187,14 +187,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SELECT * FROM sys_user_cash_account_detail WHERE trans_no_ = #{transNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <select id="queryStatistics" resultType="map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="queryStatisticsWithCurrentMonth" resultType="map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select sum(case when sucad.type_ = 'RECHARGE' then 1 else 0 end) income_num_,sum(case when sucad.type_ = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         'RECHARGE' then sucad.amount_ else 0 end) income_total_,sum(case when (sucad.type_ = 'WITHDRAW' or sucad.type_ = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         'REWARDS' or sucad.type_ = 'WAGE') then 1 else 0 end) expend_num_,sum(case when (sucad.type_ = 'WITHDRAW' or 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sucad.type_ = 'REWARDS' or sucad.type_ = 'WAGE') then sucad.amount_ else 0 end) expend_total_ from 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sys_user_cash_account_detail sucad 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         left join sys_user u on sucad.user_id_ = u.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        where sucad.status_ = 'SUCCESS' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where sucad.status_ = 'SUCCESS' and DATE_FORMAT(sucad.create_time_, '%Y%m' ) = DATE_FORMAT( CURDATE() , '%Y%m' ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="organId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AND FIND_IN_SET(u.organ_id_,#{organId}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 |