...
|
...
|
@@ -52,6 +52,7 @@ import com.yohoufo.order.utils.PaymentHelper; |
|
|
import com.yohoufo.order.utils.ServiceExceptions;
|
|
|
import lombok.val;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -1304,7 +1305,8 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
|
|
|
// 获取支付成功记录
|
|
|
OrdersPay ordersPay = ordersPayMapper.selectOrdersPay(orderInfo.getOrderCode(), orderInfo.getUid());
|
|
|
if (ordersPay == null || ordersPay.getAmount() == null) {
|
|
|
|
|
|
if (!ObjectUtils.allNotNull(ordersPay, ordersPay.getAmount(), ordersPay.getPayment())) {
|
|
|
logger.warn("manual refund paid record not exist.orderCode is {}", orderCode);
|
|
|
ServiceExceptions.throwServiceException("订单[" + orderCode + "],尚未支付!");
|
|
|
}
|
...
|
...
|
|