diff --git a/epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml b/epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml
index 1ce902f6d2..f7186b1424 100644
--- a/epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml
+++ b/epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml
@@ -105,10 +105,10 @@
user_badge_certificate_record
WHERE
DEL_FLAG = 0
- AND IS_LAST = 'yes'
AND BADGE_ID = #{badgeId}
AND USER_ID = #{userId}
+ AND IS_LAST = 'yes'
AND ID = #{recordId}