| | |
| | | buildTaskRespVOList(pageResult.getList())); |
| | | } |
| | | |
| | | @PutMapping("/finish") |
| | | @Operation(summary = "完成盘点任务") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:finish')") |
| | | public CommonResult<Boolean> finishStockTakingTask(@Valid @RequestBody MesWmStockTakingTaskFinishReqVO reqVO) { |
| | | stockTakingTaskService.finishStockTakingTask(reqVO.getId()); |
| | | @PutMapping("/submit-approval") |
| | | @Operation(summary = "提交盘点结果审批") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @Parameter(name = "processDefinitionKey", description = "流程定义 Key", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:update')") |
| | | public CommonResult<Boolean> submitStockTakingTaskResultApproval(@RequestParam("id") Long id, |
| | | @RequestParam("processDefinitionKey") String processDefinitionKey) { |
| | | stockTakingTaskService.submitStockTakingResultApproval(id, processDefinitionKey); |
| | | return success(true); |
| | | } |
| | | |
| | | @GetMapping("/approval-process-list") |
| | | @Operation(summary = "获得盘点结果审批流程定义列表") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") |
| | | public CommonResult<List<Map<String, Object>>> getStockTakingTaskResultApprovalProcessDefinitionList() { |
| | | return success(stockTakingTaskService.getStockTakingTaskResultApprovalProcessDefinitionList()); |
| | | } |
| | | |
| | | @PutMapping("/cancel") |
| | | @Operation(summary = "取消盘点任务") |
| | | @Parameter(name = "id", description = "编号", required = true) |