31 lines
1.5 KiB
XML
31 lines
1.5 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.SysDictBMapper">
|
||
|
|
<resultMap id="BaseResultMap" type="com.gunshi.project.xyt.model.SysDictB">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
<!--@Table dbo.SYS_DICT_B-->
|
||
|
|
<id column="ID" jdbcType="BIGINT" property="id" />
|
||
|
|
<result column="DICT_NM" jdbcType="VARCHAR" property="dictNm" />
|
||
|
|
<result column="DICT_CD" jdbcType="VARCHAR" property="dictCd" />
|
||
|
|
<result column="PID" jdbcType="BIGINT" property="pid" />
|
||
|
|
<result column="SORT_ON" jdbcType="INTEGER" property="sortOn" />
|
||
|
|
<result column="CREATE_TM" jdbcType="TIMESTAMP" property="createTm" />
|
||
|
|
<result column="TM" jdbcType="TIMESTAMP" property="tm" />
|
||
|
|
<result column="STATUS" jdbcType="INTEGER" property="status" />
|
||
|
|
</resultMap>
|
||
|
|
<sql id="Base_Column_List">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
ID, DICT_NM, DICT_CD, PID, SORT_ON, CREATE_TM, TM, [STATUS]
|
||
|
|
</sql>
|
||
|
|
<insert id="batchInsert" parameterType="map">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
insert into dbo.SYS_DICT_B
|
||
|
|
(ID, DICT_NM, DICT_CD, PID, SORT_ON, CREATE_TM, TM, [STATUS])
|
||
|
|
values
|
||
|
|
<foreach collection="list" item="item" separator=",">
|
||
|
|
(#{item.id,jdbcType=BIGINT}, #{item.dictNm,jdbcType=VARCHAR}, #{item.dictCd,jdbcType=VARCHAR},
|
||
|
|
#{item.pid,jdbcType=BIGINT}, #{item.sortOn,jdbcType=INTEGER}, #{item.createTm,jdbcType=TIMESTAMP},
|
||
|
|
#{item.tm,jdbcType=TIMESTAMP}, #{item.status,jdbcType=INTEGER})
|
||
|
|
</foreach>
|
||
|
|
</insert>
|
||
|
|
</mapper>
|