|
@ -471,10 +471,10 @@ public class DeviceService extends BaseService{
|
|
|
userType = "-1";
|
|
|
}
|
|
|
|
|
|
//根据设备获取患者
|
|
|
PatientDevice device = patientDeviceDao.findByDeviceSnAndCategoryCodeAndUserType(deviceSn, type, userType);
|
|
|
if (device != null) {
|
|
|
|
|
|
//根据设备获取患者(设备只绑定一个人的时候,不判断按键)
|
|
|
List<PatientDevice> patientDeviceList = patientDeviceDao.findByDeviceSnAndCategoryCode(deviceSn, type);
|
|
|
if (patientDeviceList != null&&patientDeviceList.size()==1) {
|
|
|
PatientDevice device = patientDeviceList.get(0);
|
|
|
/************设备数据重复推送处理 start**********************/
|
|
|
String value1 = data;
|
|
|
if("2".equals(type)){
|