|  |  | @ -31,6 +31,40 @@ | 
			
		
	
		
			
				
					|  |  |  |         ) | 
			
		
	
		
			
				
					|  |  |  |     </update> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     <update id="addExistAttention"> | 
			
		
	
		
			
				
					|  |  |  |         UPDATE ic_epidemic_special_attention | 
			
		
	
		
			
				
					|  |  |  |         <trim prefix="set" suffixOverrides=","> | 
			
		
	
		
			
				
					|  |  |  |             <trim prefix="IS_ATTENTION =(case" suffix="end),"> | 
			
		
	
		
			
				
					|  |  |  |                 <foreach collection="list" item="item"> | 
			
		
	
		
			
				
					|  |  |  |                     when id_card = #{item.idCard} then 1 | 
			
		
	
		
			
				
					|  |  |  |                 </foreach> | 
			
		
	
		
			
				
					|  |  |  |             </trim> | 
			
		
	
		
			
				
					|  |  |  |             <trim prefix="reason =(case" suffix="end),"> | 
			
		
	
		
			
				
					|  |  |  |                 <foreach collection="list" item="item"> | 
			
		
	
		
			
				
					|  |  |  |                     when id_card = #{item.idCard} then #{item.reason} | 
			
		
	
		
			
				
					|  |  |  |                 </foreach> | 
			
		
	
		
			
				
					|  |  |  |             </trim> | 
			
		
	
		
			
				
					|  |  |  |             <trim prefix="remark =(case" suffix="end),"> | 
			
		
	
		
			
				
					|  |  |  |                 <foreach collection="list" item="item"> | 
			
		
	
		
			
				
					|  |  |  |                     when id_card = #{item.idCard} then #{item.remark} | 
			
		
	
		
			
				
					|  |  |  |                 </foreach> | 
			
		
	
		
			
				
					|  |  |  |             </trim> | 
			
		
	
		
			
				
					|  |  |  |             <trim prefix="isolatedState =(case" suffix="end),"> | 
			
		
	
		
			
				
					|  |  |  |                 <foreach collection="list" item="item"> | 
			
		
	
		
			
				
					|  |  |  |                     when id_card = #{item.idCard} then #{item.isolatedState} | 
			
		
	
		
			
				
					|  |  |  |                 </foreach> | 
			
		
	
		
			
				
					|  |  |  |             </trim> | 
			
		
	
		
			
				
					|  |  |  |             updated_time = now() | 
			
		
	
		
			
				
					|  |  |  |         </trim> | 
			
		
	
		
			
				
					|  |  |  |         WHERE del_flag = 0 | 
			
		
	
		
			
				
					|  |  |  |         AND attention_type = #{attentionType} | 
			
		
	
		
			
				
					|  |  |  |         AND id_card IN ( | 
			
		
	
		
			
				
					|  |  |  |         <foreach collection="list" item="l" separator=","> | 
			
		
	
		
			
				
					|  |  |  |             #{l.idCard} | 
			
		
	
		
			
				
					|  |  |  |         </foreach> | 
			
		
	
		
			
				
					|  |  |  |         ) | 
			
		
	
		
			
				
					|  |  |  |     </update> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     <!-- 疫苗接种关注名单 --> | 
			
		
	
		
			
				
					|  |  |  |     <select id="vaccinationList" resultType="com.epmet.dto.result.VaccinationListResultDTO"> | 
			
		
	
		
			
				
					|  |  |  |         SELECT a.id, | 
			
		
	
	
		
			
				
					|  |  | 
 |