|
|
|
@ -11,12 +11,17 @@ import net.lensfrex.dscape.dao.mapper.PatientDataMapper; |
|
|
|
|
import net.lensfrex.dscape.dao.service.PatientDataService; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
@Service |
|
|
|
|
public class PatientDataServiceImpl extends ServiceImpl<PatientDataMapper, PatientData> implements PatientDataService { |
|
|
|
|
@Override |
|
|
|
|
public List<PatientData> getData(List<Long> ids) { |
|
|
|
|
if (ids == null || ids.isEmpty()) { |
|
|
|
|
return new ArrayList<>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QueryWrapper<PatientData> wrapper = new QueryWrapper<>(); |
|
|
|
|
wrapper.lambda() |
|
|
|
|
.in(PatientData::getId, ids) |
|
|
|
|