update lookupdata endpoint
This commit is contained in:
@@ -67,11 +67,12 @@ public class LookUpDataDao {
|
||||
return response;
|
||||
}
|
||||
|
||||
public List<LookUpDataResponseBean> getLookUpDataByType(LookUpDataTypeEnum type) {
|
||||
return lookUpDataRepository.findByType(type.getValue())
|
||||
.stream()
|
||||
public List<LookUpDataResponseBean> getLookUpDataByTypes(List<LookUpDataTypeEnum> types) {
|
||||
return types.stream()
|
||||
.flatMap(type -> lookUpDataRepository.findByType(type.getValue()).stream())
|
||||
.map(this::convertLookUpDataEntityToResponseBean)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user