| | |
| | | |
| | | |
| | | @PostMapping("/add") |
| | | @ApiOperation(value = "添加职位", tags = {"三个身边后台-职位管理"}) |
| | | @ApiOperation(value = "添加职位", tags = {"西区纪委后台-职位管理"}) |
| | | @SysLog(operatorCategory = "添加职位",operId = 2) |
| | | public R add(@RequestBody SystemPost systemPost) { |
| | | systemPost.setCreateTime(LocalDateTime.now()); |
| | |
| | | |
| | | |
| | | @PostMapping("/edit") |
| | | @ApiOperation(value = "编辑职位", tags = {"三个身边后台-职位管理"}) |
| | | @ApiOperation(value = "编辑职位", tags = {"西区纪委后台-职位管理"}) |
| | | @SysLog(operatorCategory = "编辑职位",operId = 2) |
| | | public R edit(@RequestBody SystemPost systemPost) { |
| | | systemPostService.updateById(systemPost); |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/delete/{id}") |
| | | @ApiOperation(value = "删除职位", tags = {"三个身边后台-职位管理"}) |
| | | @ApiOperation(value = "删除职位", tags = {"西区纪委后台-职位管理"}) |
| | | @SysLog(operatorCategory = "删除职位",operId = 2) |
| | | public R delete(@PathVariable("id") Integer id) { |
| | | String name = systemPostService.getById(id).getName(); |
| | |
| | | |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "获取列表数据", tags = {"三个身边后台-职位管理"}) |
| | | @OperLog(operModul = "三个身边后台",operType = 0,businessType = "获取职位列表数据") |
| | | @ApiOperation(value = "获取列表数据", tags = {"西区纪委后台-职位管理"}) |
| | | @OperLog(operModul = "西区纪委后台",operType = 0,businessType = "获取职位列表数据") |
| | | public R<IPage<SystemPost>> list(String name, Integer pageNum, Integer pageSize) { |
| | | return R.ok(systemPostService.list(name, pageNum, pageSize)); |
| | | } |