ApFileResourcesMapper.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  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.ApFileResourcesMapper">
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ApFileResources">
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="AFR_ID" jdbcType="VARCHAR" property="id" />
  10. <result column="AFR_TYPE" jdbcType="VARCHAR" property="type" />
  11. <result column="AFR_NAME" jdbcType="VARCHAR" property="name" />
  12. <result column="AFR_URL" jdbcType="VARCHAR" property="url" />
  13. <result column="AFR_DATE" jdbcType="VARCHAR" property="date" />
  14. <result column="AFR_RESOURCE_TYPE" jdbcType="VARCHAR" property="resourceType" />
  15. <result column="AFR_RESOURCE_REL" jdbcType="VARCHAR" property="resourceRel" />
  16. <result column="AFR_REMARKS" jdbcType="VARCHAR" property="remarks" />
  17. <result column="AFR_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
  18. <result column="AFR_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
  19. <result column="AFR_MODIFY_USER" jdbcType="VARCHAR" property="modifyUser" />
  20. <result column="AFR_MODIFY_TIME" jdbcType="VARCHAR" property="modifyTime" />
  21. <result column="AFR_STATE" jdbcType="VARCHAR" property="state" />
  22. <result column="AFR_RETURN_URL" jdbcType="VARCHAR" property="returnUrl" />
  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="(" prefixOverrides="and" suffix=")">
  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 close=")" collection="criterion.value" item="listItem" open="(" 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="(" prefixOverrides="and" suffix=")">
  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 close=")" collection="criterion.value" item="listItem" open="(" 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. AFR_ID, AFR_TYPE, AFR_NAME, AFR_URL, AFR_DATE, AFR_RESOURCE_TYPE, AFR_RESOURCE_REL,
  96. AFR_REMARKS, AFR_CREATE_USER, AFR_CREATE_TIME, AFR_MODIFY_USER, AFR_MODIFY_TIME,
  97. AFR_STATE, AFR_RETURN_URL
  98. </sql>
  99. <select id="selectByExample" parameterType="com.minpay.db.table.model.ApFileResourcesExample" resultMap="BaseResultMap">
  100. <!--
  101. WARNING - @mbggenerated
  102. This element is automatically generated by MyBatis Generator, do not modify.
  103. -->
  104. select
  105. <if test="distinct">
  106. distinct
  107. </if>
  108. <include refid="Base_Column_List" />
  109. from ap_file_resources
  110. <if test="_parameter != null">
  111. <include refid="Example_Where_Clause" />
  112. </if>
  113. <if test="orderByClause != null">
  114. order by ${orderByClause}
  115. </if>
  116. </select>
  117. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  118. <!--
  119. WARNING - @mbggenerated
  120. This element is automatically generated by MyBatis Generator, do not modify.
  121. -->
  122. select
  123. <include refid="Base_Column_List" />
  124. from ap_file_resources
  125. where AFR_ID = #{id,jdbcType=VARCHAR}
  126. </select>
  127. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  128. <!--
  129. WARNING - @mbggenerated
  130. This element is automatically generated by MyBatis Generator, do not modify.
  131. -->
  132. delete from ap_file_resources
  133. where AFR_ID = #{id,jdbcType=VARCHAR}
  134. </delete>
  135. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ApFileResourcesExample">
  136. <!--
  137. WARNING - @mbggenerated
  138. This element is automatically generated by MyBatis Generator, do not modify.
  139. -->
  140. delete from ap_file_resources
  141. <if test="_parameter != null">
  142. <include refid="Example_Where_Clause" />
  143. </if>
  144. </delete>
  145. <insert id="insert" parameterType="com.minpay.db.table.model.ApFileResources">
  146. <!--
  147. WARNING - @mbggenerated
  148. This element is automatically generated by MyBatis Generator, do not modify.
  149. -->
  150. insert into ap_file_resources (AFR_ID, AFR_TYPE, AFR_NAME,
  151. AFR_URL, AFR_DATE, AFR_RESOURCE_TYPE,
  152. AFR_RESOURCE_REL, AFR_REMARKS, AFR_CREATE_USER,
  153. AFR_CREATE_TIME, AFR_MODIFY_USER, AFR_MODIFY_TIME,
  154. AFR_STATE, AFR_RETURN_URL)
  155. values (#{id,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
  156. #{url,jdbcType=VARCHAR}, #{date,jdbcType=VARCHAR}, #{resourceType,jdbcType=VARCHAR},
  157. #{resourceRel,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
  158. #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR},
  159. #{state,jdbcType=VARCHAR}, #{returnUrl,jdbcType=VARCHAR})
  160. </insert>
  161. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ApFileResources">
  162. <!--
  163. WARNING - @mbggenerated
  164. This element is automatically generated by MyBatis Generator, do not modify.
  165. -->
  166. insert into ap_file_resources
  167. <trim prefix="(" suffix=")" suffixOverrides=",">
  168. <if test="id != null">
  169. AFR_ID,
  170. </if>
  171. <if test="type != null">
  172. AFR_TYPE,
  173. </if>
  174. <if test="name != null">
  175. AFR_NAME,
  176. </if>
  177. <if test="url != null">
  178. AFR_URL,
  179. </if>
  180. <if test="date != null">
  181. AFR_DATE,
  182. </if>
  183. <if test="resourceType != null">
  184. AFR_RESOURCE_TYPE,
  185. </if>
  186. <if test="resourceRel != null">
  187. AFR_RESOURCE_REL,
  188. </if>
  189. <if test="remarks != null">
  190. AFR_REMARKS,
  191. </if>
  192. <if test="createUser != null">
  193. AFR_CREATE_USER,
  194. </if>
  195. <if test="createTime != null">
  196. AFR_CREATE_TIME,
  197. </if>
  198. <if test="modifyUser != null">
  199. AFR_MODIFY_USER,
  200. </if>
  201. <if test="modifyTime != null">
  202. AFR_MODIFY_TIME,
  203. </if>
  204. <if test="state != null">
  205. AFR_STATE,
  206. </if>
  207. <if test="returnUrl != null">
  208. AFR_RETURN_URL,
  209. </if>
  210. </trim>
  211. <trim prefix="values (" suffix=")" suffixOverrides=",">
  212. <if test="id != null">
  213. #{id,jdbcType=VARCHAR},
  214. </if>
  215. <if test="type != null">
  216. #{type,jdbcType=VARCHAR},
  217. </if>
  218. <if test="name != null">
  219. #{name,jdbcType=VARCHAR},
  220. </if>
  221. <if test="url != null">
  222. #{url,jdbcType=VARCHAR},
  223. </if>
  224. <if test="date != null">
  225. #{date,jdbcType=VARCHAR},
  226. </if>
  227. <if test="resourceType != null">
  228. #{resourceType,jdbcType=VARCHAR},
  229. </if>
  230. <if test="resourceRel != null">
  231. #{resourceRel,jdbcType=VARCHAR},
  232. </if>
  233. <if test="remarks != null">
  234. #{remarks,jdbcType=VARCHAR},
  235. </if>
  236. <if test="createUser != null">
  237. #{createUser,jdbcType=VARCHAR},
  238. </if>
  239. <if test="createTime != null">
  240. #{createTime,jdbcType=VARCHAR},
  241. </if>
  242. <if test="modifyUser != null">
  243. #{modifyUser,jdbcType=VARCHAR},
  244. </if>
  245. <if test="modifyTime != null">
  246. #{modifyTime,jdbcType=VARCHAR},
  247. </if>
  248. <if test="state != null">
  249. #{state,jdbcType=VARCHAR},
  250. </if>
  251. <if test="returnUrl != null">
  252. #{returnUrl,jdbcType=VARCHAR},
  253. </if>
  254. </trim>
  255. </insert>
  256. <select id="countByExample" parameterType="com.minpay.db.table.model.ApFileResourcesExample" resultType="java.lang.Integer">
  257. <!--
  258. WARNING - @mbggenerated
  259. This element is automatically generated by MyBatis Generator, do not modify.
  260. -->
  261. select count(*) from ap_file_resources
  262. <if test="_parameter != null">
  263. <include refid="Example_Where_Clause" />
  264. </if>
  265. </select>
  266. <update id="updateByExampleSelective" parameterType="map">
  267. <!--
  268. WARNING - @mbggenerated
  269. This element is automatically generated by MyBatis Generator, do not modify.
  270. -->
  271. update ap_file_resources
  272. <set>
  273. <if test="record.id != null">
  274. AFR_ID = #{record.id,jdbcType=VARCHAR},
  275. </if>
  276. <if test="record.type != null">
  277. AFR_TYPE = #{record.type,jdbcType=VARCHAR},
  278. </if>
  279. <if test="record.name != null">
  280. AFR_NAME = #{record.name,jdbcType=VARCHAR},
  281. </if>
  282. <if test="record.url != null">
  283. AFR_URL = #{record.url,jdbcType=VARCHAR},
  284. </if>
  285. <if test="record.date != null">
  286. AFR_DATE = #{record.date,jdbcType=VARCHAR},
  287. </if>
  288. <if test="record.resourceType != null">
  289. AFR_RESOURCE_TYPE = #{record.resourceType,jdbcType=VARCHAR},
  290. </if>
  291. <if test="record.resourceRel != null">
  292. AFR_RESOURCE_REL = #{record.resourceRel,jdbcType=VARCHAR},
  293. </if>
  294. <if test="record.remarks != null">
  295. AFR_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  296. </if>
  297. <if test="record.createUser != null">
  298. AFR_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  299. </if>
  300. <if test="record.createTime != null">
  301. AFR_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  302. </if>
  303. <if test="record.modifyUser != null">
  304. AFR_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  305. </if>
  306. <if test="record.modifyTime != null">
  307. AFR_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  308. </if>
  309. <if test="record.state != null">
  310. AFR_STATE = #{record.state,jdbcType=VARCHAR},
  311. </if>
  312. <if test="record.returnUrl != null">
  313. AFR_RETURN_URL = #{record.returnUrl,jdbcType=VARCHAR},
  314. </if>
  315. </set>
  316. <if test="_parameter != null">
  317. <include refid="Update_By_Example_Where_Clause" />
  318. </if>
  319. </update>
  320. <update id="updateByExample" parameterType="map">
  321. <!--
  322. WARNING - @mbggenerated
  323. This element is automatically generated by MyBatis Generator, do not modify.
  324. -->
  325. update ap_file_resources
  326. set AFR_ID = #{record.id,jdbcType=VARCHAR},
  327. AFR_TYPE = #{record.type,jdbcType=VARCHAR},
  328. AFR_NAME = #{record.name,jdbcType=VARCHAR},
  329. AFR_URL = #{record.url,jdbcType=VARCHAR},
  330. AFR_DATE = #{record.date,jdbcType=VARCHAR},
  331. AFR_RESOURCE_TYPE = #{record.resourceType,jdbcType=VARCHAR},
  332. AFR_RESOURCE_REL = #{record.resourceRel,jdbcType=VARCHAR},
  333. AFR_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  334. AFR_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  335. AFR_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  336. AFR_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  337. AFR_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  338. AFR_STATE = #{record.state,jdbcType=VARCHAR},
  339. AFR_RETURN_URL = #{record.returnUrl,jdbcType=VARCHAR}
  340. <if test="_parameter != null">
  341. <include refid="Update_By_Example_Where_Clause" />
  342. </if>
  343. </update>
  344. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ApFileResources">
  345. <!--
  346. WARNING - @mbggenerated
  347. This element is automatically generated by MyBatis Generator, do not modify.
  348. -->
  349. update ap_file_resources
  350. <set>
  351. <if test="type != null">
  352. AFR_TYPE = #{type,jdbcType=VARCHAR},
  353. </if>
  354. <if test="name != null">
  355. AFR_NAME = #{name,jdbcType=VARCHAR},
  356. </if>
  357. <if test="url != null">
  358. AFR_URL = #{url,jdbcType=VARCHAR},
  359. </if>
  360. <if test="date != null">
  361. AFR_DATE = #{date,jdbcType=VARCHAR},
  362. </if>
  363. <if test="resourceType != null">
  364. AFR_RESOURCE_TYPE = #{resourceType,jdbcType=VARCHAR},
  365. </if>
  366. <if test="resourceRel != null">
  367. AFR_RESOURCE_REL = #{resourceRel,jdbcType=VARCHAR},
  368. </if>
  369. <if test="remarks != null">
  370. AFR_REMARKS = #{remarks,jdbcType=VARCHAR},
  371. </if>
  372. <if test="createUser != null">
  373. AFR_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  374. </if>
  375. <if test="createTime != null">
  376. AFR_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  377. </if>
  378. <if test="modifyUser != null">
  379. AFR_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  380. </if>
  381. <if test="modifyTime != null">
  382. AFR_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  383. </if>
  384. <if test="state != null">
  385. AFR_STATE = #{state,jdbcType=VARCHAR},
  386. </if>
  387. <if test="returnUrl != null">
  388. AFR_RETURN_URL = #{returnUrl,jdbcType=VARCHAR},
  389. </if>
  390. </set>
  391. where AFR_ID = #{id,jdbcType=VARCHAR}
  392. </update>
  393. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ApFileResources">
  394. <!--
  395. WARNING - @mbggenerated
  396. This element is automatically generated by MyBatis Generator, do not modify.
  397. -->
  398. update ap_file_resources
  399. set AFR_TYPE = #{type,jdbcType=VARCHAR},
  400. AFR_NAME = #{name,jdbcType=VARCHAR},
  401. AFR_URL = #{url,jdbcType=VARCHAR},
  402. AFR_DATE = #{date,jdbcType=VARCHAR},
  403. AFR_RESOURCE_TYPE = #{resourceType,jdbcType=VARCHAR},
  404. AFR_RESOURCE_REL = #{resourceRel,jdbcType=VARCHAR},
  405. AFR_REMARKS = #{remarks,jdbcType=VARCHAR},
  406. AFR_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  407. AFR_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  408. AFR_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  409. AFR_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  410. AFR_STATE = #{state,jdbcType=VARCHAR},
  411. AFR_RETURN_URL = #{returnUrl,jdbcType=VARCHAR}
  412. where AFR_ID = #{id,jdbcType=VARCHAR}
  413. </update>
  414. </mapper>