| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/cstmr/add/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "添加甲方单位") |
| | | public R add(Cstmr cstmr) { |
| | | Long hostId = getHostId(); |
| | | if (cstmrService.selectByUuid(hostId, cstmr.getUuid()) != null) { |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/cstmr/update/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "更新甲方单位") |
| | | public R update(Cstmr cstmr){ |
| | | if (Cools.isEmpty(cstmr) || null==cstmr.getId()){ |
| | | return R.error(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/cstmr/delete/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "删除甲方单位") |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | cstmrService.deleteById(id); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/cstmr/delete/one/{id}") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "删除甲方单位") |
| | | public R deleteOne(@PathVariable Long id) { |
| | | cstmrService.deleteById(id); |
| | | return R.ok(); |