diff --git a/mallinkService/src/main/resources/mapper/WxMsgValidationcodeModelMapper.xml b/mallinkService/src/main/resources/mapper/WxMsgValidationcodeModelMapper.xml
index 5389fd157..dbcf6d198 100644
--- a/mallinkService/src/main/resources/mapper/WxMsgValidationcodeModelMapper.xml
+++ b/mallinkService/src/main/resources/mapper/WxMsgValidationcodeModelMapper.xml
@@ -36,11 +36,8 @@
and `type` = #{type}
and `tenant_id` = #{tenantId}
and `open` = #{open}
-
- and id not in(
- select id from wx_msg_validationcode_model where content like '<%' and `tenant_id` = #{tenantId}
- )
-
+ and `msg_type` = #{msgType}
+ and `role_type` = #{roleType}
and id in