退款bugfix
This commit is contained in:
@ -258,7 +258,7 @@ public class StoreOrderController {
|
||||
@PreAuthorize("hasAnyRole('admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT')")
|
||||
public ResponseEntity refund(@Validated @RequestBody YxStoreOrder resources) {
|
||||
yxStoreOrderService.orderRefund(resources.getOrderId(),resources.getPayPrice(),
|
||||
ShopCommonEnum.AGREE_1.getValue());
|
||||
ShopCommonEnum.AGREE_1.getValue(), null);
|
||||
return new ResponseEntity(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ public class StoreAfterSalesController {
|
||||
// 回滚库存、退积分、退优惠券
|
||||
storeOrderService.returnStock(salesCheckDto.getOrderCode());
|
||||
} else {
|
||||
storeOrderService.orderRefund(salesCheckDto.getOrderCode(), storeAfterSales.getRefundAmount(), 1);
|
||||
storeOrderService.orderRefund(salesCheckDto.getOrderCode(), storeAfterSales.getRefundAmount(), 1, storeAfterSales.getId());
|
||||
}
|
||||
}
|
||||
return new ResponseEntity<>(salesCheck, HttpStatus.OK);
|
||||
@ -117,7 +117,7 @@ public class StoreAfterSalesController {
|
||||
// 回滚库存、退积分、退优惠券
|
||||
storeOrderService.returnStock(sales.getOrderCode());
|
||||
} else {
|
||||
storeOrderService.orderRefund(orderCode, sales.getRefundAmount(), 1);
|
||||
storeOrderService.orderRefund(orderCode, sales.getRefundAmount(), 1, salesId);
|
||||
}
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
|
Reference in New Issue
Block a user