示例#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";
 }
示例#2
0
 /** 删除 */
 @RequestMapping(value = "/delete", method = RequestMethod.POST)
 public @ResponseBody Message delete(Long[] ids) {
   shippingService.delete(ids);
   return SUCCESS_MESSAGE;
 }
示例#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";
 }