| | |
| | | |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.dto.ExchangeBackDto; |
| | | import com.ruoyi.common.core.dto.ExchangeDto; |
| | | import com.ruoyi.order.api.factory.OrderFallbackFactory; |
| | | import com.ruoyi.order.api.model.ChargingListQuery; |
| | | import com.ruoyi.order.api.model.TGrantVip; |
| | | import com.ruoyi.order.api.model.TShoppingOrder; |
| | | import com.ruoyi.order.api.model.TVipOrder; |
| | | import com.ruoyi.order.api.query.TActivityStatisticsQuery; |
| | | import com.ruoyi.order.api.vo.AccountListVO; |
| | | import com.ruoyi.order.api.vo.TActivityVO; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | */ |
| | | @FeignClient(contextId = "OrderClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = OrderFallbackFactory.class) |
| | | public interface OrderClient { |
| | | |
| | | |
| | | |
| | | @PostMapping(value = "/t-charging-order/management/give/vip") |
| | | R managementGiveVip(@RequestBody TGrantVip grantVip); |
| | | |
| | | |
| | | @GetMapping("/t-exchange-order/getSalesCountByGoodsIds/{goodsIds}") |
| | | R<List<Integer>> getSalesCountByGoodsId(@PathVariable("goodsIds") String goodsIds); |
| | | |
| | | |
| | | @GetMapping("/t-exchange-order/getCount") |
| | | R<Integer> getSalesCountByGoodsIdgetCount(@RequestParam("goodId") Integer goodId,@RequestParam("goodeType")Integer goodeType,@RequestParam("buyType")Integer buyType); |
| | | |
| | | /** |
| | | * 管理后台 根据t_app_coupon订单购买或者兑换优惠券的订单编号 |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/t-exchange-order/getCodeByOrderId/{goodsIds}") |
| | | public R<List<String>> getCodeByOrderId(@PathVariable("goodsIds")String goodsIds); |
| | | R<List<String>> getCodeByOrderId(@PathVariable("goodsIds")String goodsIds); |
| | | |
| | | |
| | | //查询已兑换的订单数 |
| | | @PostMapping("/t-exchange-order/getById") |
| | | public R<Long> getExchangeById(@RequestParam("goodId") Integer goodId,@RequestParam("userId") Long userId,@RequestParam("goodType") Integer goodType); |
| | | R<Long> getExchangeById(@RequestParam("goodId") Integer goodId,@RequestParam("userId") Long userId,@RequestParam("goodType") Integer goodType); |
| | | |
| | | @PostMapping("/t-exchange-order/create") |
| | | public R<Long> exchangeCreate(@RequestBody ExchangeDto exchangeDto); |
| | | R<ExchangeBackDto> exchangeCreate(@RequestBody ExchangeDto exchangeDto); |
| | | |
| | | |
| | | @PostMapping("/t-vip-order/addVipOrder1") |
| | | R<Long> addVipOrder(@RequestBody TVipOrder vipOrder); |
| | | |
| | | |
| | | @PostMapping("/t-shopping-order/create") |
| | | public R<Long> shopCreate(@RequestBody ExchangeDto exchangeDto); |
| | | R<TShoppingOrder> shopCreate(@RequestBody ExchangeDto exchangeDto); |
| | | |
| | | |
| | | @PostMapping("/t-shopping-order/callBack") |
| | | R callBack(@RequestParam("code")String code,@RequestParam("outTradeNo")String outTradeNo); |
| | | |
| | | |
| | | @PostMapping("/t-vip-order/callBack") |
| | | R vipCallBack(@RequestParam("code")String code,@RequestParam("outTradeNo")String outTradeNo); |
| | | |
| | | |
| | | /** |
| | | * 管理后台 活动费用统计 |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/t-exchange-order/activityStatistics") |
| | | public R<TActivityVO> activityStatistics(@RequestBody TActivityStatisticsQuery dto); |
| | | R<TActivityVO> activityStatistics(@RequestBody TActivityStatisticsQuery dto); |
| | | |
| | | |
| | | @PostMapping(value = "/chargingBill/accountBillList") |
| | | @ApiOperation(value = "列表查询", tags = {"管理后台-账户结算账单"}) |
| | | R<AccountListVO> accountBillList(@RequestBody ChargingListQuery dto); |
| | | |
| | | } |