PubMsgInfMapper.xml 15 KB

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