@RequestMapping(value = "/batchDelete/{ids}", method = RequestMethod.DELETE) @ResponseBody public Result batchDelete(@PathVariable String ids) { clinicService.batchDelete(ids); return new Result(SuccessCode.OK, "批量删除成功"); }
@RequestMapping(value = "/modify", method = RequestMethod.PUT) public Result modify(Clinic clinic) { clinicService.updateById(clinic); return new Result(SuccessCode.OK, "修改成功"); }
@RequestMapping(value = "/add", method = RequestMethod.POST) public Result add(Clinic clinic) { clinicService.save(clinic); return new Result(SuccessCode.OK, "新增成功"); }
@RequestMapping(value = "/getById/{id}", method = RequestMethod.GET) public Clinic getById(@PathVariable Long id) { return clinicService.findById(id); }
@RequestMapping(value = "/getList", method = RequestMethod.POST) public EasyUIDatagridData getList(EasyUIDatagridParams easyuiDatagridParams, Clinic clinic) { // systemAccount.setCreator(this.getCurrentSystemAccount().getItCode()); Pagination<Clinic> page = clinicService.findAll(clinic, easyuiDatagridParams); return new EasyUIDatagridData(page.getTotalNumber(), page.getItems()); }