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