|
@@ -848,7 +848,8 @@ public class BizClinicRoomServiceImpl implements IBizClinicRoomService {
|
|
|
}
|
|
}
|
|
|
//判断泵是否已绑定手术
|
|
//判断泵是否已绑定手术
|
|
|
BizInfusionClinicPO device = infusionClinicRepository.selectOne(new LambdaQueryWrapper<BizInfusionClinicPO>()
|
|
BizInfusionClinicPO device = infusionClinicRepository.selectOne(new LambdaQueryWrapper<BizInfusionClinicPO>()
|
|
|
- .eq(BizInfusionClinicPO::getDeviceId, bizDevicePO.getDeviceId()));
|
|
|
|
|
|
|
+ .eq(BizInfusionClinicPO::getDeviceId, bizDevicePO.getDeviceId())
|
|
|
|
|
+ .last("limit 1"));
|
|
|
if (ObjectUtil.isNotNull(device)) {
|
|
if (ObjectUtil.isNotNull(device)) {
|
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "泵已绑定");
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "泵已绑定");
|
|
|
}
|
|
}
|