Ejemplo n.º 1
0
 /** 列表 */
 @RequestMapping(value = "/list", method = RequestMethod.GET)
 public String list(Pageable pageable, ModelMap model) {
   model.addAttribute("page", shippingService.findPage(pageable));
   return "/admin/shipping/list";
 }
Ejemplo n.º 2
0
 /** 删除 */
 @RequestMapping(value = "/delete", method = RequestMethod.POST)
 public @ResponseBody Message delete(Long[] ids) {
   shippingService.delete(ids);
   return SUCCESS_MESSAGE;
 }
Ejemplo n.º 3
0
 /** 查看 */
 @RequestMapping(value = "/view", method = RequestMethod.GET)
 public String view(Long id, ModelMap model) {
   model.addAttribute("shipping", shippingService.find(id));
   return "/admin/shipping/view";
 }