41 lines
1.7 KiB
XML
41 lines
1.7 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.StAddvcdDMapper">
|
|
<resultMap id="BaseResultMap" type="com.gunshi.project.xyt.model.StAddvcdD">
|
|
<!--@mbg.generated-->
|
|
<!--@Table dbo.ST_ADDVCD_D-->
|
|
<id column="ADDVCD" jdbcType="VARCHAR" property="addvcd" />
|
|
<result column="ADDVNM" jdbcType="VARCHAR" property="addvnm" />
|
|
<result column="LGTD" jdbcType="DECIMAL" property="lgtd" />
|
|
<result column="LTTD" jdbcType="DECIMAL" property="lttd" />
|
|
<result column="CREATE_TM" jdbcType="TIMESTAMP" property="createTm" />
|
|
<result column="TM" jdbcType="TIMESTAMP" property="tm" />
|
|
<result column="SORT_ON" jdbcType="INTEGER" property="sortOn" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<!--@mbg.generated-->
|
|
ADDVCD, ADDVNM, LGTD, LTTD, CREATE_TM, TM, SORT_ON
|
|
</sql>
|
|
<insert id="batchInsert" parameterType="map">
|
|
<!--@mbg.generated-->
|
|
insert into dbo.ST_ADDVCD_D
|
|
(ADDVCD, ADDVNM, LGTD, LTTD, CREATE_TM, TM, SORT_ON)
|
|
values
|
|
<foreach collection="list" item="item" separator=",">
|
|
(#{item.addvcd,jdbcType=VARCHAR}, #{item.addvnm,jdbcType=VARCHAR}, #{item.lgtd,jdbcType=DECIMAL},
|
|
#{item.lttd,jdbcType=DECIMAL}, #{item.createTm,jdbcType=TIMESTAMP}, #{item.tm,jdbcType=TIMESTAMP},
|
|
#{item.sortOn,jdbcType=INTEGER})
|
|
</foreach>
|
|
</insert>
|
|
|
|
<select id="queryTree" resultType="com.gunshi.project.xyt.entity.basedata.StAddvcdTreeVo">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from ST_ADDVCD_D
|
|
<where>
|
|
<if test="addvcd != null and addvcd != ''">
|
|
ADDVCD like CONCAT(#{addvcd}, '%')
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper> |