/** * 删除单条数据 * * @param id * @return * @throws Exception */ @RequestMapping("/delete/{id}") @ResponseBody public String doDelete(@PathVariable String id) throws Exception { if (collegeService.doDeleteById(id)) { return Consts.SUCCESS; } return Consts.ERROR; }