VmActivityFreeMapper.xml 18 KB

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