|
@@ -1,26 +1,26 @@
|
|
|
-<?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" >
|
|
|
+<?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" 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" />
|
|
|
+ <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" >
|
|
|
+ <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" >
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
WARNING - @mbggenerated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
@@ -30,7 +30,7 @@
|
|
|
from nodeinfo
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
<!--
|
|
|
WARNING - @mbggenerated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
@@ -38,7 +38,7 @@
|
|
|
delete from nodeinfo
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="group04.myBatis.Nodeinfo" >
|
|
|
+ <insert id="insert" parameterType="WebsiteES.myBatis.Nodeinfo">
|
|
|
<!--
|
|
|
WARNING - @mbggenerated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
@@ -50,79 +50,79 @@
|
|
|
#{parentId,jdbcType=BIGINT}, #{childId,jdbcType=BIGINT}, #{objType,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="group04.myBatis.Nodeinfo" >
|
|
|
+ <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" >
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
- <if test="prevId != null" >
|
|
|
+ <if test="prevId != null">
|
|
|
prev_id,
|
|
|
</if>
|
|
|
- <if test="nextId != null" >
|
|
|
+ <if test="nextId != null">
|
|
|
next_id,
|
|
|
</if>
|
|
|
- <if test="parentId != null" >
|
|
|
+ <if test="parentId != null">
|
|
|
parent_id,
|
|
|
</if>
|
|
|
- <if test="childId != null" >
|
|
|
+ <if test="childId != null">
|
|
|
child_id,
|
|
|
</if>
|
|
|
- <if test="objType != null" >
|
|
|
+ <if test="objType != null">
|
|
|
obj_type,
|
|
|
</if>
|
|
|
</trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="id != null" >
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
#{id,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="prevId != null" >
|
|
|
+ <if test="prevId != null">
|
|
|
#{prevId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="nextId != null" >
|
|
|
+ <if test="nextId != null">
|
|
|
#{nextId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="parentId != null" >
|
|
|
+ <if test="parentId != null">
|
|
|
#{parentId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="childId != null" >
|
|
|
+ <if test="childId != null">
|
|
|
#{childId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="objType != null" >
|
|
|
+ <if test="objType != null">
|
|
|
#{objType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="group04.myBatis.Nodeinfo" >
|
|
|
+ <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" >
|
|
|
+ <set>
|
|
|
+ <if test="prevId != null">
|
|
|
prev_id = #{prevId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="nextId != null" >
|
|
|
+ <if test="nextId != null">
|
|
|
next_id = #{nextId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="parentId != null" >
|
|
|
+ <if test="parentId != null">
|
|
|
parent_id = #{parentId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="childId != null" >
|
|
|
+ <if test="childId != null">
|
|
|
child_id = #{childId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="objType != null" >
|
|
|
+ <if test="objType != null">
|
|
|
obj_type = #{objType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="group04.myBatis.Nodeinfo" >
|
|
|
+ <update id="updateByPrimaryKey" parameterType="WebsiteES.myBatis.Nodeinfo">
|
|
|
<!--
|
|
|
WARNING - @mbggenerated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|