ImItemMapper.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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.ImItemMapper" >
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ImItem" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="ITM_ID" property="id" jdbcType="VARCHAR" />
  10. <result column="ITM_NAME" property="name" jdbcType="VARCHAR" />
  11. <result column="ITM_URL" property="url" jdbcType="VARCHAR" />
  12. <result column="ITM_SERIALNO" property="serialno" jdbcType="INTEGER" />
  13. <result column="ITM_AUTH" property="auth" jdbcType="CHAR" />
  14. <result column="ITM_AUTHTYPE" property="authtype" jdbcType="CHAR" />
  15. <result column="ITM_AUTHSHAPE" property="authshape" jdbcType="CHAR" />
  16. <result column="ITM_LEVEL" property="level" jdbcType="CHAR" />
  17. <result column="ITM_STT" property="stt" jdbcType="CHAR" />
  18. <result column="ITM_ICON" property="icon" jdbcType="VARCHAR" />
  19. </resultMap>
  20. <sql id="Example_Where_Clause" >
  21. <!--
  22. WARNING - @mbggenerated
  23. This element is automatically generated by MyBatis Generator, do not modify.
  24. -->
  25. <where >
  26. <foreach collection="oredCriteria" item="criteria" separator="or" >
  27. <if test="criteria.valid" >
  28. <trim prefix="(" suffix=")" prefixOverrides="and" >
  29. <foreach collection="criteria.criteria" item="criterion" >
  30. <choose >
  31. <when test="criterion.noValue" >
  32. and ${criterion.condition}
  33. </when>
  34. <when test="criterion.singleValue" >
  35. and ${criterion.condition} #{criterion.value}
  36. </when>
  37. <when test="criterion.betweenValue" >
  38. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  39. </when>
  40. <when test="criterion.listValue" >
  41. and ${criterion.condition}
  42. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  43. #{listItem}
  44. </foreach>
  45. </when>
  46. </choose>
  47. </foreach>
  48. </trim>
  49. </if>
  50. </foreach>
  51. </where>
  52. </sql>
  53. <sql id="Update_By_Example_Where_Clause" >
  54. <!--
  55. WARNING - @mbggenerated
  56. This element is automatically generated by MyBatis Generator, do not modify.
  57. -->
  58. <where >
  59. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  60. <if test="criteria.valid" >
  61. <trim prefix="(" suffix=")" prefixOverrides="and" >
  62. <foreach collection="criteria.criteria" item="criterion" >
  63. <choose >
  64. <when test="criterion.noValue" >
  65. and ${criterion.condition}
  66. </when>
  67. <when test="criterion.singleValue" >
  68. and ${criterion.condition} #{criterion.value}
  69. </when>
  70. <when test="criterion.betweenValue" >
  71. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  72. </when>
  73. <when test="criterion.listValue" >
  74. and ${criterion.condition}
  75. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  76. #{listItem}
  77. </foreach>
  78. </when>
  79. </choose>
  80. </foreach>
  81. </trim>
  82. </if>
  83. </foreach>
  84. </where>
  85. </sql>
  86. <sql id="Base_Column_List" >
  87. <!--
  88. WARNING - @mbggenerated
  89. This element is automatically generated by MyBatis Generator, do not modify.
  90. -->
  91. ITM_ID, ITM_NAME, ITM_URL, ITM_SERIALNO, ITM_AUTH, ITM_AUTHTYPE, ITM_AUTHSHAPE, ITM_LEVEL,
  92. ITM_STT, ITM_ICON
  93. </sql>
  94. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ImItemExample" >
  95. <!--
  96. WARNING - @mbggenerated
  97. This element is automatically generated by MyBatis Generator, do not modify.
  98. -->
  99. select
  100. <if test="distinct" >
  101. distinct
  102. </if>
  103. <include refid="Base_Column_List" />
  104. from im_item
  105. <if test="_parameter != null" >
  106. <include refid="Example_Where_Clause" />
  107. </if>
  108. <if test="orderByClause != null" >
  109. order by ${orderByClause}
  110. </if>
  111. </select>
  112. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  113. <!--
  114. WARNING - @mbggenerated
  115. This element is automatically generated by MyBatis Generator, do not modify.
  116. -->
  117. select
  118. <include refid="Base_Column_List" />
  119. from im_item
  120. where ITM_ID = #{id,jdbcType=VARCHAR}
  121. </select>
  122. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  123. <!--
  124. WARNING - @mbggenerated
  125. This element is automatically generated by MyBatis Generator, do not modify.
  126. -->
  127. delete from im_item
  128. where ITM_ID = #{id,jdbcType=VARCHAR}
  129. </delete>
  130. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ImItemExample" >
  131. <!--
  132. WARNING - @mbggenerated
  133. This element is automatically generated by MyBatis Generator, do not modify.
  134. -->
  135. delete from im_item
  136. <if test="_parameter != null" >
  137. <include refid="Example_Where_Clause" />
  138. </if>
  139. </delete>
  140. <insert id="insert" parameterType="com.minpay.db.table.model.ImItem" >
  141. <!--
  142. WARNING - @mbggenerated
  143. This element is automatically generated by MyBatis Generator, do not modify.
  144. -->
  145. insert into im_item (ITM_ID, ITM_NAME, ITM_URL,
  146. ITM_SERIALNO, ITM_AUTH, ITM_AUTHTYPE,
  147. ITM_AUTHSHAPE, ITM_LEVEL, ITM_STT, ITM_ICON
  148. )
  149. values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR},
  150. #{serialno,jdbcType=INTEGER}, #{auth,jdbcType=CHAR}, #{authtype,jdbcType=CHAR},
  151. #{authshape,jdbcType=CHAR}, #{level,jdbcType=CHAR}, #{stt,jdbcType=CHAR}, #{icon,jdbcType=VARCHAR}
  152. )
  153. </insert>
  154. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ImItem" >
  155. <!--
  156. WARNING - @mbggenerated
  157. This element is automatically generated by MyBatis Generator, do not modify.
  158. -->
  159. insert into im_item
  160. <trim prefix="(" suffix=")" suffixOverrides="," >
  161. <if test="id != null" >
  162. ITM_ID,
  163. </if>
  164. <if test="name != null" >
  165. ITM_NAME,
  166. </if>
  167. <if test="url != null" >
  168. ITM_URL,
  169. </if>
  170. <if test="serialno != null" >
  171. ITM_SERIALNO,
  172. </if>
  173. <if test="auth != null" >
  174. ITM_AUTH,
  175. </if>
  176. <if test="authtype != null" >
  177. ITM_AUTHTYPE,
  178. </if>
  179. <if test="authshape != null" >
  180. ITM_AUTHSHAPE,
  181. </if>
  182. <if test="level != null" >
  183. ITM_LEVEL,
  184. </if>
  185. <if test="stt != null" >
  186. ITM_STT,
  187. </if>
  188. <if test="icon != null" >
  189. ITM_ICON,
  190. </if>
  191. </trim>
  192. <trim prefix="values (" suffix=")" suffixOverrides="," >
  193. <if test="id != null" >
  194. #{id,jdbcType=VARCHAR},
  195. </if>
  196. <if test="name != null" >
  197. #{name,jdbcType=VARCHAR},
  198. </if>
  199. <if test="url != null" >
  200. #{url,jdbcType=VARCHAR},
  201. </if>
  202. <if test="serialno != null" >
  203. #{serialno,jdbcType=INTEGER},
  204. </if>
  205. <if test="auth != null" >
  206. #{auth,jdbcType=CHAR},
  207. </if>
  208. <if test="authtype != null" >
  209. #{authtype,jdbcType=CHAR},
  210. </if>
  211. <if test="authshape != null" >
  212. #{authshape,jdbcType=CHAR},
  213. </if>
  214. <if test="level != null" >
  215. #{level,jdbcType=CHAR},
  216. </if>
  217. <if test="stt != null" >
  218. #{stt,jdbcType=CHAR},
  219. </if>
  220. <if test="icon != null" >
  221. #{icon,jdbcType=VARCHAR},
  222. </if>
  223. </trim>
  224. </insert>
  225. <select id="countByExample" parameterType="com.minpay.db.table.model.ImItemExample" resultType="java.lang.Integer" >
  226. <!--
  227. WARNING - @mbggenerated
  228. This element is automatically generated by MyBatis Generator, do not modify.
  229. -->
  230. select count(*) from im_item
  231. <if test="_parameter != null" >
  232. <include refid="Example_Where_Clause" />
  233. </if>
  234. </select>
  235. <update id="updateByExampleSelective" parameterType="map" >
  236. <!--
  237. WARNING - @mbggenerated
  238. This element is automatically generated by MyBatis Generator, do not modify.
  239. -->
  240. update im_item
  241. <set >
  242. <if test="record.id != null" >
  243. ITM_ID = #{record.id,jdbcType=VARCHAR},
  244. </if>
  245. <if test="record.name != null" >
  246. ITM_NAME = #{record.name,jdbcType=VARCHAR},
  247. </if>
  248. <if test="record.url != null" >
  249. ITM_URL = #{record.url,jdbcType=VARCHAR},
  250. </if>
  251. <if test="record.serialno != null" >
  252. ITM_SERIALNO = #{record.serialno,jdbcType=INTEGER},
  253. </if>
  254. <if test="record.auth != null" >
  255. ITM_AUTH = #{record.auth,jdbcType=CHAR},
  256. </if>
  257. <if test="record.authtype != null" >
  258. ITM_AUTHTYPE = #{record.authtype,jdbcType=CHAR},
  259. </if>
  260. <if test="record.authshape != null" >
  261. ITM_AUTHSHAPE = #{record.authshape,jdbcType=CHAR},
  262. </if>
  263. <if test="record.level != null" >
  264. ITM_LEVEL = #{record.level,jdbcType=CHAR},
  265. </if>
  266. <if test="record.stt != null" >
  267. ITM_STT = #{record.stt,jdbcType=CHAR},
  268. </if>
  269. <if test="record.icon != null" >
  270. ITM_ICON = #{record.icon,jdbcType=VARCHAR},
  271. </if>
  272. </set>
  273. <if test="_parameter != null" >
  274. <include refid="Update_By_Example_Where_Clause" />
  275. </if>
  276. </update>
  277. <update id="updateByExample" parameterType="map" >
  278. <!--
  279. WARNING - @mbggenerated
  280. This element is automatically generated by MyBatis Generator, do not modify.
  281. -->
  282. update im_item
  283. set ITM_ID = #{record.id,jdbcType=VARCHAR},
  284. ITM_NAME = #{record.name,jdbcType=VARCHAR},
  285. ITM_URL = #{record.url,jdbcType=VARCHAR},
  286. ITM_SERIALNO = #{record.serialno,jdbcType=INTEGER},
  287. ITM_AUTH = #{record.auth,jdbcType=CHAR},
  288. ITM_AUTHTYPE = #{record.authtype,jdbcType=CHAR},
  289. ITM_AUTHSHAPE = #{record.authshape,jdbcType=CHAR},
  290. ITM_LEVEL = #{record.level,jdbcType=CHAR},
  291. ITM_STT = #{record.stt,jdbcType=CHAR},
  292. ITM_ICON = #{record.icon,jdbcType=VARCHAR}
  293. <if test="_parameter != null" >
  294. <include refid="Update_By_Example_Where_Clause" />
  295. </if>
  296. </update>
  297. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ImItem" >
  298. <!--
  299. WARNING - @mbggenerated
  300. This element is automatically generated by MyBatis Generator, do not modify.
  301. -->
  302. update im_item
  303. <set >
  304. <if test="name != null" >
  305. ITM_NAME = #{name,jdbcType=VARCHAR},
  306. </if>
  307. <if test="url != null" >
  308. ITM_URL = #{url,jdbcType=VARCHAR},
  309. </if>
  310. <if test="serialno != null" >
  311. ITM_SERIALNO = #{serialno,jdbcType=INTEGER},
  312. </if>
  313. <if test="auth != null" >
  314. ITM_AUTH = #{auth,jdbcType=CHAR},
  315. </if>
  316. <if test="authtype != null" >
  317. ITM_AUTHTYPE = #{authtype,jdbcType=CHAR},
  318. </if>
  319. <if test="authshape != null" >
  320. ITM_AUTHSHAPE = #{authshape,jdbcType=CHAR},
  321. </if>
  322. <if test="level != null" >
  323. ITM_LEVEL = #{level,jdbcType=CHAR},
  324. </if>
  325. <if test="stt != null" >
  326. ITM_STT = #{stt,jdbcType=CHAR},
  327. </if>
  328. <if test="icon != null" >
  329. ITM_ICON = #{icon,jdbcType=VARCHAR},
  330. </if>
  331. </set>
  332. where ITM_ID = #{id,jdbcType=VARCHAR}
  333. </update>
  334. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ImItem" >
  335. <!--
  336. WARNING - @mbggenerated
  337. This element is automatically generated by MyBatis Generator, do not modify.
  338. -->
  339. update im_item
  340. set ITM_NAME = #{name,jdbcType=VARCHAR},
  341. ITM_URL = #{url,jdbcType=VARCHAR},
  342. ITM_SERIALNO = #{serialno,jdbcType=INTEGER},
  343. ITM_AUTH = #{auth,jdbcType=CHAR},
  344. ITM_AUTHTYPE = #{authtype,jdbcType=CHAR},
  345. ITM_AUTHSHAPE = #{authshape,jdbcType=CHAR},
  346. ITM_LEVEL = #{level,jdbcType=CHAR},
  347. ITM_STT = #{stt,jdbcType=CHAR},
  348. ITM_ICON = #{icon,jdbcType=VARCHAR}
  349. where ITM_ID = #{id,jdbcType=VARCHAR}
  350. </update>
  351. </mapper>