| | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:waveItem:update')") |
| | | @ApiOperation("暂停下发任务") |
| | | @PostMapping("/waveItem/pause/pub") |
| | | @PostMapping("/waveItem/pause/pub/{id}") |
| | | public R pausePublicTask(@PathVariable Long id) { |
| | | waveItemService.update(new LambdaUpdateWrapper<WaveItem>() |
| | | .eq(WaveItem::getId, id) |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:waveItem:update')") |
| | | @ApiOperation("继续下发任务") |
| | | @PostMapping("/waveItem/continue/pub") |
| | | @PostMapping("/waveItem/continue/pub/{id}") |
| | | public R continuePublicTask(@PathVariable Long id) { |
| | | waveItemService.update(new LambdaUpdateWrapper<WaveItem>() |
| | | .eq(WaveItem::getId, id) |
| | | .set(WaveItem::getExceStatus, WaveItemExceStatus.WAVE_ITEM_EXCE_STATUS_UN.val)); |
| | | .set(WaveItem::getExceStatus, WaveItemExceStatus.WAVE_EXCE_STATUS_ING.val)); |
| | | return R.ok(); |
| | | } |
| | | |