OrderController.java 870 B

123456789101112131415161718192021222324252627
  1. package com.futu.course.orders.controller;
  2. import com.futu.course.orders.domain.Order1;
  3. import com.futu.course.orders.service.impl.Order1ServiceImpl;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.web.bind.annotation.PostMapping;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RequestParam;
  8. import org.springframework.web.bind.annotation.RestController;
  9. import java.util.List;
  10. /**
  11. * @author "杨旭朋"
  12. * @ClassName: OrderController
  13. * @date 2025年05月12日 19:33
  14. */
  15. @RestController
  16. @RequestMapping("order")
  17. public class OrderController {
  18. @Autowired
  19. private Order1ServiceImpl order1Service;
  20. @PostMapping("OrderList")
  21. public List<Order1> OrderList(@RequestParam("status") int status) {
  22. return order1Service.OrderList(status);
  23. }
  24. }