Browse Source

代码修改

liubing 3 years ago
parent
commit
4a4353ccbd

+ 4 - 0
svr/svr-cloud-device/src/main/java/com/yihu/jw/care/service/DeviceService.java

@ -821,6 +821,10 @@ public class DeviceService {
        BasePatientOutBed outBed = outBedDao.findByPatientAndDeviceSn(patient,device);
        BasePatientOutBed outBed = outBedDao.findByPatientAndDeviceSn(patient,device);
        if (null==outBed){
        if (null==outBed){
            outBed = new BasePatientOutBed();
            outBed = new BasePatientOutBed();
        }else {
            if (0==outBed.getStatus()&&0==status){//离床状态不刷新时间,需要计算离床时长
                return;
            }
        }
        }
        outBed.setPatient(patient);
        outBed.setPatient(patient);
        outBed.setDeviceSn(device);
        outBed.setDeviceSn(device);