| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:task:remove')") |
| | | @OperationLog("Delete 任务工作档") |
| | | @OperationLog("取消/删除工作极档") |
| | | @ApiOperation("取消/删除工作极档") |
| | | @PostMapping("/task/remove/{ids}") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R remove(@PathVariable Long[] ids) { |
| | | if (Objects.isNull(ids) || ids.length < 1) { |
| | | return R.error("参数不能为空!!"); |
| | |
| | | if (Cools.isEmpty(id)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return R.ok("完成任务成功").add(taskService.operateComplete(id)); |
| | | return R.ok("完成任务成功").add(taskService.operateComplete(id, getLoginUserId())); |
| | | } |
| | | |
| | | |
| | |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | try { |
| | | taskService.taskToTop(id); |
| | | taskService.taskToTop(id, getLoginUserId()); |
| | | } catch (Exception e) { |
| | | logger.error("UNK", e); |
| | | throw new CoolException(e.getMessage()); |