| | |
| | | @ManagerAuth |
| | | public R add(AutoMove autoMove) { |
| | | autoMoveService.insert(autoMove); |
| | | return R.ok(); |
| | | return R.ok("response.save_success"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/autoMove/update/auth") |
| | | @ManagerAuth |
| | | public R update(AutoMove autoMove){ |
| | | if (Cools.isEmpty(autoMove) || null==autoMove.getId()){ |
| | | return R.error(); |
| | | return R.error("response.param_error"); |
| | | } |
| | | autoMoveService.updateById(autoMove); |
| | | return R.ok(); |
| | | return R.ok("response.update_success"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/autoMove/delete/auth") |
| | |
| | | for (Long id : ids){ |
| | | autoMoveService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | | return R.ok("response.delete_success"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/autoMove/export/auth") |