| | |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ZfCollection zfCollection) |
| | | { |
| | | return zfCollectionService.addData2(zfCollection); |
| | | return zfCollectionService.addData(zfCollection); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ZfCollection zfCollection) |
| | | { |
| | | return toAjax(zfCollectionService.updateById(zfCollection)); |
| | | return zfCollectionService.updateData(zfCollection); |
| | | } |
| | | // |
| | | /** |
| | |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(zfCollectionService.removeByIds(Arrays.asList(ids))); |
| | | return zfCollectionService.deleteData(ids); |
| | | } |
| | | |
| | | |