diff --git a/src/backend/ci/core/store/api-store/src/main/kotlin/com/tencent/devops/store/pojo/common/StoreStatistic.kt b/src/backend/ci/core/store/api-store/src/main/kotlin/com/tencent/devops/store/pojo/common/StoreStatistic.kt index 163d9e40cdb..a074f6afb4f 100644 --- a/src/backend/ci/core/store/api-store/src/main/kotlin/com/tencent/devops/store/pojo/common/StoreStatistic.kt +++ b/src/backend/ci/core/store/api-store/src/main/kotlin/com/tencent/devops/store/pojo/common/StoreStatistic.kt @@ -45,6 +45,6 @@ data class StoreStatistic( @ApiModelProperty("成功率") val successRate: Double? = null, @ApiModelProperty("hotFlag") - val hotFlag: Boolean? = null + val hotFlag: Boolean? = false ) diff --git a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/common/impl/StoreTotalStatisticServiceImpl.kt b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/common/impl/StoreTotalStatisticServiceImpl.kt index 301117c2914..9c17f31ee0a 100644 --- a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/common/impl/StoreTotalStatisticServiceImpl.kt +++ b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/common/impl/StoreTotalStatisticServiceImpl.kt @@ -349,7 +349,7 @@ class StoreTotalStatisticServiceImpl @Autowired constructor( pipelineCnt = record?.value4() ?: 0, recentExecuteNum = record?.value5() ?: 0, successRate = successRate, - hotFlag = record?.get(KEY_HOT_FLAG) as Boolean + hotFlag = record?.get(KEY_HOT_FLAG) as? Boolean ?: false ) }