| | |
| | | @ApiOperation(value = "分页", notes = "传入notice") |
| | | public R<IPage<NoticeVO>> page(@ApiIgnore NoticeVO notice, Query query) { |
| | | //通过deptId获取组织机构信息 |
| | | Dept dept = iDeptService.getById(notice.getDeptId()); |
| | | // Dept dept = iDeptService.getById(notice.getDeptId()); |
| | | // if (dept.getDeptCategory() == 1) { |
| | | // notice.setCategory(1); |
| | | // } else { |
| | |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "新增或修改", notes = "传入notice") |
| | | public R submit(@RequestBody Notice notice) throws Exception { |
| | | //调用内网 |
| | | arg.test01(arg.url+"/blade-desk/notice/submit",notice); |
| | | return R.status(noticeService.saveOrUpdate(notice)); |
| | | } |
| | | |
| | |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "逻辑删除", notes = "传入notice") |
| | | public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) throws Exception { |
| | | //调用内网 |
| | | // arg.test01(arg.url+"/blade-desk/notice/remove",ids); |
| | | boolean temp = noticeService.deleteLogic(Func.toLongList(ids)); |
| | | return R.status(temp); |
| | | } |