Ejemplo n.º 1
0
 @RequestMapping(value = "/batchDelete/{ids}", method = RequestMethod.DELETE)
 @ResponseBody
 public Result batchDelete(@PathVariable String ids) {
   clinicService.batchDelete(ids);
   return new Result(SuccessCode.OK, "批量删除成功");
 }
Ejemplo n.º 2
0
 @RequestMapping(value = "/modify", method = RequestMethod.PUT)
 public Result modify(Clinic clinic) {
   clinicService.updateById(clinic);
   return new Result(SuccessCode.OK, "修改成功");
 }
Ejemplo n.º 3
0
 @RequestMapping(value = "/add", method = RequestMethod.POST)
 public Result add(Clinic clinic) {
   clinicService.save(clinic);
   return new Result(SuccessCode.OK, "新增成功");
 }
Ejemplo n.º 4
0
 @RequestMapping(value = "/getById/{id}", method = RequestMethod.GET)
 public Clinic getById(@PathVariable Long id) {
   return clinicService.findById(id);
 }
Ejemplo n.º 5
0
 @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());
 }