ImItemAuthMapper.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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.minpay.db.table.mapper.ImItemAuthMapper" >
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ImItemAuth" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="TMA_AUTH_NO" property="authNo" jdbcType="VARCHAR" />
  10. <id column="TMA_ITEMID" property="itemid" jdbcType="VARCHAR" />
  11. <result column="TMA_AUTH_NAME" property="authName" jdbcType="VARCHAR" />
  12. <result column="TMA_DEFAULT" property="defaultz" jdbcType="CHAR" />
  13. </resultMap>
  14. <sql id="Example_Where_Clause" >
  15. <!--
  16. WARNING - @mbggenerated
  17. This element is automatically generated by MyBatis Generator, do not modify.
  18. -->
  19. <where >
  20. <foreach collection="oredCriteria" item="criteria" separator="or" >
  21. <if test="criteria.valid" >
  22. <trim prefix="(" suffix=")" prefixOverrides="and" >
  23. <foreach collection="criteria.criteria" item="criterion" >
  24. <choose >
  25. <when test="criterion.noValue" >
  26. and ${criterion.condition}
  27. </when>
  28. <when test="criterion.singleValue" >
  29. and ${criterion.condition} #{criterion.value}
  30. </when>
  31. <when test="criterion.betweenValue" >
  32. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  33. </when>
  34. <when test="criterion.listValue" >
  35. and ${criterion.condition}
  36. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  37. #{listItem}
  38. </foreach>
  39. </when>
  40. </choose>
  41. </foreach>
  42. </trim>
  43. </if>
  44. </foreach>
  45. </where>
  46. </sql>
  47. <sql id="Update_By_Example_Where_Clause" >
  48. <!--
  49. WARNING - @mbggenerated
  50. This element is automatically generated by MyBatis Generator, do not modify.
  51. -->
  52. <where >
  53. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  54. <if test="criteria.valid" >
  55. <trim prefix="(" suffix=")" prefixOverrides="and" >
  56. <foreach collection="criteria.criteria" item="criterion" >
  57. <choose >
  58. <when test="criterion.noValue" >
  59. and ${criterion.condition}
  60. </when>
  61. <when test="criterion.singleValue" >
  62. and ${criterion.condition} #{criterion.value}
  63. </when>
  64. <when test="criterion.betweenValue" >
  65. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  66. </when>
  67. <when test="criterion.listValue" >
  68. and ${criterion.condition}
  69. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  70. #{listItem}
  71. </foreach>
  72. </when>
  73. </choose>
  74. </foreach>
  75. </trim>
  76. </if>
  77. </foreach>
  78. </where>
  79. </sql>
  80. <sql id="Base_Column_List" >
  81. <!--
  82. WARNING - @mbggenerated
  83. This element is automatically generated by MyBatis Generator, do not modify.
  84. -->
  85. TMA_AUTH_NO, TMA_ITEMID, TMA_AUTH_NAME, TMA_DEFAULT
  86. </sql>
  87. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ImItemAuthExample" >
  88. <!--
  89. WARNING - @mbggenerated
  90. This element is automatically generated by MyBatis Generator, do not modify.
  91. -->
  92. select
  93. <if test="distinct" >
  94. distinct
  95. </if>
  96. <include refid="Base_Column_List" />
  97. from im_item_auth
  98. <if test="_parameter != null" >
  99. <include refid="Example_Where_Clause" />
  100. </if>
  101. <if test="orderByClause != null" >
  102. order by ${orderByClause}
  103. </if>
  104. </select>
  105. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ImItemAuthKey" >
  106. <!--
  107. WARNING - @mbggenerated
  108. This element is automatically generated by MyBatis Generator, do not modify.
  109. -->
  110. select
  111. <include refid="Base_Column_List" />
  112. from im_item_auth
  113. where TMA_AUTH_NO = #{authNo,jdbcType=VARCHAR}
  114. and TMA_ITEMID = #{itemid,jdbcType=VARCHAR}
  115. </select>
  116. <delete id="deleteByPrimaryKey" parameterType="com.minpay.db.table.model.ImItemAuthKey" >
  117. <!--
  118. WARNING - @mbggenerated
  119. This element is automatically generated by MyBatis Generator, do not modify.
  120. -->
  121. delete from im_item_auth
  122. where TMA_AUTH_NO = #{authNo,jdbcType=VARCHAR}
  123. and TMA_ITEMID = #{itemid,jdbcType=VARCHAR}
  124. </delete>
  125. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ImItemAuthExample" >
  126. <!--
  127. WARNING - @mbggenerated
  128. This element is automatically generated by MyBatis Generator, do not modify.
  129. -->
  130. delete from im_item_auth
  131. <if test="_parameter != null" >
  132. <include refid="Example_Where_Clause" />
  133. </if>
  134. </delete>
  135. <insert id="insert" parameterType="com.minpay.db.table.model.ImItemAuth" >
  136. <!--
  137. WARNING - @mbggenerated
  138. This element is automatically generated by MyBatis Generator, do not modify.
  139. -->
  140. insert into im_item_auth (TMA_AUTH_NO, TMA_ITEMID, TMA_AUTH_NAME,
  141. TMA_DEFAULT)
  142. values (#{authNo,jdbcType=VARCHAR}, #{itemid,jdbcType=VARCHAR}, #{authName,jdbcType=VARCHAR},
  143. #{defaultz,jdbcType=CHAR})
  144. </insert>
  145. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ImItemAuth" >
  146. <!--
  147. WARNING - @mbggenerated
  148. This element is automatically generated by MyBatis Generator, do not modify.
  149. -->
  150. insert into im_item_auth
  151. <trim prefix="(" suffix=")" suffixOverrides="," >
  152. <if test="authNo != null" >
  153. TMA_AUTH_NO,
  154. </if>
  155. <if test="itemid != null" >
  156. TMA_ITEMID,
  157. </if>
  158. <if test="authName != null" >
  159. TMA_AUTH_NAME,
  160. </if>
  161. <if test="defaultz != null" >
  162. TMA_DEFAULT,
  163. </if>
  164. </trim>
  165. <trim prefix="values (" suffix=")" suffixOverrides="," >
  166. <if test="authNo != null" >
  167. #{authNo,jdbcType=VARCHAR},
  168. </if>
  169. <if test="itemid != null" >
  170. #{itemid,jdbcType=VARCHAR},
  171. </if>
  172. <if test="authName != null" >
  173. #{authName,jdbcType=VARCHAR},
  174. </if>
  175. <if test="defaultz != null" >
  176. #{defaultz,jdbcType=CHAR},
  177. </if>
  178. </trim>
  179. </insert>
  180. <select id="countByExample" parameterType="com.minpay.db.table.model.ImItemAuthExample" resultType="java.lang.Integer" >
  181. <!--
  182. WARNING - @mbggenerated
  183. This element is automatically generated by MyBatis Generator, do not modify.
  184. -->
  185. select count(*) from im_item_auth
  186. <if test="_parameter != null" >
  187. <include refid="Example_Where_Clause" />
  188. </if>
  189. </select>
  190. <update id="updateByExampleSelective" parameterType="map" >
  191. <!--
  192. WARNING - @mbggenerated
  193. This element is automatically generated by MyBatis Generator, do not modify.
  194. -->
  195. update im_item_auth
  196. <set >
  197. <if test="record.authNo != null" >
  198. TMA_AUTH_NO = #{record.authNo,jdbcType=VARCHAR},
  199. </if>
  200. <if test="record.itemid != null" >
  201. TMA_ITEMID = #{record.itemid,jdbcType=VARCHAR},
  202. </if>
  203. <if test="record.authName != null" >
  204. TMA_AUTH_NAME = #{record.authName,jdbcType=VARCHAR},
  205. </if>
  206. <if test="record.defaultz != null" >
  207. TMA_DEFAULT = #{record.defaultz,jdbcType=CHAR},
  208. </if>
  209. </set>
  210. <if test="_parameter != null" >
  211. <include refid="Update_By_Example_Where_Clause" />
  212. </if>
  213. </update>
  214. <update id="updateByExample" parameterType="map" >
  215. <!--
  216. WARNING - @mbggenerated
  217. This element is automatically generated by MyBatis Generator, do not modify.
  218. -->
  219. update im_item_auth
  220. set TMA_AUTH_NO = #{record.authNo,jdbcType=VARCHAR},
  221. TMA_ITEMID = #{record.itemid,jdbcType=VARCHAR},
  222. TMA_AUTH_NAME = #{record.authName,jdbcType=VARCHAR},
  223. TMA_DEFAULT = #{record.defaultz,jdbcType=CHAR}
  224. <if test="_parameter != null" >
  225. <include refid="Update_By_Example_Where_Clause" />
  226. </if>
  227. </update>
  228. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ImItemAuth" >
  229. <!--
  230. WARNING - @mbggenerated
  231. This element is automatically generated by MyBatis Generator, do not modify.
  232. -->
  233. update im_item_auth
  234. <set >
  235. <if test="authName != null" >
  236. TMA_AUTH_NAME = #{authName,jdbcType=VARCHAR},
  237. </if>
  238. <if test="defaultz != null" >
  239. TMA_DEFAULT = #{defaultz,jdbcType=CHAR},
  240. </if>
  241. </set>
  242. where TMA_AUTH_NO = #{authNo,jdbcType=VARCHAR}
  243. and TMA_ITEMID = #{itemid,jdbcType=VARCHAR}
  244. </update>
  245. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ImItemAuth" >
  246. <!--
  247. WARNING - @mbggenerated
  248. This element is automatically generated by MyBatis Generator, do not modify.
  249. -->
  250. update im_item_auth
  251. set TMA_AUTH_NAME = #{authName,jdbcType=VARCHAR},
  252. TMA_DEFAULT = #{defaultz,jdbcType=CHAR}
  253. where TMA_AUTH_NO = #{authNo,jdbcType=VARCHAR}
  254. and TMA_ITEMID = #{itemid,jdbcType=VARCHAR}
  255. </update>
  256. </mapper>