| 
						
						
							
								
							
						
						
					 | 
					@ -32,13 +32,13 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          AND a.ORG_ID = #{orgId} | 
					 | 
					 | 
					          AND a.ORG_ID = #{orgId} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          AND ATTENTION_TYPE = #{attentionType} | 
					 | 
					 | 
					          AND ATTENTION_TYPE = #{attentionType} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          <if test='null != name and "" != name'> | 
					 | 
					 | 
					          <if test='null != name and "" != name'> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					              AND a.`NAME` = #{name} | 
					 | 
					 | 
					              AND a.`NAME` LIKE CONCAT('%',#{name},'%') | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          </if> | 
					 | 
					 | 
					          </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          <if test='null != mobile and "" != mobile'> | 
					 | 
					 | 
					          <if test='null != mobile and "" != mobile'> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					              AND a.MOBILE = #{mobile} | 
					 | 
					 | 
					              AND a.MOBILE LIKE CONCAT('%',#{mobile},'%') | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          </if> | 
					 | 
					 | 
					          </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          <if test='null != mobile and "" != mobile'> | 
					 | 
					 | 
					          <if test='null != mobile and "" != mobile'> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					              AND a.ID_CARD = #{idCard} | 
					 | 
					 | 
					              AND a.ID_CARD LIKE CONCAT('%',#{idCard},'%') | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          </if> | 
					 | 
					 | 
					          </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          <if test=' null != vaccinationCount'> | 
					 | 
					 | 
					          <if test=' null != vaccinationCount'> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              HAVING vaccinationCount = #{vaccinationCount} | 
					 | 
					 | 
					              HAVING vaccinationCount = #{vaccinationCount} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -60,13 +60,13 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        AND a.ORG_ID = #{orgId} | 
					 | 
					 | 
					        AND a.ORG_ID = #{orgId} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        AND ATTENTION_TYPE = #{attentionType} | 
					 | 
					 | 
					        AND ATTENTION_TYPE = #{attentionType} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <if test='null != name and "" != name'> | 
					 | 
					 | 
					        <if test='null != name and "" != name'> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            AND a.`NAME` = #{name} | 
					 | 
					 | 
					            AND a.`NAME` LIKE CONCAT('%',#{name},'%') | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        </if> | 
					 | 
					 | 
					        </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <if test='null != mobile and "" != mobile'> | 
					 | 
					 | 
					        <if test='null != mobile and "" != mobile'> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            AND a.MOBILE = #{mobile} | 
					 | 
					 | 
					            AND a.MOBILE LIKE CONCAT('%',#{mobile},'%') | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        </if> | 
					 | 
					 | 
					        </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <if test='null != mobile and "" != mobile'> | 
					 | 
					 | 
					        <if test='null != mobile and "" != mobile'> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            AND a.ID_CARD = #{idCard} | 
					 | 
					 | 
					            AND a.ID_CARD LIKE CONCAT('%',#{idCard},'%') | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        </if> | 
					 | 
					 | 
					        </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <if test='null != reason and "" != reason'> | 
					 | 
					 | 
					        <if test='null != reason and "" != reason'> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            AND a.REASON LIKE CONCAT('%',#{reason},'%') | 
					 | 
					 | 
					            AND a.REASON LIKE CONCAT('%',#{reason},'%') | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |