|  |  | @ -10,11 +10,10 @@ | 
			
		
	
		
			
				
					|  |  |  |         sum(recharge_coin) as SumRcion, | 
			
		
	
		
			
				
					|  |  |  |         sum(recharge_coin+free_coin+task_coin) as Sumcion | 
			
		
	
		
			
				
					|  |  |  |         from detail_y | 
			
		
	
		
			
				
					|  |  |  |         left join product on detail_y.product_id= product.product_id | 
			
		
	
		
			
				
					|  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |         update_type = '1' | 
			
		
	
		
			
				
					|  |  |  |             <if test='jwcode!=null and jwcode.length>0'>and detail_y.jwcode =#{jwcode}</if> | 
			
		
	
		
			
				
					|  |  |  |             <if test='productName!=null and productName.length>0'>and product.name = #{productName}</if> | 
			
		
	
		
			
				
					|  |  |  |             <if test='productName!=null and productName.length>0'>and detail_y.product_name = #{productName}</if> | 
			
		
	
		
			
				
					|  |  |  |             <if test='consumePlatform!=null and consumePlatform.length>0'>and detail_y.consume_platform=#{consumePlatform}</if> | 
			
		
	
		
			
				
					|  |  |  |             <if test='consumeType!=null and consumeType.length>0'>and detail_y.consume_type= #{consumeType}</if> | 
			
		
	
		
			
				
					|  |  |  |             <if test='startDate != null and endDate != null'>AND detail_y.create_time BETWEEN #{startDate} AND #{endDate}</if> | 
			
		
	
	
		
			
				
					|  |  | @ -30,19 +29,19 @@ | 
			
		
	
		
			
				
					|  |  |  |     <select id="select" resultType="com.example.demo.domain.vo.ConsumeDetail"> | 
			
		
	
		
			
				
					|  |  |  |         SELECT | 
			
		
	
		
			
				
					|  |  |  |         detail_y.*, | 
			
		
	
		
			
				
					|  |  |  |         admin.name AS adminName, | 
			
		
	
		
			
				
					|  |  |  |        /* product.name AS productName*/ | 
			
		
	
		
			
				
					|  |  |  |         admin.name AS adminName | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         FROM detail_y | 
			
		
	
		
			
				
					|  |  |  |         LEFT JOIN `admin` ON detail_y.admin_id = admin.admin_id | 
			
		
	
		
			
				
					|  |  |  |         LEFT JOIN `user` ON detail_y.jwcode = user.jwcode | 
			
		
	
		
			
				
					|  |  |  |         LEFT JOIN product ON detail_y.product_id = product.product_id | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |             update_type = 1 | 
			
		
	
		
			
				
					|  |  |  |             <if test='jwcode != null'> | 
			
		
	
		
			
				
					|  |  |  |                 AND detail_y.jwcode = #{jwcode} | 
			
		
	
		
			
				
					|  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |             <if test='productName != null and productName.length > 0'> | 
			
		
	
		
			
				
					|  |  |  |                 AND product.name = #{productName} | 
			
		
	
		
			
				
					|  |  |  |                 AND detail_y.product_name = #{productName} | 
			
		
	
		
			
				
					|  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |             <if test='consumePlatform != null and consumePlatform.length > 0'> | 
			
		
	
		
			
				
					|  |  |  |                 AND detail_y.consume_platform = #{consumePlatform} | 
			
		
	
	
		
			
				
					|  |  | 
 |