|
@ -7,7 +7,6 @@ import com.yihu.wlyy.repository.deviece.PatientHealthTimeDao;
|
|
|
import com.yihu.wlyy.repository.patient.PatientDeviceDao;
|
|
|
import com.yihu.wlyy.service.app.device.PatientDeviceService;
|
|
|
import com.yihu.wlyy.util.HttpClientUtil;
|
|
|
import com.yihu.wlyy.util.SystemConf;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@ -161,8 +160,10 @@ public class PatientDeviceController extends BaseController {
|
|
|
if(!getUID().equals(getRepUID())&&device.getId()==null){
|
|
|
device.setAgent(getRepUID());
|
|
|
}
|
|
|
|
|
|
patientDeviceService.saveDevice(device);
|
|
|
String sn = device.getDeviceSn();
|
|
|
synchronized (sn.intern()){
|
|
|
patientDeviceService.saveDevice(device);
|
|
|
}
|
|
|
|
|
|
return success("设备保存成功!");
|
|
|
} catch (Exception ex) {
|