| | |
| | | public AjaxResult listAll(ZfClean zfClean){ |
| | | Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); |
| | | Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); |
| | | |
| | | return zfCleanService.selectDataList(zfClean, pageNum, pageSize); |
| | | } |
| | | |
| | |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ZfClean zfClean) |
| | | { |
| | | return zfCleanService.addData2(zfClean); |
| | | return zfCleanService.addData(zfClean); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ZfClean zfClean) |
| | | { |
| | | return toAjax(zfCleanService.updateById(zfClean)); |
| | | return zfCleanService.updateData(zfClean); |
| | | } |
| | | // |
| | | /** |
| | |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(zfCleanService.removeByIds(Arrays.asList(ids))); |
| | | return zfCleanService.deleteData(ids); |
| | | } |
| | | |
| | | } |