一、语法
'${@全限定类名@方法名}'
二、例子
<insert id="saveArticleLabel"> INSERT INTO dcy_article_label(id, article_id, label_id) VALUES <foreach collection="labelIds" item="item" separator=","> ('${@com.baomidou.mybatisplus.core.toolkit.IdWorker@getId()}', #{articleId}, #{item}) </foreach> </insert>