From 634862c0cdc2cf64f48a8f9c75f68471ea3345ba Mon Sep 17 00:00:00 2001 From: yjieliang Date: Thu, 19 Oct 2023 15:05:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B8=8C=E6=9C=9B=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=88=86=E6=94=AF=E8=BF=9B=E8=A1=8C=E4=B8=8A=E6=9E=B6=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=20#4780?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/kotlin/com/tencent/devops/store/dao/atom/AtomDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()