|
@ -1069,9 +1069,9 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
* @param deviceSn 设备sn码
|
|
|
* @return
|
|
|
*/
|
|
|
public com.alibaba.fastjson.JSONObject getPatientDeviceData(String patient,String deviceSn,Integer page,Integer pageSize)throws Exception{
|
|
|
public JSONObject getPatientDeviceData(String patient,String deviceSn,Integer page,Integer pageSize)throws Exception{
|
|
|
page = page>0?page-1:0;
|
|
|
com.alibaba.fastjson.JSONObject result = new com.alibaba.fastjson.JSONObject();
|
|
|
JSONObject result = new JSONObject();
|
|
|
List<DevicePatientDevice> devices = patientDeviceDao.findByDeviceSn(deviceSn);
|
|
|
if (devices.size()>0){
|
|
|
DevicePatientDevice device = devices.get(0);
|
|
@ -1098,7 +1098,7 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
public com.alibaba.fastjson.JSONObject getHealthIndex(com.alibaba.fastjson.JSONObject result,Integer type,String deviceSn,String patient,Integer page,Integer pageSize){
|
|
|
public JSONObject getHealthIndex(JSONObject result,Integer type,String deviceSn,String patient,Integer page,Integer pageSize){
|
|
|
page = page>0?page-1:0;
|
|
|
Long count =0l;
|
|
|
PageRequest pageRequest = new PageRequest(page, pageSize);
|
|
@ -1189,7 +1189,7 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
}
|
|
|
}
|
|
|
|
|
|
re.put(json);
|
|
|
re.put(json);
|
|
|
}
|
|
|
result.put("dataList",re);
|
|
|
}
|
|
@ -1200,7 +1200,7 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
public com.alibaba.fastjson.JSONObject getEmeWarn(com.alibaba.fastjson.JSONObject result,String deviceSn,String patient,Integer page,Integer pageSize){
|
|
|
public JSONObject getEmeWarn(JSONObject result,String deviceSn,String patient,Integer page,Integer pageSize){
|
|
|
|
|
|
String sqlCount = "select SUM(total) from( \n" +
|
|
|
"select count(ord.id) as total from base_emergency_assistance_order ord where ord.device_sn='"+deviceSn+"' " +
|