|
@ -99,7 +99,8 @@ public class PatientDeviceService extends BaseService {
|
|
|
|
|
|
//校验sn码是否被使用
|
|
|
if(needVerify) {
|
|
|
PatientDevice device = patientDeviceDao.findByDeviceIdAndDeviceSnAndUserType(deviceId, sn, userType);
|
|
|
// PatientDevice device = patientDeviceDao.findByDeviceIdAndDeviceSnAndUserType(deviceId, sn, userType);
|
|
|
PatientDevice device = patientDeviceDao.findByDeviceSnAndUserType(sn, userType);
|
|
|
if (device != null && !device.getId().equals(patientDevice.getId())) {
|
|
|
throw new Exception("sn码" + sn + "已被使用!");
|
|
|
}
|