挂账支付
This commit is contained in:
@@ -16,6 +16,7 @@ public class OrderPayParamDTO {
|
|||||||
// @NotNull(message = "店铺不能为空")
|
// @NotNull(message = "店铺不能为空")
|
||||||
private Long shopId;
|
private Long shopId;
|
||||||
private Long shopUserId;
|
private Long shopUserId;
|
||||||
|
private Long creditBuyerId;
|
||||||
private String buyerRemark;
|
private String buyerRemark;
|
||||||
private String returnUrl;
|
private String returnUrl;
|
||||||
private String payType;
|
private String payType;
|
||||||
|
|||||||
@@ -131,7 +131,9 @@ public class PayServiceImpl implements PayService {
|
|||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public CzgResult<Object> creditPayOrder(OrderPayParamDTO payParam) {
|
public CzgResult<Object> creditPayOrder(OrderPayParamDTO payParam) {
|
||||||
|
AssertUtil.isNull(payParam.getCreditBuyerId(),"挂账人不可为空");
|
||||||
OrderInfo orderInfo = checkPay(payParam.getCheckOrderPay());
|
OrderInfo orderInfo = checkPay(payParam.getCheckOrderPay());
|
||||||
|
orderInfo.setCreditBuyerId(payParam.getCreditBuyerId());
|
||||||
orderInfoService.upOrderInfo(orderInfo, orderInfo.getOrderAmount(),
|
orderInfoService.upOrderInfo(orderInfo, orderInfo.getOrderAmount(),
|
||||||
LocalDateTime.now(), null, PayEnums.CREDIT_PAY);
|
LocalDateTime.now(), null, PayEnums.CREDIT_PAY);
|
||||||
redisService.del(RedisCst.classKeyExpired.EXPIRED_ORDER + orderInfo.getId());
|
redisService.del(RedisCst.classKeyExpired.EXPIRED_ORDER + orderInfo.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user