@Operation(summary = "queryOneWorkflowStatesCount", description = "QUERY_One_WORKFLOW_STATES_COUNT")
    @GetMapping(value = "/{workflowCode}/states/count")
    @ResponseStatus(HttpStatus.OK)
    @ApiException(QUERY_ONE_WORKFLOW_STATE_COUNT_ERROR)
    public Result<TaskCountDto> queryOneWorkflowStates(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
                                                       @PathVariable("workflowCode") Long workflowCode) {
        TaskCountDto taskCountDto = dataAnalysisService.countOneWorkflowStates(loginUser, workflowCode);
        return Result.success(taskCountDto);
    }
@Test
    public void testQueryOneWorkflowStates() {
        User loginUser = getLoginUser();
        Long workflowCode = 1L;
        List<ExecuteStatusCount> executeStatusCounts = new ArrayList<>();
        TaskCountDto taskCountResult = new TaskCountDto(executeStatusCounts);

        when(dataAnalysisService.countOneWorkflowStates(loginUser, workflowCode)).thenReturn(taskCountResult);

        Result result1 = statisticsV2Controller.queryOneWorkflowStates(loginUser, workflowCode);

        assertTrue(result1.isSuccess());

    }