|
|
@@ -238,8 +238,10 @@ public class LocalBusInfusionHistoryService extends BaseService<BusInfusionHisto
|
|
|
}
|
|
|
if(!finishClinic){
|
|
|
if(Boolean.TRUE.equals(manualUndoConfig.getMonitorType())){
|
|
|
- BusPatientEntity patient = patientService.getOne(new QueryWrapper<BusPatientEntity>().lambda()
|
|
|
- .eq(BusPatientEntity::getCode, manualUndoConfig.getPatientId()));
|
|
|
+ BusPatientEntity patient = patientService.getById(manualUndoConfig.getPatientId());
|
|
|
+ if(patient==null){
|
|
|
+ throw new CustomException("所选住院号有误,请重新选择");
|
|
|
+ }
|
|
|
//去除主输注id
|
|
|
infusionIds=infusionIds.stream().filter(id->!id.equals(patient.getInfusionId())).collect(Collectors.toList());
|
|
|
//输注结束,更新撤泵信息
|