Authored by tanling

no message

... ... @@ -177,13 +177,18 @@ public class PaymentServiceImpl implements IPaymentService {
throw new ServiceException(ServiceError.ORDER_PAY_NOT_ALLOW);
}
// 检查实付金额 TODO
// 检查实付金额
if (sellerOrder.getEarnestMoney() == null){
logger.warn("payment amount null, orderCode is {}", request.getOrderCode());
throw new ServiceException(ServiceError.ORDER_NULL);
}
// 更新预支付方式
sellerOrder.setPayment(request.getPayment());
sellerOrder.setUpdateTime(DateUtil.getCurrentTimeSecond());
sellerOrderMapper.updateByPrimaryKey(sellerOrder);
return sellerOrder.getIncome();
return sellerOrder.getEarnestMoney();
}
/**
... ... @@ -204,7 +209,11 @@ public class PaymentServiceImpl implements IPaymentService {
throw new ServiceException(ServiceError.ORDER_PAY_NOT_ALLOW);
}
// 检查实付金额 TODO
// 检查实付金额
if (buyerOrder.getAmount() == null){
logger.warn("payment amount null, orderCode is {}", request.getOrderCode());
throw new ServiceException(ServiceError.ORDER_NULL);
}
// 更新预支付方式
buyerOrder.setPayment((byte)request.getPayment());
... ...