像是下面的 table_name='user_'#{groupId}
连接是错误的
譬如如果 id 是 132,应该是变成了'user_'132,而不是期望的'user_132'
<select id="tableExists" parameterType="String" resultType="Integer">
SELECT COUNT(*)
FROM information_schema.tables
WHERE table_schema='api_db'
AND table_name='user_'#{groupId}
</select>