| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -24,11 +24,58 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <result property="updatedTime" column="UPDATED_TIME"/> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <result property="customerId" column="CUSTOMER_ID"/> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </resultMap> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <select id="getWelfareList" resultType="com.epmet.dto.ChangeWelfareDTO"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        SELECT | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        u.id AS userId, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.GRID_ID, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        u.`NAME`, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.ID_CARD, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        u.MOBILE, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        u.GENDER, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.TYPE, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.JOIN_DATE, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.JOIN_REASON, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.REMOVE_DATE, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.REMOVE_REASON, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.CREATED_TIME, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.UPDATED_TIME | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        FROM | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        pli_change_welfare w | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        LEFT JOIN ic_resi_user u ON u.ID_CARD = w.ID_CARD | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        WHERE | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        w.DEL_FLAG = '0' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <if test="customerId != null and customerId != ''"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND w.CUSTOMER_ID = #{customerId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <if test="gridId != null and gridId != ''"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND w.GRID_ID = #{gridId} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <if test="name != null and name != ''"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND w.NAME = #{name} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <if test="idCard != null and idCard != ''"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND w.ID_CARD = #{idCard} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <if test="mobile != null and mobile != ''"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND w.MOBILE = #{mobile} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <if test="startTime != null and startTime != ''"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND w.JOIN_DATE >= #{startTime} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <if test="endTime != null and endTime != ''"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            AND w.JOIN_DATE <= #{endTime} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        order by w.CREATED_TIME desc | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </select> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <select id="selectByIdCard" resultType="com.epmet.entity.ChangeWelfareEntity"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        select * from pli_change_welfare | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        where ID_CARD=#{idCard} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              and del_flag='0' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </select> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <update id="removeWelfare"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        update pli_change_welfare | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            set REMOVE_DATE=#{removeDate}, | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |