| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.order.factory.OrderClientFallbackFactory; |
| | | import com.ruoyi.order.model.Order; |
| | | import com.ruoyi.order.vo.OrderSaleNum; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | @PostMapping("/order/getShopSaleNum") |
| | | R<Integer> getShopSaleNum(@RequestParam("shopId") Integer shopId, @RequestParam("type") Integer type); |
| | | |
| | | @PostMapping("/order/getShopSaleNumByShopIds") |
| | | R<Integer> getShopSaleNumByShopIds(@RequestBody OrderSaleNum orderSaleNum); |
| | | |
| | | |
| | | /** |
| | | * 获取所有在指定门店消费的用户id |
| | |
| | | */ |
| | | @PostMapping("/order/getAppUserByShoppingShop") |
| | | R<Set<Long>> getAppUserByShoppingShop(@RequestParam("shopId") Integer shopId); |
| | | |
| | | /** |
| | | * 获取指定门店的核销订单 |
| | | */ |
| | | @GetMapping("/order/getRedeemedOrdersByShop") |
| | | R<List<Order>> getRedeemedOrdersByShop(@RequestParam("shopId") Integer shopId); |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | @PostMapping("/order/editOrder") |
| | | R editOrder(@RequestBody Order order); |
| | | |
| | | |
| | | /** |
| | | * 获取用户订单数量 |
| | | * @param appUserId |
| | | * @return |
| | | */ |
| | | @PostMapping("/order/getOrderCountByAppUserId") |
| | | R<Long> getOrderCountByAppUserId(@RequestParam("id") Long appUserId); |
| | | |
| | | |
| | | /** |
| | | * 查询给定用户在给定门店核销的订单 |
| | | * @param shopId |
| | | * @param appUserId |
| | | * @return |
| | | */ |
| | | @PostMapping("/order/getOrderByAppUserIdsAndWriteOffShop") |
| | | R<List<Order>> getOrderByAppUserIdsAndWriteOffShop(@RequestParam("shopId") Integer shopId, @RequestParam("appUserId") Set<Long> appUserId); |
| | | } |