<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gyee.frame.mapper.StandardPointTableMapper.StandardPointTableMapper">
    <!--collection中的unionData是dao层传入的map参数，item中的value表示unionData中的值，index中的key表示map中键-->
    <!--foreach进行循环unionData取出里面的key和value-->
    <insert id="saveData"  >
        insert into ${tableName}
        <foreach item="value" collection="unionData" index="key" open="("   separator="," close=")">
            ${key}
        </foreach>
        values
        <foreach item="value" collection="unionData" index="key"  open="("   separator="," close=")">
            #{value}
        </foreach>
    </insert>
</mapper>

