123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <?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="group04.myBatis.NodeinfoMapper" >
- <resultMap id="BaseResultMap" type="group04.myBatis.Nodeinfo" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- <id column="id" property="id" jdbcType="BIGINT" />
- <result column="prev_id" property="prevId" jdbcType="BIGINT" />
- <result column="next_id" property="nextId" jdbcType="BIGINT" />
- <result column="parent_id" property="parentId" jdbcType="BIGINT" />
- <result column="child_id" property="childId" jdbcType="BIGINT" />
- <result column="obj_type" property="objType" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- id, prev_id, next_id, parent_id, child_id, obj_type
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- select
- <include refid="Base_Column_List" />
- from nodeinfo
- where id = #{id,jdbcType=BIGINT}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- delete from nodeinfo
- where id = #{id,jdbcType=BIGINT}
- </delete>
- <insert id="insert" parameterType="group04.myBatis.Nodeinfo" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- insert into nodeinfo (id, prev_id, next_id,
- parent_id, child_id, obj_type
- )
- values (#{id,jdbcType=BIGINT}, #{prevId,jdbcType=BIGINT}, #{nextId,jdbcType=BIGINT},
- #{parentId,jdbcType=BIGINT}, #{childId,jdbcType=BIGINT}, #{objType,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="group04.myBatis.Nodeinfo" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- insert into nodeinfo
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="prevId != null" >
- prev_id,
- </if>
- <if test="nextId != null" >
- next_id,
- </if>
- <if test="parentId != null" >
- parent_id,
- </if>
- <if test="childId != null" >
- child_id,
- </if>
- <if test="objType != null" >
- obj_type,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=BIGINT},
- </if>
- <if test="prevId != null" >
- #{prevId,jdbcType=BIGINT},
- </if>
- <if test="nextId != null" >
- #{nextId,jdbcType=BIGINT},
- </if>
- <if test="parentId != null" >
- #{parentId,jdbcType=BIGINT},
- </if>
- <if test="childId != null" >
- #{childId,jdbcType=BIGINT},
- </if>
- <if test="objType != null" >
- #{objType,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="group04.myBatis.Nodeinfo" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- update nodeinfo
- <set >
- <if test="prevId != null" >
- prev_id = #{prevId,jdbcType=BIGINT},
- </if>
- <if test="nextId != null" >
- next_id = #{nextId,jdbcType=BIGINT},
- </if>
- <if test="parentId != null" >
- parent_id = #{parentId,jdbcType=BIGINT},
- </if>
- <if test="childId != null" >
- child_id = #{childId,jdbcType=BIGINT},
- </if>
- <if test="objType != null" >
- obj_type = #{objType,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=BIGINT}
- </update>
- <update id="updateByPrimaryKey" parameterType="group04.myBatis.Nodeinfo" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- update nodeinfo
- set prev_id = #{prevId,jdbcType=BIGINT},
- next_id = #{nextId,jdbcType=BIGINT},
- parent_id = #{parentId,jdbcType=BIGINT},
- child_id = #{childId,jdbcType=BIGINT},
- obj_type = #{objType,jdbcType=VARCHAR}
- where id = #{id,jdbcType=BIGINT}
- </update>
- <update id="commit">
- commit
- </update>
- </mapper>
|