|
@ -1262,6 +1262,15 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
String time_begin,String time_end,String safe_area ,String clear) throws Exception{
|
|
|
List<DevicePatientDevice> devices = patientDeviceDao.findByDeviceSn(deviceSn);
|
|
|
String url ="";
|
|
|
|
|
|
if ("16".equals(devices.get(0).getCategoryCode())) {
|
|
|
DevicePatientDevice patientDevice = devices.get(0);
|
|
|
if (StringUtils.isNotBlank(safe_area)){
|
|
|
patientDevice.setSafeAreaGz(safe_area);
|
|
|
patientDeviceDao.save(patientDevice);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if ("4".equals(devices.get(0).getCategoryCode())){//手表
|
|
|
Device device = deviceDao.findOne(devices.get(0).getDeviceId());
|
|
|
if (device!=null){
|