@Log(message="删除了{0}组织。")
@RequiresPermissions("Organization:delete")
@RequestMapping(value="/delete/{id}", method=RequestMethod.POST)
public @ResponseBody String delete(@PathVariable Long id) {
Organization organization = organizationService.get(id);
try {
organizationService.delete(id);
} catch (ServiceException e) {
return AjaxObject.newError("删除组织失败:" + e.getMessage()).setCallbackType("").toString();
}
LogUitls.putArgs(LogMessageObject.newWrite().setObjects(new Object[]{organization.getName()}));
return AjaxObject.newOk("删除组织成功!").setCallbackType("").toString();
}