|
@@ -1,141 +0,0 @@
|
|
|
-<?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>
|