| | |
| | | |
| | | import com.oying.exception.BadRequestException; |
| | | import com.oying.modules.hwc.service.SwiftPassService; |
| | | import com.oying.modules.pc.product.service.ProductInventoryService; |
| | | import com.oying.modules.sh.domain.Order; |
| | | import com.oying.modules.sh.domain.OrderProductSnapshot; |
| | | import com.oying.modules.sh.domain.OrderReturn; |
| | |
| | | private final RedisUtils redisUtils; |
| | | private final SwiftPassService swiftPassService; |
| | | private final OrderAddressSnapshotService addressSnapshotService; |
| | | private final ProductInventoryService productInventoryService; |
| | | private static final String ORDER_RETURN_KEY = "oying:order:refund"; |
| | | private static final String ORDER_CODE = "REFUND"; |
| | | public static final Integer DAY = 30; |
| | |
| | | default: |
| | | throw new BadRequestException("暂未开通其余支付模式"); |
| | | } |
| | | for (OrderReturnProductSnapshot snapshot : orderReturn.getProductSnapshots()) { |
| | | productInventoryService.increaseStock(snapshot.getProductId(), snapshot.getDetailCount()); |
| | | } |
| | | break; |
| | | default: |
| | | throw new BadRequestException("审核状态错误"); |