Authored by LUOXC

fixbug

@@ -1096,8 +1096,7 @@ public class PaymentServiceImpl implements IPaymentService { @@ -1096,8 +1096,7 @@ public class PaymentServiceImpl implements IPaymentService {
1096 1096
1097 // 获取支付成功记录 1097 // 获取支付成功记录
1098 OrdersPay ordersPay = ordersPayMapper.selectOrdersPay(orderInfo.getOrderCode(), orderInfo.getUid()); 1098 OrdersPay ordersPay = ordersPayMapper.selectOrdersPay(orderInfo.getOrderCode(), orderInfo.getUid());
1099 -  
1100 - throwServiceExceptionIf(!ObjectUtils.allNotNull(ordersPay, ordersPay.getAmount(), ordersPay.getPayment()), 1099 + throwServiceExceptionIf(Objects.isNull(ordersPay) || Objects.isNull(ordersPay.getAmount()) || Objects.isNull(ordersPay.getPayment()),
1101 exceptionMessage.apply("尚未支付")); 1100 exceptionMessage.apply("尚未支付"));
1102 1101
1103 throwServiceExceptionIf(CollectionUtils.isNotEmpty(ordersPayRefundMapper.selectByOrderCode(orderCode)), 1102 throwServiceExceptionIf(CollectionUtils.isNotEmpty(ordersPayRefundMapper.selectByOrderCode(orderCode)),