挂账支付 挂账人Id问题
This commit is contained in:
@@ -608,6 +608,9 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||||||
if (payOrderId != null) {
|
if (payOrderId != null) {
|
||||||
updateChain.set(OrderInfo::getPayOrderId, payOrderId);
|
updateChain.set(OrderInfo::getPayOrderId, payOrderId);
|
||||||
}
|
}
|
||||||
|
if (orderInfo.getCreditBuyerId() != null) {
|
||||||
|
updateChain.set(OrderInfo::getCreditBuyerId, orderInfo.getCreditBuyerId());
|
||||||
|
}
|
||||||
if (ObjectUtil.isNotNull(payType)) {
|
if (ObjectUtil.isNotNull(payType)) {
|
||||||
updateChain.set(OrderInfo::getPayType, payType.getValue());
|
updateChain.set(OrderInfo::getPayType, payType.getValue());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ public class PayServiceImpl implements PayService {
|
|||||||
@Override
|
@Override
|
||||||
@Transactional(noRollbackFor = PaySuccessException.class)
|
@Transactional(noRollbackFor = PaySuccessException.class)
|
||||||
public CzgResult<Object> creditPayOrder(OrderPayParamDTO payParam) {
|
public CzgResult<Object> creditPayOrder(OrderPayParamDTO payParam) {
|
||||||
AssertUtil.isNull(payParam.getCreditBuyerId(), "挂账人不可为空");
|
AssertUtil.isNull(payParam.getCreditBuyerId(), "请选择挂账人后支付");
|
||||||
OrderInfo orderInfo = checkPay(payParam.getCheckOrderPay());
|
OrderInfo orderInfo = checkPay(payParam.getCheckOrderPay());
|
||||||
orderInfo.setCreditBuyerId(payParam.getCreditBuyerId());
|
orderInfo.setCreditBuyerId(payParam.getCreditBuyerId());
|
||||||
orderInfoService.upOrderInfo(orderInfo, orderInfo.getOrderAmount(),
|
orderInfoService.upOrderInfo(orderInfo, orderInfo.getOrderAmount(),
|
||||||
|
|||||||
Reference in New Issue
Block a user