Skip to content

Commit

Permalink
Merge pull request TencentBlueKing#893 from zacYL/issue_892
Browse files Browse the repository at this point in the history
bug: feign请求字段返回先转换成String再进行类型转换 TencentBlueKing#892
  • Loading branch information
owenlxu authored Jul 6, 2023
2 parents 36a9f88 + ec46147 commit c498c55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ package com.tencent.bkrepo.oci.pojo.node
data class NodeProperty(
var fullPath: String? = null,
var md5: String? = null,
var size: Int? = null,
var size: Long? = null,
)
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class OciBlobServiceImpl(
val nodeCreateRequest = ObjectBuildUtils.buildNodeCreateRequest(
projectId = projectId,
repoName = repoName,
size = nodeProperty.size!!.toLong(),
size = nodeProperty.size!!,
sha256 = ociDigest.hex,
fullPath = OciLocationUtils.buildDigestBlobsPath(packageName, ociDigest),
md5 = nodeProperty.md5!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ class OciOperationServiceImpl(
return NodeProperty(
fullPath = result.records[0][NODE_FULL_PATH] as String,
md5 = result.records[0][MD5] as String?,
size = result.records[0][OCI_NODE_SIZE] as Int?
size = result.records[0][OCI_NODE_SIZE].toString().toLong()
)
}

Expand Down

0 comments on commit c498c55

Please sign in to comment.