|  | @ -454,62 +454,6 @@ public class TalkGroupService extends BaseService {
 | 
	
		
			
				|  |  |         return discussionGroupMemberDao.countByMemberCode(doctor);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 获取以上一对一聊天
 | 
	
		
			
				|  |  |      *
 | 
	
		
			
				|  |  |      * @param doctor
 | 
	
		
			
				|  |  |      * @param doctorName
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @Deprecated
 | 
	
		
			
				|  |  |     public JSONArray getOneToOneIm(String doctor, String doctorName) throws UnsupportedEncodingException {
 | 
	
		
			
				|  |  |         JSONArray result = null;
 | 
	
		
			
				|  |  |         JSONArray resultArray = new JSONArray();
 | 
	
		
			
				|  |  |         String url = SystemConf.getInstance().getSystemProperties().getProperty("im_list_get")
 | 
	
		
			
				|  |  |                 + "statistic/getchatlist.im";
 | 
	
		
			
				|  |  |         String json = HttpUtil.sendGet(url, "uid=" + doctor);
 | 
	
		
			
				|  |  |         if (!StringUtils.isEmpty(json) && json.trim().startsWith("[") && json.trim().endsWith("]")) {
 | 
	
		
			
				|  |  |             System.out.println("one-to-one:" + json);
 | 
	
		
			
				|  |  |             result = new JSONArray(json);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if (result != null && result.length() > 0) {
 | 
	
		
			
				|  |  |             for (int i = 0; i < result.length(); i++) {
 | 
	
		
			
				|  |  |                 JSONObject obj = result.getJSONObject(i);
 | 
	
		
			
				|  |  |                 if (obj.getInt("msg_type") == 1 && obj.get("peer_uid") != null) {
 | 
	
		
			
				|  |  |                     JSONObject objRe = new JSONObject();
 | 
	
		
			
				|  |  |                     Doctor fromDoctor = doctorDao.findByCode(obj.get("peer_uid").toString());
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                     if (fromDoctor == null) {
 | 
	
		
			
				|  |  |                         continue;
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                     if (!StringUtils.isEmpty(doctorName)) {
 | 
	
		
			
				|  |  |                         if (!fromDoctor.getName().contains(doctorName)) {
 | 
	
		
			
				|  |  |                             continue;
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                     objRe.put("uid", obj.get("uid") != null ? obj.getString("uid") : "");
 | 
	
		
			
				|  |  |                     objRe.put("fromUid", obj.get("peer_uid") != null ? obj.get("peer_uid").toString() : "");
 | 
	
		
			
				|  |  |                     objRe.put("fromName", fromDoctor.getName());
 | 
	
		
			
				|  |  |                     objRe.put("fromLevel", fromDoctor.getLevel());
 | 
	
		
			
				|  |  |                     objRe.put("photo", StringUtils.isEmpty(fromDoctor.getPhoto()) ? "" : fromDoctor.getPhoto());
 | 
	
		
			
				|  |  |                     objRe.put("sex", fromDoctor.getSex());
 | 
	
		
			
				|  |  |                     objRe.put("lastContentType", obj.getInt("last_content_type"));
 | 
	
		
			
				|  |  |                     objRe.put("lastContent", obj.get("last_content") != null ? new String(obj.getString("last_content").getBytes(), "utf-8") : "");
 | 
	
		
			
				|  |  |                     objRe.put("newMsgCount", obj.getInt("new_msg_count"));
 | 
	
		
			
				|  |  |                     objRe.put("lastMsgTime", obj.get("timestamp") != null ? DateUtil.dateToStr(new Date(obj.getLong("timestamp")), DateUtil.YYYY_MM_DD_HH_MM) : "");
 | 
	
		
			
				|  |  |                     objRe.put("lastMsgTimeLong", obj.getLong("timestamp"));
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                     resultArray.put(objRe);
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         return resultArray;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 搜索转发医生
 | 
	
		
			
				|  |  |      *
 |