diff --git a/src/backend/ci/core/quality/biz-quality/src/main/kotlin/com/tencent/devops/quality/service/v2/QualityHistoryService.kt b/src/backend/ci/core/quality/biz-quality/src/main/kotlin/com/tencent/devops/quality/service/v2/QualityHistoryService.kt index c31dcbc0626..d6cb0728e3d 100644 --- a/src/backend/ci/core/quality/biz-quality/src/main/kotlin/com/tencent/devops/quality/service/v2/QualityHistoryService.kt +++ b/src/backend/ci/core/quality/biz-quality/src/main/kotlin/com/tencent/devops/quality/service/v2/QualityHistoryService.kt @@ -64,7 +64,8 @@ class QualityHistoryService @Autowired constructor( private val historyDao: HistoryDao, private val qualityRuleBuildHisOperationService: QualityRuleBuildHisOperationService, private val client: Client, - private val objectMapper: ObjectMapper + private val objectMapper: ObjectMapper, + private val qualityUrlUtils: QualityUrlUtils ) { private val logger = LoggerFactory.getLogger(QualityHistoryService::class.java) @@ -238,7 +239,7 @@ class QualityHistoryService @Autowired constructor( val interceptList = objectMapper.readValue>(it.interceptList) interceptList.forEach { record -> if (CodeccUtils.isCodeccAtom(record.indicatorType)) { - record.logPrompt = QualityUrlUtils.getCodeCCUrl( + record.logPrompt = qualityUrlUtils.getCodeCCUrl( projectId = projectId, pipelineId = pipelineId, buildId = buildId, @@ -422,7 +423,7 @@ class QualityHistoryService @Autowired constructor( val interceptList = objectMapper.readValue>(it.interceptList) interceptList.forEach { record -> if (CodeccUtils.isCodeccAtom(record.indicatorType)) { - record.logPrompt = QualityUrlUtils.getCodeCCUrl( + record.logPrompt = qualityUrlUtils.getCodeCCUrl( projectId = projectId, pipelineId = pipelineId ?: "", buildId = buildId ?: "",