SupplierController.java 1019 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.caimei.www.controller;
  2. import org.springframework.stereotype.Controller;
  3. import org.springframework.ui.Model;
  4. import org.springframework.web.bind.annotation.GetMapping;
  5. import org.springframework.web.bind.annotation.RequestParam;
  6. /**
  7. * Description
  8. *
  9. * @author : Charles
  10. * @date : 2020/7/15
  11. */
  12. @Controller
  13. public class SupplierController extends BaseController {
  14. private static final String SUPPLIER_SEARCH_PATH = "supplier/search";
  15. private static final String SUPPLIER_HOME_PATH = "supplier/home";
  16. /**
  17. * 供应商搜索结果页
  18. */
  19. @GetMapping("/supplier/search.html")
  20. public String search() {
  21. return SUPPLIER_SEARCH_PATH;
  22. }
  23. /**
  24. * 供应商详情页
  25. */
  26. @GetMapping("/supplier/home.html")
  27. public String home(final Model model, @RequestParam("sid") Integer shopId) {
  28. /*ProductDetail detail = productService.getProductDetailById(productId);
  29. model.addAttribute("product", detail);*/
  30. return SUPPLIER_HOME_PATH;
  31. }
  32. }