getBasicInfo(List<String> vhrNos) -> getBasicInfo(List<BasicInfoRequest>

reqs)
master
mjkhan21 1 year ago
parent 096a765317
commit 098a38e562

@ -90,13 +90,7 @@ public class VehicleInfoBean extends AbstractComponent {
return response; return response;
} }
public Map<String, BasicInfoResponse> getBasicInfo(List<String> vhrNos) { public Map<String, BasicInfoResponse> getBasicInfo(List<BasicInfoRequest> reqs) {
List<BasicInfoRequest> reqs = vhrNos.stream().map(vhrNo -> {
BasicInfoRequest req = new BasicInfoRequest();
req.setVhrno(vhrNo);
return req;
}).toList();
return reqs.stream() return reqs.stream()
.map(this::getBasicInfo) .map(this::getBasicInfo)
.filter(BasicInfoResponse::isSuccess) .filter(BasicInfoResponse::isSuccess)

Loading…
Cancel
Save