ApFeedbackInfMapper.xml 14 KB

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