SystemMapper.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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.SystemMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysSystem" >
  5. <id column="SS_ID" property="ssId" jdbcType="INTEGER" />
  6. <result column="SS_Name" property="ssName" jdbcType="VARCHAR" />
  7. <result column="SS_URL" property="ssUrl" jdbcType="VARCHAR" />
  8. <result column="SS_Type" property="ssType" jdbcType="INTEGER" />
  9. <result column="SS_Parameter" property="ssParameter" jdbcType="VARCHAR" />
  10. <result column="SS_Sort" property="ssSort" jdbcType="INTEGER" />
  11. <result column="UI_ID_Add" property="uiIdAdd" jdbcType="VARCHAR" />
  12. <result column="SS_AddDate" property="ssAdddate" jdbcType="TIMESTAMP" />
  13. <result column="UI_ID_Update" property="uiIdUpdate" jdbcType="VARCHAR" />
  14. <result column="SS_UpdateDate" property="ssUpdatedate" jdbcType="TIMESTAMP" />
  15. <result column="SS_IsDel" property="ssIsdel" jdbcType="INTEGER" />
  16. <result column="SS_EffectiveTime" property="ssEffectivetime" jdbcType="TIMESTAMP" />
  17. <result column="SS_FailureTime" property="ssFailuretime" jdbcType="TIMESTAMP" />
  18. <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
  19. </resultMap>
  20. <sql id="Base_Column_List" >
  21. SS_ID, SS_Name, SS_URL, SS_Type, SS_Parameter, SS_Sort, UI_ID_Add, SS_AddDate, UI_ID_Update,
  22. SS_UpdateDate, SS_IsDel, SS_EffectiveTime, SS_FailureTime, HI_ID
  23. </sql>
  24. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  25. select
  26. <include refid="Base_Column_List" />
  27. from sys_system
  28. where SS_ID = #{ssId,jdbcType=INTEGER}
  29. </select>
  30. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  31. delete from sys_system
  32. where SS_ID = #{ssId,jdbcType=INTEGER}
  33. </delete>
  34. <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysSystem" >
  35. insert into sys_system
  36. <trim prefix="(" suffix=")" suffixOverrides="," >
  37. <if test="ssId != null" >
  38. SS_ID,
  39. </if>
  40. <if test="ssName != null" >
  41. SS_Name,
  42. </if>
  43. <if test="ssUrl != null" >
  44. SS_URL,
  45. </if>
  46. <if test="ssType != null" >
  47. SS_Type,
  48. </if>
  49. <if test="ssParameter != null" >
  50. SS_Parameter,
  51. </if>
  52. <if test="ssSort != null" >
  53. SS_Sort,
  54. </if>
  55. <if test="uiIdAdd != null" >
  56. UI_ID_Add,
  57. </if>
  58. <if test="ssAdddate != null" >
  59. SS_AddDate,
  60. </if>
  61. <if test="uiIdUpdate != null" >
  62. UI_ID_Update,
  63. </if>
  64. <if test="ssUpdatedate != null" >
  65. SS_UpdateDate,
  66. </if>
  67. <if test="ssIsdel != null" >
  68. SS_IsDel,
  69. </if>
  70. <if test="ssEffectivetime != null" >
  71. SS_EffectiveTime,
  72. </if>
  73. <if test="ssFailuretime != null" >
  74. SS_FailureTime,
  75. </if>
  76. <if test="hiId != null" >
  77. HI_ID,
  78. </if>
  79. </trim>
  80. <trim prefix="values (" suffix=")" suffixOverrides="," >
  81. <if test="ssId != null" >
  82. #{ssId,jdbcType=INTEGER},
  83. </if>
  84. <if test="ssName != null" >
  85. #{ssName,jdbcType=VARCHAR},
  86. </if>
  87. <if test="ssUrl != null" >
  88. #{ssUrl,jdbcType=VARCHAR},
  89. </if>
  90. <if test="ssType != null" >
  91. #{ssType,jdbcType=INTEGER},
  92. </if>
  93. <if test="ssParameter != null" >
  94. #{ssParameter,jdbcType=VARCHAR},
  95. </if>
  96. <if test="ssSort != null" >
  97. #{ssSort,jdbcType=INTEGER},
  98. </if>
  99. <if test="uiIdAdd != null" >
  100. #{uiIdAdd,jdbcType=VARCHAR},
  101. </if>
  102. <if test="ssAdddate != null" >
  103. #{ssAdddate,jdbcType=TIMESTAMP},
  104. </if>
  105. <if test="uiIdUpdate != null" >
  106. #{uiIdUpdate,jdbcType=VARCHAR},
  107. </if>
  108. <if test="ssUpdatedate != null" >
  109. #{ssUpdatedate,jdbcType=TIMESTAMP},
  110. </if>
  111. <if test="ssIsdel != null" >
  112. #{ssIsdel,jdbcType=INTEGER},
  113. </if>
  114. <if test="ssEffectivetime != null" >
  115. #{ssEffectivetime,jdbcType=TIMESTAMP},
  116. </if>
  117. <if test="ssFailuretime != null" >
  118. #{ssFailuretime,jdbcType=TIMESTAMP},
  119. </if>
  120. <if test="hiId != null" >
  121. #{hiId,jdbcType=INTEGER},
  122. </if>
  123. </trim>
  124. </insert>
  125. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysSystem" >
  126. update sys_system
  127. <set >
  128. <if test="ssName != null" >
  129. SS_Name = #{ssName,jdbcType=VARCHAR},
  130. </if>
  131. <if test="ssUrl != null" >
  132. SS_URL = #{ssUrl,jdbcType=VARCHAR},
  133. </if>
  134. <if test="ssType != null" >
  135. SS_Type = #{ssType,jdbcType=INTEGER},
  136. </if>
  137. <if test="ssParameter != null" >
  138. SS_Parameter = #{ssParameter,jdbcType=VARCHAR},
  139. </if>
  140. <if test="ssSort != null" >
  141. SS_Sort = #{ssSort,jdbcType=INTEGER},
  142. </if>
  143. <if test="uiIdAdd != null" >
  144. UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
  145. </if>
  146. <if test="ssAdddate != null" >
  147. SS_AddDate = #{ssAdddate,jdbcType=TIMESTAMP},
  148. </if>
  149. <if test="uiIdUpdate != null" >
  150. UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
  151. </if>
  152. <if test="ssUpdatedate != null" >
  153. SS_UpdateDate = #{ssUpdatedate,jdbcType=TIMESTAMP},
  154. </if>
  155. <if test="ssIsdel != null" >
  156. SS_IsDel = #{ssIsdel,jdbcType=INTEGER},
  157. </if>
  158. <if test="ssEffectivetime != null" >
  159. SS_EffectiveTime = #{ssEffectivetime,jdbcType=TIMESTAMP},
  160. </if>
  161. <if test="ssFailuretime != null" >
  162. SS_FailureTime = #{ssFailuretime,jdbcType=TIMESTAMP},
  163. </if>
  164. <if test="hiId != null" >
  165. HI_ID = #{hiId,jdbcType=INTEGER},
  166. </if>
  167. </set>
  168. where SS_ID = #{ssId,jdbcType=INTEGER}
  169. </update>
  170. </mapper>