SysFunctionMapper.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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.SysFunctionMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysFunction" >
  5. <id column="SF_ID" property="sfId" jdbcType="INTEGER" />
  6. <result column="SF_Name" property="sfName" jdbcType="VARCHAR" />
  7. <result column="SF_Intro" property="sfIntro" jdbcType="VARCHAR" />
  8. <result column="SF_Icon" property="sfIcon" jdbcType="VARCHAR" />
  9. <result column="SF_Sort" property="sfSort" jdbcType="INTEGER" />
  10. <result column="UI_ID_Add" property="uiIdAdd" jdbcType="VARCHAR" />
  11. <result column="SF_AddDate" property="sfAdddate" jdbcType="TIMESTAMP" />
  12. <result column="UI_ID_Update" property="uiIdUpdate" jdbcType="VARCHAR" />
  13. <result column="SF_UpdateDate" property="sfUpdatedate" jdbcType="TIMESTAMP" />
  14. <result column="SF_IsDel" property="sfIsdel" jdbcType="INTEGER" />
  15. <result column="SF_URL" property="sfUrl" jdbcType="VARCHAR" />
  16. <result column="SF_MenuType" property="sfMenutype" jdbcType="INTEGER" />
  17. <result column="SF_ShowType" property="sfShowtype" jdbcType="INTEGER" />
  18. <result column="SF_ISFixed" property="sfIsfixed" jdbcType="INTEGER" />
  19. <result column="SF_IsExternal_Link" property="sfIsExternalLink" jdbcType="INTEGER" />
  20. <result column="SF_Component" property="sfComponent" jdbcType="VARCHAR" />
  21. </resultMap>
  22. <sql id="Base_Column_List" >
  23. SF_ID, SF_Name, SF_Intro, SF_Icon, SF_Sort, UI_ID_Add, SF_AddDate, UI_ID_Update,
  24. SF_UpdateDate, SF_IsDel, SF_URL, SF_MenuType, SF_ShowType, SF_ISFixed, SF_IsExternal_Link, SF_Component
  25. </sql>
  26. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  27. select
  28. <include refid="Base_Column_List" />
  29. from sys_function
  30. where SF_ID = #{sfId,jdbcType=INTEGER}
  31. </select>
  32. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  33. delete from sys_function
  34. where SF_ID = #{sfId,jdbcType=INTEGER}
  35. </delete>
  36. <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SysFunction" >
  37. insert into sys_function (SF_ID, SF_Name, SF_Intro,
  38. SF_Icon, SF_Sort, UI_ID_Add,
  39. SF_AddDate, UI_ID_Update, SF_UpdateDate,
  40. SF_IsDel, SF_URL, SF_MenuType,
  41. SF_ShowType, SF_ISFixed)
  42. values (#{sfId,jdbcType=INTEGER}, #{sfName,jdbcType=VARCHAR}, #{sfIntro,jdbcType=VARCHAR},
  43. #{sfIcon,jdbcType=VARCHAR}, #{sfSort,jdbcType=INTEGER}, #{uiIdAdd,jdbcType=VARCHAR},
  44. #{sfAdddate,jdbcType=TIMESTAMP}, #{uiIdUpdate,jdbcType=VARCHAR}, #{sfUpdatedate,jdbcType=TIMESTAMP},
  45. #{sfIsdel,jdbcType=INTEGER}, #{sfUrl,jdbcType=VARCHAR}, #{sfMenutype,jdbcType=INTEGER},
  46. #{sfShowtype,jdbcType=INTEGER}, #{sfIsfixed,jdbcType=INTEGER})
  47. </insert>
  48. <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysFunction" >
  49. insert into sys_function
  50. <trim prefix="(" suffix=")" suffixOverrides="," >
  51. <if test="SF_ID != null" >
  52. SF_ID,
  53. </if>
  54. <if test="SF_Name != null" >
  55. SF_Name,
  56. </if>
  57. <if test="SF_Intro != null" >
  58. SF_Intro,
  59. </if>
  60. <if test="SF_Icon != null" >
  61. SF_Icon,
  62. </if>
  63. <if test="SF_Sort != null" >
  64. SF_Sort,
  65. </if>
  66. <if test="UI_ID_Add != null" >
  67. UI_ID_Add,
  68. </if>
  69. <if test="SF_AddDate != null" >
  70. SF_AddDate,
  71. </if>
  72. <if test="UI_ID_Update != null" >
  73. UI_ID_Update,
  74. </if>
  75. <if test="SF_UpdateDate != null" >
  76. SF_UpdateDate,
  77. </if>
  78. <if test="SF_IsDel != null" >
  79. SF_IsDel,
  80. </if>
  81. <if test="SF_URL != null" >
  82. SF_URL,
  83. </if>
  84. <if test="SF_MenuType != null" >
  85. SF_MenuType,
  86. </if>
  87. <if test="SF_ShowType != null" >
  88. SF_ShowType,
  89. </if>
  90. <if test="SF_ISFixed != null" >
  91. SF_ISFixed,
  92. </if>
  93. <if test="SF_IsExternal_Link != null" >
  94. SF_IsExternal_Link,
  95. </if>
  96. <if test="SF_Component != null" >
  97. SF_Component,
  98. </if>
  99. </trim>
  100. <trim prefix="values (" suffix=")" suffixOverrides="," >
  101. <if test="sfId != null" >
  102. #{sfId,jdbcType=INTEGER},
  103. </if>
  104. <if test="sfName != null" >
  105. #{sfName,jdbcType=VARCHAR},
  106. </if>
  107. <if test="sfIntro != null" >
  108. #{sfIntro,jdbcType=VARCHAR},
  109. </if>
  110. <if test="sfIcon != null" >
  111. #{sfIcon,jdbcType=VARCHAR},
  112. </if>
  113. <if test="sfSort != null" >
  114. #{sfSort,jdbcType=INTEGER},
  115. </if>
  116. <if test="uiIdAdd != null" >
  117. #{uiIdAdd,jdbcType=VARCHAR},
  118. </if>
  119. <if test="sfAdddate != null" >
  120. #{sfAdddate,jdbcType=TIMESTAMP},
  121. </if>
  122. <if test="uiIdUpdate != null" >
  123. #{uiIdUpdate,jdbcType=VARCHAR},
  124. </if>
  125. <if test="sfUpdatedate != null" >
  126. #{sfUpdatedate,jdbcType=TIMESTAMP},
  127. </if>
  128. <if test="sfIsdel != null" >
  129. #{sfIsdel,jdbcType=INTEGER},
  130. </if>
  131. <if test="sfUrl != null" >
  132. #{sfUrl,jdbcType=VARCHAR},
  133. </if>
  134. <if test="sfMenutype != null" >
  135. #{sfMenutype,jdbcType=INTEGER},
  136. </if>
  137. <if test="sfShowtype != null" >
  138. #{sfShowtype,jdbcType=INTEGER},
  139. </if>
  140. <if test="sfIsfixed != null" >
  141. #{sfIsfixed,jdbcType=INTEGER},
  142. </if>
  143. <if test="sfIsExternalLink != null" >
  144. #{sfIsExternalLink,jdbcType=INTEGER},
  145. </if>
  146. <if test="sfComponent != null" >
  147. #{sfComponent,jdbcType=VARCHAR},
  148. </if>
  149. </trim>
  150. </insert>
  151. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysFunction" >
  152. update sys_function
  153. <set >
  154. <if test="sfName != null" >
  155. SF_Name = #{sfName,jdbcType=VARCHAR},
  156. </if>
  157. <if test="sfIntro != null" >
  158. SF_Intro = #{sfIntro,jdbcType=VARCHAR},
  159. </if>
  160. <if test="sfIcon != null" >
  161. SF_Icon = #{sfIcon,jdbcType=VARCHAR},
  162. </if>
  163. <if test="sfSort != null" >
  164. SF_Sort = #{sfSort,jdbcType=INTEGER},
  165. </if>
  166. <if test="uiIdAdd != null" >
  167. UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
  168. </if>
  169. <if test="sfAdddate != null" >
  170. SF_AddDate = #{sfAdddate,jdbcType=TIMESTAMP},
  171. </if>
  172. <if test="uiIdUpdate != null" >
  173. UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
  174. </if>
  175. <if test="sfUpdatedate != null" >
  176. SF_UpdateDate = #{sfUpdatedate,jdbcType=TIMESTAMP},
  177. </if>
  178. <if test="sfIsdel != null" >
  179. SF_IsDel = #{sfIsdel,jdbcType=INTEGER},
  180. </if>
  181. <if test="sfUrl != null" >
  182. SF_URL = #{sfUrl,jdbcType=VARCHAR},
  183. </if>
  184. <if test="sfMenutype != null" >
  185. SF_MenuType = #{sfMenutype,jdbcType=INTEGER},
  186. </if>
  187. <if test="sfShowtype != null" >
  188. SF_ShowType = #{sfShowtype,jdbcType=INTEGER},
  189. </if>
  190. <if test="sfIsfixed != null" >
  191. SF_ISFixed = #{sfIsfixed,jdbcType=INTEGER},
  192. </if>
  193. <if test="sfIsExternalLink != null" >
  194. SF_IsExternal_Link = #{sfIsExternalLink,jdbcType=INTEGER},
  195. </if>
  196. <if test="sfComponent != null" >
  197. SF_Component = #{sfComponent,jdbcType=VARCHAR},
  198. </if>
  199. </set>
  200. where SF_ID = #{sfId,jdbcType=INTEGER}
  201. </update>
  202. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SysFunction" >
  203. update sys_function
  204. set SF_Name = #{sfName,jdbcType=VARCHAR},
  205. SF_Intro = #{sfIntro,jdbcType=VARCHAR},
  206. SF_Icon = #{sfIcon,jdbcType=VARCHAR},
  207. SF_Sort = #{sfSort,jdbcType=INTEGER},
  208. UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
  209. SF_AddDate = #{sfAdddate,jdbcType=TIMESTAMP},
  210. UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
  211. SF_UpdateDate = #{sfUpdatedate,jdbcType=TIMESTAMP},
  212. SF_IsDel = #{sfIsdel,jdbcType=INTEGER},
  213. SF_URL = #{sfUrl,jdbcType=VARCHAR},
  214. SF_MenuType = #{sfMenutype,jdbcType=INTEGER},
  215. SF_ShowType = #{sfShowtype,jdbcType=INTEGER},
  216. SF_ISFixed = #{sfIsfixed,jdbcType=INTEGER}
  217. where SF_ID = #{sfId,jdbcType=INTEGER}
  218. </update>
  219. </mapper>