mybatis批量插入参数为"List·Map·String,Object··"

<insert id="insertBatch" parameterType="java.util.Map">
    INSERT INTO athena_pub_flowpool
    (agent_id, poolNbr)
    VALUES
    <foreach collection="list" item="pool" separator=",">
        (#{pool.agentId,jdbcType=BIGINT}, #{pool.poolNbr,jdbcType=VARCHAR})
    </foreach>
</insert>

猜你喜欢

转载自blog.csdn.net/qq_31896193/article/details/86495880