|
|
|
@ -36,4 +36,12 @@ public class TrInpatientOutpatientDaoImpl extends BaseDaoImpl<TrInpatientOutpati
|
|
|
|
|
wrapper.eq(TrInpatientOutpatient::getPatientId, inpatientId);
|
|
|
|
|
baseMapper.delete(wrapper);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean exists(String inpatientId) {
|
|
|
|
|
LambdaQueryWrapper<TrInpatientOutpatient> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
wrapper.eq(TrInpatientOutpatient::getPatientId, inpatientId);
|
|
|
|
|
wrapper.last(" LIMIT 1");
|
|
|
|
|
return baseMapper.selectCount(wrapper)>1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|