diff --git a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/AtomDao.kt b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/AtomDao.kt index 2223af488c4..9eaf7be535b 100644 --- a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/AtomDao.kt +++ b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/dao/atom/AtomDao.kt @@ -263,7 +263,7 @@ class AtomDao : AtomBaseDao() { fun getAtomTestVersion(dslContext: DSLContext, atomCode: String, versionPrefix: String): TAtomRecord? { return with(TAtom.T_ATOM) { dslContext.selectFrom(this) - .where(ATOM_CODE.eq(atomCode).and(VERSION.like("$versionPrefix-%"))) + .where(ATOM_CODE.eq(atomCode).and(VERSION.startsWith(versionPrefix))) .orderBy(CREATE_TIME.desc()) .limit(1) .fetchOne()