|
@ -8,7 +8,11 @@ import com.yihu.wlyy.entity.message.Message;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
import com.yihu.wlyy.repository.message.MessageDao;
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
import com.yihu.wlyy.util.HttpClientUtil;
|
|
|
import com.yihu.wlyy.util.SystemConf;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.http.NameValuePair;
|
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
|
import org.json.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
@ -181,13 +185,19 @@ public class MessageService extends BaseService {
|
|
|
}
|
|
|
|
|
|
JSONObject json = new JSONObject();
|
|
|
getImMsgAmount(json,doctor);
|
|
|
//json.put("consult", consultJson);
|
|
|
//json.put("famousConsult", famousJson);
|
|
|
json.put("sign", signJson);
|
|
|
json.put("healthIndex", indexJson);
|
|
|
return json;
|
|
|
}
|
|
|
|
|
|
private void getImMsgAmount(JSONObject obj,String doctor){
|
|
|
String url = SystemConf.getInstance().getSystemProperties().getProperty("im_list_get")
|
|
|
+ "/api/v1/chats/msg/amount?user_id="+doctor;
|
|
|
String response = HttpClientUtil.get(url, "UTF-8");
|
|
|
obj.put("imMsgCount",response);
|
|
|
}
|
|
|
/**
|
|
|
* 查询健康咨询列表
|
|
|
*
|