|
@ -470,6 +470,16 @@ public class DeviceService extends BaseService{
|
|
|
String creditDetail = "{\"tradeType\":\"HEALTH_TASK\",\"flag\":\"MEASURE\",\"tradeDirection\":1,\"status\":1,\"patientId\":\""+result.getUser()+"\",\"hospital\":\""+patient.getTown()+"\"}";
|
|
|
params.put("creditsDetail", creditDetail);
|
|
|
String response = HttpClientUtil.postBody(url, params);
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = com.alibaba.fastjson.JSONObject.parseObject(response);
|
|
|
String status = jsonObject.getString("status");
|
|
|
if ("200".equals(status)){
|
|
|
List<Map<String,Object>> list = (List<Map<String,Object>>)jsonObject.get("detailModelList");
|
|
|
if (list!=null && list.size()>0){
|
|
|
String integrate = String.valueOf(list.get(0).get("integrate"));
|
|
|
String flagType = String.valueOf(list.get(0).get("flag"));
|
|
|
//@TODO 调用发送微信模板接口
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//血糖、血压数据需校验,如果超标,需要发送消息给医生
|
|
|
if (1 == deviceType || 2 == deviceType) {
|