NodeinfoMapper.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="group04.myBatis.NodeinfoMapper" >
  4. <resultMap id="BaseResultMap" type="group04.myBatis.Nodeinfo" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="id" property="id" jdbcType="BIGINT" />
  10. <result column="prev_id" property="prevId" jdbcType="BIGINT" />
  11. <result column="next_id" property="nextId" jdbcType="BIGINT" />
  12. <result column="parent_id" property="parentId" jdbcType="BIGINT" />
  13. <result column="child_id" property="childId" jdbcType="BIGINT" />
  14. <result column="obj_type" property="objType" jdbcType="VARCHAR" />
  15. </resultMap>
  16. <sql id="Base_Column_List" >
  17. <!--
  18. WARNING - @mbggenerated
  19. This element is automatically generated by MyBatis Generator, do not modify.
  20. -->
  21. id, prev_id, next_id, parent_id, child_id, obj_type
  22. </sql>
  23. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
  24. <!--
  25. WARNING - @mbggenerated
  26. This element is automatically generated by MyBatis Generator, do not modify.
  27. -->
  28. select
  29. <include refid="Base_Column_List" />
  30. from nodeinfo
  31. where id = #{id,jdbcType=BIGINT}
  32. </select>
  33. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
  34. <!--
  35. WARNING - @mbggenerated
  36. This element is automatically generated by MyBatis Generator, do not modify.
  37. -->
  38. delete from nodeinfo
  39. where id = #{id,jdbcType=BIGINT}
  40. </delete>
  41. <insert id="insert" parameterType="group04.myBatis.Nodeinfo" >
  42. <!--
  43. WARNING - @mbggenerated
  44. This element is automatically generated by MyBatis Generator, do not modify.
  45. -->
  46. insert into nodeinfo (id, prev_id, next_id,
  47. parent_id, child_id, obj_type
  48. )
  49. values (#{id,jdbcType=BIGINT}, #{prevId,jdbcType=BIGINT}, #{nextId,jdbcType=BIGINT},
  50. #{parentId,jdbcType=BIGINT}, #{childId,jdbcType=BIGINT}, #{objType,jdbcType=VARCHAR}
  51. )
  52. </insert>
  53. <insert id="insertSelective" parameterType="group04.myBatis.Nodeinfo" >
  54. <!--
  55. WARNING - @mbggenerated
  56. This element is automatically generated by MyBatis Generator, do not modify.
  57. -->
  58. insert into nodeinfo
  59. <trim prefix="(" suffix=")" suffixOverrides="," >
  60. <if test="id != null" >
  61. id,
  62. </if>
  63. <if test="prevId != null" >
  64. prev_id,
  65. </if>
  66. <if test="nextId != null" >
  67. next_id,
  68. </if>
  69. <if test="parentId != null" >
  70. parent_id,
  71. </if>
  72. <if test="childId != null" >
  73. child_id,
  74. </if>
  75. <if test="objType != null" >
  76. obj_type,
  77. </if>
  78. </trim>
  79. <trim prefix="values (" suffix=")" suffixOverrides="," >
  80. <if test="id != null" >
  81. #{id,jdbcType=BIGINT},
  82. </if>
  83. <if test="prevId != null" >
  84. #{prevId,jdbcType=BIGINT},
  85. </if>
  86. <if test="nextId != null" >
  87. #{nextId,jdbcType=BIGINT},
  88. </if>
  89. <if test="parentId != null" >
  90. #{parentId,jdbcType=BIGINT},
  91. </if>
  92. <if test="childId != null" >
  93. #{childId,jdbcType=BIGINT},
  94. </if>
  95. <if test="objType != null" >
  96. #{objType,jdbcType=VARCHAR},
  97. </if>
  98. </trim>
  99. </insert>
  100. <update id="updateByPrimaryKeySelective" parameterType="group04.myBatis.Nodeinfo" >
  101. <!--
  102. WARNING - @mbggenerated
  103. This element is automatically generated by MyBatis Generator, do not modify.
  104. -->
  105. update nodeinfo
  106. <set >
  107. <if test="prevId != null" >
  108. prev_id = #{prevId,jdbcType=BIGINT},
  109. </if>
  110. <if test="nextId != null" >
  111. next_id = #{nextId,jdbcType=BIGINT},
  112. </if>
  113. <if test="parentId != null" >
  114. parent_id = #{parentId,jdbcType=BIGINT},
  115. </if>
  116. <if test="childId != null" >
  117. child_id = #{childId,jdbcType=BIGINT},
  118. </if>
  119. <if test="objType != null" >
  120. obj_type = #{objType,jdbcType=VARCHAR},
  121. </if>
  122. </set>
  123. where id = #{id,jdbcType=BIGINT}
  124. </update>
  125. <update id="updateByPrimaryKey" parameterType="group04.myBatis.Nodeinfo" >
  126. <!--
  127. WARNING - @mbggenerated
  128. This element is automatically generated by MyBatis Generator, do not modify.
  129. -->
  130. update nodeinfo
  131. set prev_id = #{prevId,jdbcType=BIGINT},
  132. next_id = #{nextId,jdbcType=BIGINT},
  133. parent_id = #{parentId,jdbcType=BIGINT},
  134. child_id = #{childId,jdbcType=BIGINT},
  135. obj_type = #{objType,jdbcType=VARCHAR}
  136. where id = #{id,jdbcType=BIGINT}
  137. </update>
  138. <update id="commit">
  139. commit
  140. </update>
  141. </mapper>