OrganizationStructureExtendsMapper.xml 851 Bytes
Newer Older
1 2 3
<?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="pwc.taxtech.atms.dao.OrganizationStructureMapper">
neo's avatar
neo committed
4

5 6
    <!-- user defined -->
    <insert id="bulkInsert" parameterType="java.util.List">
neo's avatar
neo committed
7 8 9 10 11 12 13 14 15
        INSERT INTO
        ORGANIZATION_STRUCTURE (
        ID,
        "NAME",
        IS_ACTIVE,
        CREATE_TIME,
        UPDATE_TIME
        )
        VALUES
16
        <foreach collection="list" index="index" item="item" separator=",">
neo's avatar
neo committed
17 18 19 20 21 22 23
            (
            #{item.ID,jdbcType=VARCHAR},
            #{item.name,jdbcType=NVARCHAR},
            #{item.isActive,jdbcType=SMALLINT},
            #{item.createTime,jdbcType=TIMESTAMP},
            #{item.updateTime,jdbcType=TIMESTAMP}
            )
24 25
        </foreach>
    </insert>
neo's avatar
neo committed
26

27
</mapper>