@Log(message="批量删除了id={0}任务。")
@RequiresPermissions("Task:delete:User关联的资源")
@RequestMapping(value="/delete", method=RequestMethod.POST)
public @ResponseBody String deleteMany(Long[] ids) {
for (int i = 0; i < ids.length; i++) {
Task task = taskService.get(ids[i]);
taskService.delete(task.getId());
}
LogUitls.putArgs(LogMessageObject.newWrite().setObjects(new Object[]{Arrays.toString(ids)}));
return AjaxObject.newOk("任务删除成功!").setCallbackType("").toString();
}