Skip to content

Commit

Permalink
bug:组件latestFlag参数更新时组件所有版本修改者会全部更新为同一人 #11400
Browse files Browse the repository at this point in the history
  • Loading branch information
yjieliang committed Jan 10, 2025
1 parent 1978177 commit 67b5433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ abstract class AtomReleaseServiceImpl @Autowired constructor() : AtomReleaseServ
return Result(atomId)
}

fun checkUpdateAtomLatestTestFlag(userId: String, atomCode: String, atomId: String) {
private fun checkUpdateAtomLatestTestFlag(userId: String, atomCode: String, atomId: String) {
RedisLock(
redisOperation,
"$STORE_LATEST_TEST_FLAG_KEY_PREFIX:$atomCode",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,7 @@ class SampleAtomReleaseServiceImpl : SampleAtomReleaseService, AtomReleaseServic
60L
).use { redisLock ->
redisLock.lock()
marketAtomDao.resetAtomLatestTestFlagByCode(
dslContext = dslContext,
atomCode = record.atomCode
)
marketAtomDao.setupAtomLatestTestFlagById(
dslContext = dslContext,
atomId = atomId,
userId = userId,
latestFlag = true
)
updateAtomLatestTestFlag(userId, record.atomCode, atomId)
}
}
}
Expand Down

0 comments on commit 67b5433

Please sign in to comment.