gunshi-project-ss/src/main/resources/mapper/StGateBMapper.xml

41 lines
2.3 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.StGateBMapper">
<resultMap id="BaseResultMap" type="com.gunshi.project.xyt.model.StGateB">
<!--@mbg.generated-->
<!--@Table dbo.ST_GATE_B-->
<id column="GATE_ID" jdbcType="BIGINT" property="gateId" />
<result column="GATE_CD" jdbcType="VARCHAR" property="gateCd" />
<result column="GATE_NM" jdbcType="VARCHAR" property="gateNm" />
<result column="GTLC" jdbcType="VARCHAR" property="gtlc" />
<result column="LGTD" jdbcType="DECIMAL" property="lgtd" />
<result column="LTTD" jdbcType="DECIMAL" property="lttd" />
<result column="GATE_TP" jdbcType="BIGINT" property="gateTp" />
<result column="GATE_MD" jdbcType="VARCHAR" property="gateMd" />
<result column="GATE_SPE" jdbcType="VARCHAR" property="gateSpe" />
<result column="GATE_LH" jdbcType="VARCHAR" property="gateLh" />
<result column="GATE_TM" jdbcType="TIMESTAMP" property="gateTm" />
<result column="REMARK" jdbcType="VARCHAR" property="remark" />
<result column="STATUS" jdbcType="INTEGER" property="status" />
<result column="TM" jdbcType="TIMESTAMP" property="tm" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
GATE_ID, GATE_CD, GATE_NM, GTLC, LGTD, LTTD, GATE_TP, GATE_MD, GATE_SPE, GATE_LH,
GATE_TM, REMARK, [STATUS], TM
</sql>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert into dbo.ST_GATE_B
(GATE_ID, GATE_CD, GATE_NM, GTLC, LGTD, LTTD, GATE_TP, GATE_MD, GATE_SPE, GATE_LH,
GATE_TM, REMARK, [STATUS], TM)
values
<foreach collection="list" item="item" separator=",">
(#{item.gateId,jdbcType=BIGINT}, #{item.gateCd,jdbcType=VARCHAR}, #{item.gateNm,jdbcType=VARCHAR},
#{item.gtlc,jdbcType=VARCHAR}, #{item.lgtd,jdbcType=DECIMAL}, #{item.lttd,jdbcType=DECIMAL},
#{item.gateTp,jdbcType=BIGINT}, #{item.gateMd,jdbcType=VARCHAR}, #{item.gateSpe,jdbcType=VARCHAR},
#{item.gateLh,jdbcType=VARCHAR}, #{item.gateTm,jdbcType=TIMESTAMP}, #{item.remark,jdbcType=VARCHAR},
#{item.status,jdbcType=INTEGER}, #{item.tm,jdbcType=TIMESTAMP})
</foreach>
</insert>
</mapper>