ImItemMapper.xml 13 KB

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