26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
|
|
<?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.gunshi.project.xyt.mapper.StGateBFileMapper">
|
||
|
|
<resultMap id="BaseResultMap" type="com.gunshi.project.xyt.model.StGateBFile">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
<!--@Table dbo.ST_GATE_B_FILE-->
|
||
|
|
<id column="GATE_ID" jdbcType="BIGINT" property="gateId" />
|
||
|
|
<id column="FILE_ID" jdbcType="BIGINT" property="fileId" />
|
||
|
|
<result column="TM" jdbcType="TIMESTAMP" property="tm" />
|
||
|
|
<result column="SORT_ON" jdbcType="INTEGER" property="sortOn" />
|
||
|
|
</resultMap>
|
||
|
|
<sql id="Base_Column_List">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
GATE_ID, FILE_ID, TM, SORT_ON
|
||
|
|
</sql>
|
||
|
|
<insert id="batchInsert" parameterType="map">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
insert into dbo.ST_GATE_B_FILE
|
||
|
|
(GATE_ID, FILE_ID, TM, SORT_ON)
|
||
|
|
values
|
||
|
|
<foreach collection="list" item="item" separator=",">
|
||
|
|
(#{item.gateId,jdbcType=BIGINT}, #{item.fileId,jdbcType=BIGINT}, #{item.tm,jdbcType=TIMESTAMP},
|
||
|
|
#{item.sortOn,jdbcType=INTEGER})
|
||
|
|
</foreach>
|
||
|
|
</insert>
|
||
|
|
</mapper>
|