|  | @ -606,7 +606,7 @@ public class DeviceService {
 | 
												
													
														
															|  |                         planDetail.setDeviceSn(device);
 |  |                         planDetail.setDeviceSn(device);
 | 
												
													
														
															|  |                         /***起床***/
 |  |                         /***起床***/
 | 
												
													
														
															|  |                         Long timeDiffer = timeDate.getTime() - bedUp.getTime();
 |  |                         Long timeDiffer = timeDate.getTime() - bedUp.getTime();
 | 
												
													
														
															|  |                         if(DateUtil.isInArea(timeDate,bedUpBegin,bedUpEnd)){//起床时间内
 |  | 
 | 
												
													
														
															|  | 
 |  |                         if(DateUtil.isInArea(timeDate,bedUpBegin,SiestaBegin)){//起床时间内
 | 
												
													
														
															|  |                             if ("0".equals(bed_status)){//起床
 |  |                             if ("0".equals(bed_status)){//起床
 | 
												
													
														
															|  |                                 if (null==planDetail.getUpStatus()||1==planDetail.getUpStatus()){
 |  |                                 if (null==planDetail.getUpStatus()||1==planDetail.getUpStatus()){
 | 
												
													
														
															|  |                                     planDetail.setUpStatus(0);
 |  |                                     planDetail.setUpStatus(0);
 | 
												
											
												
													
														
															|  | @ -655,6 +655,7 @@ public class DeviceService {
 | 
												
													
														
															|  |                                     if(3600*siestaLongWarn*1000<timeDiffer){//午睡超时未起床
 |  |                                     if(3600*siestaLongWarn*1000<timeDiffer){//午睡超时未起床
 | 
												
													
														
															|  |                                         if (planDetail.getSiestaStatus()==1){
 |  |                                         if (planDetail.getSiestaStatus()==1){
 | 
												
													
														
															|  |                                             planDetail.setBedStatus(1);
 |  |                                             planDetail.setBedStatus(1);
 | 
												
													
														
															|  | 
 |  |                                             planDetail.setSiestaTimeEnd(timeDate);//设置临时结束时间但不计算时长 避免重复发起工单
 | 
												
													
														
															|  |                                             planDetail.setBreath(breath);
 |  |                                             planDetail.setBreath(breath);
 | 
												
													
														
															|  |                                             planDetail.setHeartRate(heartrate);
 |  |                                             planDetail.setHeartRate(heartrate);
 | 
												
													
														
															|  |                                             outBedOrder(null,timeDate,devicePatientDeviceDos.get(0),patient,device,"午睡超时未起床",JSON.toJSONStringWithDateFormat(planDetail,"yyyy-MM-dd HH:mm:ss",SerializerFeature.WriteMapNullValue));
 |  |                                             outBedOrder(null,timeDate,devicePatientDeviceDos.get(0),patient,device,"午睡超时未起床",JSON.toJSONStringWithDateFormat(planDetail,"yyyy-MM-dd HH:mm:ss",SerializerFeature.WriteMapNullValue));
 |