SysMenuMapper.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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="com.xinxin.topro.base.mysqlmapper.SysMenuMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysMenu" >
  5. <id column="SM_ID" property="smId" jdbcType="INTEGER" />
  6. <result column="SS_ID" property="ssId" jdbcType="INTEGER" />
  7. <result column="SM_SupID" property="smSupid" jdbcType="INTEGER" />
  8. <result column="SM_Parameter" property="smParameter" jdbcType="VARCHAR" />
  9. <result column="SM_Icon" property="smIcon" jdbcType="VARCHAR" />
  10. <result column="SM_Sort" property="smSort" jdbcType="INTEGER" />
  11. <result column="SM_Name" property="smName" jdbcType="VARCHAR" />
  12. <result column="UI_ID_Add" property="uiIdAdd" jdbcType="VARCHAR" />
  13. <result column="SM_AddDate" property="smAdddate" jdbcType="TIMESTAMP" />
  14. <result column="UI_ID_Update" property="uiIdUpdate" jdbcType="VARCHAR" />
  15. <result column="SM_UpdateDate" property="smUpdatedate" jdbcType="TIMESTAMP" />
  16. <result column="SM_IsDel" property="smIsdel" jdbcType="INTEGER" />
  17. <result column="SF_ID" property="sfId" jdbcType="INTEGER" />
  18. </resultMap>
  19. <sql id="Base_Column_List" >
  20. SM_ID, SS_ID, SM_SupID, SM_Parameter, SM_Icon, SM_Sort, SM_Name, UI_ID_Add, SM_AddDate,
  21. UI_ID_Update, SM_UpdateDate, SM_IsDel, SF_ID
  22. </sql>
  23. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  24. select
  25. <include refid="Base_Column_List" />
  26. from sys_menu
  27. where SM_ID = #{smId,jdbcType=INTEGER}
  28. </select>
  29. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  30. delete from sys_menu
  31. where SM_ID = #{smId,jdbcType=INTEGER}
  32. </delete>
  33. <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SysMenu" >
  34. insert into sys_menu (SM_ID, SS_ID, SM_SupID,
  35. SM_Parameter, SM_Icon, SM_Sort,
  36. SM_Name, UI_ID_Add, SM_AddDate,
  37. UI_ID_Update, SM_UpdateDate, SM_IsDel,
  38. SF_ID)
  39. values (#{smId,jdbcType=INTEGER}, #{ssId,jdbcType=INTEGER}, #{smSupid,jdbcType=INTEGER},
  40. #{smParameter,jdbcType=VARCHAR}, #{smIcon,jdbcType=VARCHAR}, #{smSort,jdbcType=INTEGER},
  41. #{smName,jdbcType=VARCHAR}, #{uiIdAdd,jdbcType=VARCHAR}, #{smAdddate,jdbcType=TIMESTAMP},
  42. #{uiIdUpdate,jdbcType=VARCHAR}, #{smUpdatedate,jdbcType=TIMESTAMP}, #{smIsdel,jdbcType=INTEGER},
  43. #{sfId,jdbcType=INTEGER})
  44. </insert>
  45. <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysMenu" >
  46. insert into sys_menu
  47. <trim prefix="(" suffix=")" suffixOverrides="," >
  48. <if test="smId != null" >
  49. SM_ID,
  50. </if>
  51. <if test="ssId != null" >
  52. SS_ID,
  53. </if>
  54. <if test="smSupid != null" >
  55. SM_SupID,
  56. </if>
  57. <if test="smParameter != null" >
  58. SM_Parameter,
  59. </if>
  60. <if test="smIcon != null" >
  61. SM_Icon,
  62. </if>
  63. <if test="smSort != null" >
  64. SM_Sort,
  65. </if>
  66. <if test="smName != null" >
  67. SM_Name,
  68. </if>
  69. <if test="uiIdAdd != null" >
  70. UI_ID_Add,
  71. </if>
  72. <if test="smAdddate != null" >
  73. SM_AddDate,
  74. </if>
  75. <if test="uiIdUpdate != null" >
  76. UI_ID_Update,
  77. </if>
  78. <if test="smUpdatedate != null" >
  79. SM_UpdateDate,
  80. </if>
  81. <if test="smIsdel != null" >
  82. SM_IsDel,
  83. </if>
  84. <if test="sfId != null" >
  85. SF_ID,
  86. </if>
  87. </trim>
  88. <trim prefix="values (" suffix=")" suffixOverrides="," >
  89. <if test="smId != null" >
  90. #{smId,jdbcType=INTEGER},
  91. </if>
  92. <if test="ssId != null" >
  93. #{ssId,jdbcType=INTEGER},
  94. </if>
  95. <if test="smSupid != null" >
  96. #{smSupid,jdbcType=INTEGER},
  97. </if>
  98. <if test="smParameter != null" >
  99. #{smParameter,jdbcType=VARCHAR},
  100. </if>
  101. <if test="smIcon != null" >
  102. #{smIcon,jdbcType=VARCHAR},
  103. </if>
  104. <if test="smSort != null" >
  105. #{smSort,jdbcType=INTEGER},
  106. </if>
  107. <if test="smName != null" >
  108. #{smName,jdbcType=VARCHAR},
  109. </if>
  110. <if test="uiIdAdd != null" >
  111. #{uiIdAdd,jdbcType=VARCHAR},
  112. </if>
  113. <if test="smAdddate != null" >
  114. #{smAdddate,jdbcType=TIMESTAMP},
  115. </if>
  116. <if test="uiIdUpdate != null" >
  117. #{uiIdUpdate,jdbcType=VARCHAR},
  118. </if>
  119. <if test="smUpdatedate != null" >
  120. #{smUpdatedate,jdbcType=TIMESTAMP},
  121. </if>
  122. <if test="smIsdel != null" >
  123. #{smIsdel,jdbcType=INTEGER},
  124. </if>
  125. <if test="sfId != null" >
  126. #{sfId,jdbcType=INTEGER},
  127. </if>
  128. </trim>
  129. </insert>
  130. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysMenu" >
  131. update sys_menu
  132. <set >
  133. <if test="ssId != null" >
  134. SS_ID = #{ssId,jdbcType=INTEGER},
  135. </if>
  136. <if test="smSupid != null" >
  137. SM_SupID = #{smSupid,jdbcType=INTEGER},
  138. </if>
  139. <if test="smParameter != null" >
  140. SM_Parameter = #{smParameter,jdbcType=VARCHAR},
  141. </if>
  142. <if test="smIcon != null" >
  143. SM_Icon = #{smIcon,jdbcType=VARCHAR},
  144. </if>
  145. <if test="smSort != null" >
  146. SM_Sort = #{smSort,jdbcType=INTEGER},
  147. </if>
  148. <if test="smName != null" >
  149. SM_Name = #{smName,jdbcType=VARCHAR},
  150. </if>
  151. <if test="uiIdAdd != null" >
  152. UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
  153. </if>
  154. <if test="smAdddate != null" >
  155. SM_AddDate = #{smAdddate,jdbcType=TIMESTAMP},
  156. </if>
  157. <if test="uiIdUpdate != null" >
  158. UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
  159. </if>
  160. <if test="smUpdatedate != null" >
  161. SM_UpdateDate = #{smUpdatedate,jdbcType=TIMESTAMP},
  162. </if>
  163. <if test="smIsdel != null" >
  164. SM_IsDel = #{smIsdel,jdbcType=INTEGER},
  165. </if>
  166. <if test="sfId != null" >
  167. SF_ID = #{sfId,jdbcType=INTEGER},
  168. </if>
  169. </set>
  170. where SM_ID = #{smId,jdbcType=INTEGER}
  171. </update>
  172. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SysMenu" >
  173. update sys_menu
  174. set SS_ID = #{ssId,jdbcType=INTEGER},
  175. SM_SupID = #{smSupid,jdbcType=INTEGER},
  176. SM_Parameter = #{smParameter,jdbcType=VARCHAR},
  177. SM_Icon = #{smIcon,jdbcType=VARCHAR},
  178. SM_Sort = #{smSort,jdbcType=INTEGER},
  179. SM_Name = #{smName,jdbcType=VARCHAR},
  180. UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
  181. SM_AddDate = #{smAdddate,jdbcType=TIMESTAMP},
  182. UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
  183. SM_UpdateDate = #{smUpdatedate,jdbcType=TIMESTAMP},
  184. SM_IsDel = #{smIsdel,jdbcType=INTEGER},
  185. SF_ID = #{sfId,jdbcType=INTEGER}
  186. where SM_ID = #{smId,jdbcType=INTEGER}
  187. </update>
  188. </mapper>