@RequestMapping(value = "/provider/products/{id}", method = RequestMethod.GET, params = "edit")
 public String edit(Model uiModel, @PathVariable("id") Long id) {
   Provider user = (Provider) userContext.getCurrentUser();
   Product product = productService.findOneByUser(user, id);
   uiModel.addAttribute("product", product);
   return USERPRODUCTSEDIT;
 }
 // 商品下架
 @RequestMapping(value = "/provider/products/{id}/{status}", method = RequestMethod.PUT)
 public String offProduct(
     @PathVariable("id") Long id,
     @PathVariable("status") String status,
     @SecurityUser SiteUser user,
     Model uiModel) {
   Product product = productService.findOneByUser(new Provider(user.getId()), id);
   if (product == null) throw new ProductNotFoundException();
   product.setOriginal(OriginalEnum.valueOf(status));
   product = productService.saveOne(product);
   uiModel.addAttribute("product", product);
   return "user/provider/maintaintd";
 }