Code review comment: Your suggestion is very helpful and accepted

Code under review:
public UpdateApiModuleDTO checkApiModule(ApiTestImportRequest request, ApiDefinitionImport apiImport, List<ApiDefinitionWithBLOBs> data, Boolean fullCoverage, boolean urlRepeat) {
        String projectId = request.getProjectId();
        String protocol = request.getProtocol();

        if (fullCoverage == null) {
            fullCoverage = false;
        }

        
        if (apiImport.getEsbApiParamsMap() != null) {
            fullCoverage = true;
        }

        
        List<ApiModuleDTO> apiModules = this.getApiModulesByProjectAndPro(projectId, protocol);
        List<ApiModuleDTO> nodeTreeByProjectId = this.getNodeTrees(apiModules);

        
        Map<String, ApiModuleDTO> idModuleMap = apiModules.stream().collect(Collectors.toMap(ApiModuleDTO::getId, apiModuleDTO -> apiModuleDTO));

        
        Map<String, List<ApiModule>> pidChildrenMap = new HashMap<>();
        
        Map<String, String> idPathMap = new HashMap<>();

        String initParentModulePath = "/root";
        Map<String, String> initParentModulePathMap = new HashMap<>();
        initParentModulePathMap.put("root", initParentModulePath);
        buildProcessData(nodeTreeByProjectId, pidChildrenMap, idPathMap, initParentModulePathMap);

        
        List<ApiTestCaseWithBLOBs> importCases = apiImport.getCases();

        if (protocol.equals("HTTP")) {
            return dealHttp(data, pidChildrenMap, idPathMap, idModuleMap, request, fullCoverage, urlRepeat, importCases);
        } else {
            Map<String, EsbApiParamsWithBLOBs> esbApiParamsMap = apiImport.getEsbApiParamsMap();
            return delOtherProtocol(data, pidChildrenMap, idPathMap, idModuleMap, request, fullCoverage, importCases, esbApiParamsMap);
        }
    }

Line commented on: if (apiImport.getEsbApiParamsMap() != null) {

Revised code:
public UpdateApiModuleDTO checkApiModule(ApiTestImportRequest request, ApiDefinitionImport apiImport, List<ApiDefinitionWithBLOBs> data, Boolean fullCoverage, boolean urlRepeat) {
        String projectId = request.getProjectId();
        String protocol = request.getProtocol();

        if (StringUtils.isBlank(protocol)) {
            protocol = HTTP_PROTOCOL;
        }

        if (fullCoverage == null) {
            fullCoverage = false;
        }

        
        if (MapUtils.isNotEmpty(apiImport.getEsbApiParamsMap())) {
            fullCoverage = true;
        }

        
        List<ApiModuleDTO> apiModules = this.getApiModulesByProjectAndPro(projectId, protocol);
        List<ApiModuleDTO> nodeTreeByProjectId = this.getNodeTrees(apiModules);

        
        Map<String, ApiModuleDTO> idModuleMap = apiModules.stream().collect(Collectors.toMap(ApiModuleDTO::getId, apiModuleDTO -> apiModuleDTO));

        
        Map<String, List<ApiModule>> pidChildrenMap = new HashMap<>();
        
        Map<String, String> idPathMap = new HashMap<>();

        String initParentModulePath = "/root";
        Map<String, String> initParentModulePathMap = new HashMap<>();
        initParentModulePathMap.put("root", initParentModulePath);
        buildProcessData(nodeTreeByProjectId, pidChildrenMap, idPathMap, initParentModulePathMap);

        
        List<ApiTestCaseWithBLOBs> importCases = apiImport.getCases();

        if (protocol.equals(HTTP_PROTOCOL)) {
            return dealHttp(data, pidChildrenMap, idPathMap, idModuleMap, request, fullCoverage, urlRepeat, importCases);
        } else {
            Map<String, EsbApiParamsWithBLOBs> esbApiParamsMap = apiImport.getEsbApiParamsMap();
            return delOtherProtocol(data, pidChildrenMap, idPathMap, idModuleMap, request, fullCoverage, importCases, esbApiParamsMap);
        }
    }