| | |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.order.service.IOrderService; |
| | | import com.ruoyi.system.api.domain.Order; |
| | | import com.ruoyi.system.api.domain.dto.HomeGoodsSkuDTO; |
| | | import com.ruoyi.system.api.domain.dto.OrderDTO; |
| | | import com.ruoyi.system.api.domain.dto.OrderUpdDTO; |
| | | import com.ruoyi.system.api.domain.vo.OrderVO; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | return R.ok(orderService.getOrderByGroupPurchaseId(id)); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @ResponseBody |
| | | @PostMapping("/getOrderByGroupPurchaseMemberId") |
| | | R<Order> getOrderByGroupPurchaseMemberId(@RequestBody HomeGoodsSkuDTO homeGoodsSkuDTO){ |
| | | return R.ok(orderService.getOrderByGroupPurchaseMemberId(homeGoodsSkuDTO)); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @ResponseBody |
| | | @PostMapping("/getOrderByGroupPurchaseMemberList") |
| | | R<List<OrderVO>> getOrderByGroupPurchaseMemberList(@RequestBody HomeGoodsSkuDTO homeGoodsSkuDTO){ |
| | | return R.ok(orderService.getOrderByGroupPurchaseMemberList(homeGoodsSkuDTO)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 批量更新订单状态 |
| | | * |
| | |
| | | orderService.updateBatchById(orders); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 根据优惠券id集合查询订单列表 |
| | | * |
| | | * @param couponIds 优惠券id集合 |
| | | * @return List<Order> |
| | | */ |
| | | @PostMapping("/order/list-by-coupon") |
| | | R<List<Order>> getOrderByCouponIds(@RequestBody Collection<Long> couponIds) { |
| | | return R.ok(orderService.getOrderByCouponIds(couponIds)); |
| | | } |
| | | } |