Пример #1
0
 /** 批量删除 */
 @RequestMapping(method = RequestMethod.DELETE)
 public String batchDelete(ModelMap model, @RequestParam("items") java.lang.Long[] items) {
   for (int i = 0; i < items.length; i++) {
     commentManager.removeById(items[i]);
   }
   Flash.current().success(DELETE_SUCCESS);
   return LIST_ACTION;
 }
Пример #2
0
 /** 删除 */
 @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
 public String delete(ModelMap model, @PathVariable java.lang.Long id) {
   commentManager.removeById(id);
   Flash.current().success(DELETE_SUCCESS);
   return LIST_ACTION;
 }