|  | @ -118,9 +118,10 @@ public class WeiXinTagUtil {
 | 
	
		
			
				|  |  |                     throw new Exception("创建失败," + result);
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 //更新患者表
 | 
	
		
			
				|  |  |                 patientDao.updateIsWXTagByCode(patient, Patient.isWchatTage.yes.getValue());
 | 
	
		
			
				|  |  |                 Patient patientObj = patientDao.findByCode(patient);
 | 
	
		
			
				|  |  |                 patientObj.setIsWxtag(Patient.isWchatTage.yes.getValue());
 | 
	
		
			
				|  |  |                 patientObj.setWxtagid(tagId);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             return result;
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             logger.error(e.getMessage());
 | 
	
	
		
			
				|  | @ -156,8 +157,9 @@ public class WeiXinTagUtil {
 | 
	
		
			
				|  |  |             } else {
 | 
	
		
			
				|  |  |                 saveLog(openid, patient, patientName, null, 1, "wx_tag中不存在区是" + town + "的标签");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             //更新患者表
 | 
	
		
			
				|  |  |             patientDao.updateIsWXTagByCode(patient, Patient.isWchatTage.yes.getValue());
 | 
	
		
			
				|  |  |             Patient patientObj = patientDao.findByCode(patient);
 | 
	
		
			
				|  |  |             patientObj.setIsWxtag(Patient.isWchatTage.yes.getValue());
 | 
	
		
			
				|  |  |             patientObj.setWxtagid(tagId.getTagId());
 | 
	
		
			
				|  |  |             return str;
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             logger.error(e.getMessage());
 | 
	
	
		
			
				|  | @ -220,7 +222,9 @@ public class WeiXinTagUtil {
 | 
	
		
			
				|  |  |             } else {
 | 
	
		
			
				|  |  |                 saveLog(openid, patient, patientName, null, 2, "wx_tag中不存在区是" + town + "的标签");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             patientDao.updateIsWXTagByCode(patient, Patient.isWchatTage.no.getValue());
 | 
	
		
			
				|  |  |             Patient patientObj = patientDao.findByCode(patient);
 | 
	
		
			
				|  |  |             patientObj.setIsWxtag(Patient.isWchatTage.no.getValue());
 | 
	
		
			
				|  |  |             patientObj.setWxtagid(null);
 | 
	
		
			
				|  |  |             return str;
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             logger.error(e.getMessage());
 | 
	
	
		
			
				|  | @ -268,6 +272,7 @@ public class WeiXinTagUtil {
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public String deleteTagWithOpenid(String openIds, Integer tagId) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             net.sf.json.JSONObject params = new net.sf.json.JSONObject();
 | 
	
		
			
				|  |  |             net.sf.json.JSONArray ja = new JSONArray();
 | 
	
		
			
				|  |  |             ja.add(openIds);
 |