| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -74,5 +74,39 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <select id="getIp" resultType="java.lang.String"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        SELECT DISTINCT ip_address FROM fx_member WHERE ip_address is not null | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </select> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <select id="getSpend" resultType="com.example.demo.domain.dou.Spend"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        SELECT | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fm.nickname, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fy.content, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fy.pay_type, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fm.jwcode, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fm.ip_address , | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fy.money_free , | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fy.money_buy , | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fy.money , | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fy.source_name, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            fy.`time` | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        FROM fx_member fm | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                 LEFT JOIN fx_yaoqing_records fy ON fm.id = fy.uid | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <where> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test="jwcode != null and jwcode.length > 0"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND fm.jwcode = #{jwcode} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test="ipAddress != null and ipAddress.length > 0"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND fm.ip_address = #{ipAddress} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test="sourceName != null and sourceName.length > 0"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND fy.source_name = #{sourceName} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test="payType != null and payType.length > 0"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND fy.pay_type = #{payType} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <if test="sourceType != null and sourceType.length > 0"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AND fy.source_type = #{sourceType} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </where> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </select> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					</mapper> |