|
@ -152,6 +152,14 @@ public class SecurityOrderUtil {
|
|
|
params.add(new BasicNameValuePair("patientId", logDO.getPatient()));
|
|
|
params.add(new BasicNameValuePair("orderSource", orderSource));//工单来源工单发起来源状态 1APP 2手环 3居家报警 4拐杖
|
|
|
String response = httpClientUtil.post(url, params,"UTF-8");
|
|
|
JSONObject result = com.alibaba.fastjson.JSONObject.parseObject(response);
|
|
|
logDO.setSosSendStatus(result.getInteger("status").toString());
|
|
|
if (result.containsKey("message")){
|
|
|
logDO.setSosSendMessage(result.getString("message"));
|
|
|
}
|
|
|
if (result.containsKey("msg")){
|
|
|
logDO.setSosSendMessage(result.getString("msg"));
|
|
|
}
|
|
|
System.out.println(response);
|
|
|
}
|
|
|
sosLogDao.save(logDO);
|