| | |
| | | @ManagerAuth |
| | | public R add(WaitPakinLog waitPakinLog) { |
| | | waitPakinLogService.insert(waitPakinLog); |
| | | return R.ok(); |
| | | return R.ok("response.save_success"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/waitPakinLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(WaitPakinLog waitPakinLog){ |
| | | if (Cools.isEmpty(waitPakinLog)){ |
| | | return R.error(); |
| | | return R.error("response.param_error"); |
| | | } |
| | | waitPakinLogService.updateById(waitPakinLog); |
| | | return R.ok(); |
| | | return R.ok("response.update_success"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/waitPakinLog/delete/auth") |
| | |
| | | public R delete(@RequestParam String param){ |
| | | List<WaitPakinLog> list = JSONArray.parseArray(param, WaitPakinLog.class); |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(); |
| | | return R.error("response.param_error"); |
| | | } |
| | | for (WaitPakinLog entity : list){ |
| | | waitPakinLogService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.ok(); |
| | | return R.ok("response.delete_success"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/waitPakinLog/export/auth") |