|
@ -618,7 +618,7 @@ public class DeviceService {
|
|
|
if ("1".equals(bed_status)){//还在床
|
|
|
if (null==planDetail.getUpStatus()) {
|
|
|
planDetail.setUpStatus(0);
|
|
|
planDetail.setBedStatus(0);
|
|
|
planDetail.setBedStatus(1);
|
|
|
planDetail.setBreath(breath);
|
|
|
planDetail.setHeartRate(heartrate);
|
|
|
outBedOrder(null, timeDate,devicePatientDeviceDos.get(0), patient, device, "超时未起床", JSON.toJSONStringWithDateFormat(planDetail, "yyyy-MM-dd HH:mm:ss", SerializerFeature.WriteMapNullValue));
|
|
@ -652,12 +652,14 @@ public class DeviceService {
|
|
|
}
|
|
|
else if(1==planDetail.getSiestaStatus()&&null==planDetail.getSiestaTimeEnd()){
|
|
|
timeDiffer = timeDate.getTime() - planDetail.getSiestaTimeBegin().getTime();
|
|
|
if(3600*siestaLongWarn*1000<timeDiffer&&timeDiffer<(3600*siestaLongWarn+600)*1000){//午睡超时未起床
|
|
|
planDetail.setBedStatus(0);
|
|
|
planDetail.setBreath(breath);
|
|
|
planDetail.setHeartRate(heartrate);
|
|
|
outBedOrder(null,timeDate,devicePatientDeviceDos.get(0),patient,device,"午睡超时未起床",JSON.toJSONStringWithDateFormat(planDetail,"yyyy-MM-dd HH:mm:ss",SerializerFeature.WriteMapNullValue));
|
|
|
orderCreate=true;
|
|
|
if(3600*siestaLongWarn*1000<timeDiffer){//午睡超时未起床
|
|
|
if (planDetail.getSiestaStatus()==1){
|
|
|
planDetail.setBedStatus(1);
|
|
|
planDetail.setBreath(breath);
|
|
|
planDetail.setHeartRate(heartrate);
|
|
|
outBedOrder(null,timeDate,devicePatientDeviceDos.get(0),patient,device,"午睡超时未起床",JSON.toJSONStringWithDateFormat(planDetail,"yyyy-MM-dd HH:mm:ss",SerializerFeature.WriteMapNullValue));
|
|
|
orderCreate=true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|