31 lines
1.6 KiB
XML
31 lines
1.6 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.StCameraAreaBMapper">
|
||
|
|
<resultMap id="BaseResultMap" type="com.gunshi.project.xyt.model.StCameraAreaB">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
<!--@Table dbo.ST_CAMERA_AREA_B-->
|
||
|
|
<id column="CAM_AR_ID" jdbcType="BIGINT" property="camArId" />
|
||
|
|
<result column="CAM_AR_NM" jdbcType="VARCHAR" property="camArNm" />
|
||
|
|
<result column="PID" jdbcType="BIGINT" property="pid" />
|
||
|
|
<result column="SORT_ON" jdbcType="INTEGER" property="sortOn" />
|
||
|
|
<result column="STATUS" jdbcType="INTEGER" property="status" />
|
||
|
|
<result column="COMMENTS" jdbcType="VARCHAR" property="comments" />
|
||
|
|
<result column="CREATE_TM" jdbcType="TIMESTAMP" property="createTm" />
|
||
|
|
<result column="TM" jdbcType="TIMESTAMP" property="tm" />
|
||
|
|
</resultMap>
|
||
|
|
<sql id="Base_Column_List">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
CAM_AR_ID, CAM_AR_NM, PID, SORT_ON, [STATUS], COMMENTS, CREATE_TM, TM
|
||
|
|
</sql>
|
||
|
|
<insert id="batchInsert" parameterType="map">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
insert into dbo.ST_CAMERA_AREA_B
|
||
|
|
(CAM_AR_ID, CAM_AR_NM, PID, SORT_ON, [STATUS], COMMENTS, CREATE_TM, TM)
|
||
|
|
values
|
||
|
|
<foreach collection="list" item="item" separator=",">
|
||
|
|
(#{item.camArId,jdbcType=BIGINT}, #{item.camArNm,jdbcType=VARCHAR}, #{item.pid,jdbcType=BIGINT},
|
||
|
|
#{item.sortOn,jdbcType=INTEGER}, #{item.status,jdbcType=INTEGER}, #{item.comments,jdbcType=VARCHAR},
|
||
|
|
#{item.createTm,jdbcType=TIMESTAMP}, #{item.tm,jdbcType=TIMESTAMP})
|
||
|
|
</foreach>
|
||
|
|
</insert>
|
||
|
|
</mapper>
|