|
@ -598,7 +598,19 @@ public class AsyncService extends BaseService{
|
|
|
flagStr="GLU_MEASURE";
|
|
|
}
|
|
|
|
|
|
PatientDevice patientDevice = patientDeviceDao.findByDeviceSnAndCategoryCodeAndUserType(deviceSn,type,userType);
|
|
|
//根据设备获取患者(设备只绑定一个人的时候,不判断按键)
|
|
|
List<PatientDevice> patientDeviceList = patientDeviceDao.findByDeviceSnAndCategoryCode(deviceSn, type);
|
|
|
PatientDevice patientDevice = null;
|
|
|
if (patientDeviceList != null&&patientDeviceList.size()==1) {
|
|
|
patientDevice = patientDeviceList.get(0);
|
|
|
}else if(patientDeviceList != null&&patientDeviceList.size()==2){
|
|
|
for (int i=0;i<patientDeviceList.size();i++){
|
|
|
if(userType.equals(patientDeviceList.get(i).getUserType())){
|
|
|
patientDevice = patientDeviceList.get(i);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
boolean dataUoloadCount = true;
|
|
|
if (patientDevice!=null){
|
|
|
//String today = DateUtil.getStringDateShort();
|