|
@@ -150,7 +150,7 @@ public class PaymentMethodAppController {
|
|
List<PaymentMethod> paymentMethodList = paymentMethodService.findAll();
|
|
List<PaymentMethod> paymentMethodList = paymentMethodService.findAll();
|
|
if (!CollectionUtils.isEmpty(paymentMethodList)) {
|
|
if (!CollectionUtils.isEmpty(paymentMethodList)) {
|
|
Byte status = 1;
|
|
Byte status = 1;
|
|
- paymentMethodListBO = paymentMethodList.stream().filter(a -> status.equals(a.getIsValid())).map(a -> {
|
|
|
|
|
|
+ paymentMethodListBO = paymentMethodList.stream().filter(a -> status.equals(a.getIsValid()) && status.equals(a.getStatus())).map(a -> {
|
|
return BeanUtil.toBean(a, PaymentMethodBO.class);
|
|
return BeanUtil.toBean(a, PaymentMethodBO.class);
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
}
|
|
}
|