class ResultDetailController {

    @Autowired
    private ResultDetailService resultDetailService;

    @WebAspect
    @Operation(summary = "保存测试结果", description = "保存测试结果")
    @PostMapping
    public RespModel<String> save(@RequestBody JSONObject jsonObject) {
        resultDetailService.saveByTransport(jsonObject);
        return new RespModel<>(RespEnum.HANDLE_OK);
    }

    @WebAspect
    @Operation(summary = "查找测试结果详情", description = "查找对应测试结果详情")
    @Parameters(value = {
            @Parameter(name = "caseId", description = "测试用例id"),
            @Parameter(name = "resultId", description = "测试结果id"),
            @Parameter(name = "deviceId", description = "设备id"),
            @Parameter(name = "type", description = "类型"),
            @Parameter(name = "page", description = "页码")
    })
    @GetMapping("/list")
    public RespModel<CommentPage<ResultDetail>> findAll(@RequestParam(name = "caseId") int caseId,
                                                        @RequestParam(name = "resultId") int resultId,
                                                        @RequestParam(name = "deviceId") int deviceId,
                                                        @RequestParam(name = "type") String type,
                                                        @RequestParam(name = "page") int page) {<FILL_FUNCTION_BODY>}

    @WebAspect
    @Operation(summary = "查找测试结果详情2", description = "查找对应测试结果详情")
    @Parameters(value = {
            @Parameter(name = "caseId", description = "测试用例id"),
            @Parameter(name = "resultId", description = "测试结果id"),
            @Parameter(name = "deviceId", description = "设备id"),
            @Parameter(name = "type", description = "类型"),
    })
    @GetMapping("/listAll")
    public RespModel<List<ResultDetail>> findAll(@RequestParam(name = "caseId") int caseId,
                                                 @RequestParam(name = "resultId") int resultId,
                                                 @RequestParam(name = "deviceId") int deviceId,
                                                 @RequestParam(name = "type") String type) {
        return new RespModel<>(RespEnum.SEARCH_OK,
                resultDetailService.findAll(resultId, caseId, type, deviceId));
    }
}

        Page<ResultDetail> pageable = new Page<>(page, 20);
        return new RespModel<>(RespEnum.SEARCH_OK,
                CommentPage.convertFrom(
                        resultDetailService.findAll(resultId, caseId, type, deviceId, pageable))
        );
    
<no_super_class>