后端:完成退款逻辑
This commit is contained in:
@@ -52,4 +52,9 @@ public class OrderReturnServiceImpl implements OrderReturnService {
|
||||
orderReturnMapper.insert(orderReturnDO);
|
||||
return CommonResult.success(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String updateRefundSuccess(String orderId, Integer refundPrice) {
|
||||
return "success";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,9 +258,11 @@ public class OrderServiceImpl implements OrderService {
|
||||
}
|
||||
|
||||
// 标记优惠劵已使用
|
||||
CommonResult<Boolean> useCouponCardResult = couponService.useCouponCard(userId, orderCreateDTO.getCouponCardId());
|
||||
if (useCouponCardResult.isError()) {
|
||||
return CommonResult.error(useCouponCardResult);
|
||||
if (orderCreateDTO.getCouponCardId() != null) {
|
||||
CommonResult<Boolean> useCouponCardResult = couponService.useCouponCard(userId, orderCreateDTO.getCouponCardId());
|
||||
if (useCouponCardResult.isError()) {
|
||||
return CommonResult.error(useCouponCardResult);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO 芋艿,扣除库存
|
||||
|
||||
Reference in New Issue
Block a user