|
@ -606,7 +606,7 @@ public class DeviceService {
|
|
|
planDetail.setDeviceSn(device);
|
|
|
/***起床***/
|
|
|
Long timeDiffer = timeDate.getTime() - bedUp.getTime();
|
|
|
if(DateUtil.isInArea(timeDate,bedUpBegin,bedUpEnd)){//起床时间内
|
|
|
if(DateUtil.isInArea(timeDate,bedUpBegin,SiestaBegin)){//起床时间内
|
|
|
if ("0".equals(bed_status)){//起床
|
|
|
if (null==planDetail.getUpStatus()||1==planDetail.getUpStatus()){
|
|
|
planDetail.setUpStatus(0);
|
|
@ -655,6 +655,7 @@ public class DeviceService {
|
|
|
if(3600*siestaLongWarn*1000<timeDiffer){//午睡超时未起床
|
|
|
if (planDetail.getSiestaStatus()==1){
|
|
|
planDetail.setBedStatus(1);
|
|
|
planDetail.setSiestaTimeEnd(timeDate);//设置临时结束时间但不计算时长 避免重复发起工单
|
|
|
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));
|