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