SysOperationMapper.xml 6.3 KB

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