|  |  | @ -13,7 +13,6 @@ | 
			
		
	
		
			
				
					|  |  |  |         and template_id = #{templateId} | 
			
		
	
		
			
				
					|  |  |  |         and wx_open_id = #{openId} | 
			
		
	
		
			
				
					|  |  |  |         and user_id = #{userId} | 
			
		
	
		
			
				
					|  |  |  |         and wx_subscribe_status = 'subscribe' | 
			
		
	
		
			
				
					|  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   <update id="decreaseResiSubscribeCount"> | 
			
		
	
	
		
			
				
					|  |  | @ -25,13 +24,11 @@ | 
			
		
	
		
			
				
					|  |  |  |       and template_id = #{templateId} | 
			
		
	
		
			
				
					|  |  |  |       and wx_open_id = #{openId} | 
			
		
	
		
			
				
					|  |  |  |       and user_id = #{userId} | 
			
		
	
		
			
				
					|  |  |  |       and wx_subscribe_status = 'subscribe' | 
			
		
	
		
			
				
					|  |  |  |   </update> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   <update id="clearResiSubscribeCount" parameterType="String"> | 
			
		
	
		
			
				
					|  |  |  |     update Wxmp_Resi_User_Subscribe | 
			
		
	
		
			
				
					|  |  |  |     set count = 0, | 
			
		
	
		
			
				
					|  |  |  |         wx_subscribe_status = 'unsubscribe' | 
			
		
	
		
			
				
					|  |  |  |     set count = 0 | 
			
		
	
		
			
				
					|  |  |  |     where | 
			
		
	
		
			
				
					|  |  |  |       del_flag = 0 | 
			
		
	
		
			
				
					|  |  |  |       and customer_id = #{customerId} | 
			
		
	
	
		
			
				
					|  |  | 
 |