Bläddra i källkod

app端支付方式列表bug

yubin 2 veckor sedan
förälder
incheckning
8a5c97f923

+ 1 - 1
cif-service/src/main/java/com/txz/cif/web/mng/appcontroller/PaymentMethodAppController.java

@@ -150,7 +150,7 @@ public class PaymentMethodAppController {
             List<PaymentMethod> paymentMethodList = paymentMethodService.findAll();
             if (!CollectionUtils.isEmpty(paymentMethodList)) {
                 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);
                 }).collect(Collectors.toList());
             }