31 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			XML
		
	
		
		
			
		
	
	
			31 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			XML
		
	
|  | <?xml version="1.0" encoding="UTF-8"?> | ||
|  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
|  | <mapper namespace="com.hcy.common.mapper.common.WithdrawCommissionMapper"> | ||
|  |     <!-- 通用查询映射结果 --> | ||
|  |     <resultMap id="BaseResultMap" type="com.hcy.common.dto.WithdrawCommissionDto"> | ||
|  |     </resultMap> | ||
|  | 
 | ||
|  |     <select id="page" resultType="com.hcy.common.dto.WithdrawCommissionDto"> | ||
|  |         select a.id,a.distributor_id,a.withdraw_money,a.create_time,a.update_time,a.`status`,a.is_delete,a.fail_reason,b.`name` as distributorName | ||
|  |         from la_withdraw_commission a , la_distributor b | ||
|  |         <where> | ||
|  |             a.is_delete = 0 | ||
|  |             and | ||
|  |             a.distributor_id = b.id | ||
|  |             <if test="form.status != null and form.status != ''"> | ||
|  |                 and a.status= #{form.status} | ||
|  |             </if> | ||
|  |             <if test="form.distributorName != null and form.distributorName != ''"> | ||
|  |                 and b.name like concat('%', #{form.distributorName}, '%') | ||
|  |             </if> | ||
|  |             <if test="form.startTime != null and form.startTime != ''"> | ||
|  |                 and a.create_time >= #{form.startTime} | ||
|  |             </if> | ||
|  |             <if test="form.endTime != null and form.endTime != ''"> | ||
|  |                 and a.create_time <= #{form.endTime} | ||
|  |             </if> | ||
|  |         </where> | ||
|  |         order by a.create_time desc | ||
|  |     </select> | ||
|  | 
 | ||
|  | </mapper> |