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="WebsiteES.myBatis.NodeinfoMapper">
- <resultMap id="BaseResultMap" type="WebsiteES.myBatis.Nodeinfo">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="prev_id" jdbcType="BIGINT" property="prevId" />
- <result column="next_id" jdbcType="BIGINT" property="nextId" />
- <result column="parent_id" jdbcType="BIGINT" property="parentId" />
- <result column="child_id" jdbcType="BIGINT" property="childId" />
- <result column="obj_type" jdbcType="VARCHAR" property="objType" />
- </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" parameterType="java.lang.Long" resultMap="BaseResultMap">
- <!--
- 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="WebsiteES.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="WebsiteES.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="WebsiteES.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="WebsiteES.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>
|