ApOrderPaymentMapper.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.ApOrderPaymentMapper" >
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ApOrderPayment" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="AOP_ID" property="id" jdbcType="VARCHAR" />
  10. <result column="AOP_TYPE" property="type" jdbcType="VARCHAR" />
  11. <result column="AOP_PRICE_TYPE" property="priceType" jdbcType="VARCHAR" />
  12. <result column="AOP_PAY_TYPE" property="payType" jdbcType="VARCHAR" />
  13. <result column="AOP_COMPANY_ID" property="companyId" jdbcType="VARCHAR" />
  14. <result column="AOP_ORDER_ID" property="orderId" jdbcType="VARCHAR" />
  15. <result column="AOP_ACCOUNT_ID" property="accountId" jdbcType="VARCHAR" />
  16. <result column="AOP_PAY_PRICE" property="payPrice" jdbcType="VARCHAR" />
  17. <result column="AOP_REMARKS" property="remarks" jdbcType="VARCHAR" />
  18. <result column="AOP_CREATE_USER" property="createUser" jdbcType="VARCHAR" />
  19. <result column="AOP_CREATE_TIME" property="createTime" jdbcType="VARCHAR" />
  20. <result column="AOP_MODIFY_USER" property="modifyUser" jdbcType="VARCHAR" />
  21. <result column="AOP_MODIFY_TIME" property="modifyTime" jdbcType="VARCHAR" />
  22. <result column="AOP_STATE" property="state" jdbcType="VARCHAR" />
  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. AOP_ID, AOP_TYPE, AOP_PRICE_TYPE, AOP_PAY_TYPE, AOP_COMPANY_ID, AOP_ORDER_ID, AOP_ACCOUNT_ID,
  96. AOP_PAY_PRICE, AOP_REMARKS, AOP_CREATE_USER, AOP_CREATE_TIME, AOP_MODIFY_USER, AOP_MODIFY_TIME,
  97. AOP_STATE
  98. </sql>
  99. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ApOrderPaymentExample" >
  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_order_payment
  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" resultMap="BaseResultMap" parameterType="java.lang.String" >
  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_order_payment
  125. where AOP_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_order_payment
  133. where AOP_ID = #{id,jdbcType=VARCHAR}
  134. </delete>
  135. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ApOrderPaymentExample" >
  136. <!--
  137. WARNING - @mbggenerated
  138. This element is automatically generated by MyBatis Generator, do not modify.
  139. -->
  140. delete from ap_order_payment
  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.ApOrderPayment" >
  146. <!--
  147. WARNING - @mbggenerated
  148. This element is automatically generated by MyBatis Generator, do not modify.
  149. -->
  150. insert into ap_order_payment (AOP_ID, AOP_TYPE, AOP_PRICE_TYPE,
  151. AOP_PAY_TYPE, AOP_COMPANY_ID, AOP_ORDER_ID,
  152. AOP_ACCOUNT_ID, AOP_PAY_PRICE, AOP_REMARKS,
  153. AOP_CREATE_USER, AOP_CREATE_TIME, AOP_MODIFY_USER,
  154. AOP_MODIFY_TIME, AOP_STATE)
  155. values (#{id,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{priceType,jdbcType=VARCHAR},
  156. #{payType,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR},
  157. #{accountId,jdbcType=VARCHAR}, #{payPrice,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR},
  158. #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR},
  159. #{modifyTime,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR})
  160. </insert>
  161. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ApOrderPayment" >
  162. <!--
  163. WARNING - @mbggenerated
  164. This element is automatically generated by MyBatis Generator, do not modify.
  165. -->
  166. insert into ap_order_payment
  167. <trim prefix="(" suffix=")" suffixOverrides="," >
  168. <if test="id != null" >
  169. AOP_ID,
  170. </if>
  171. <if test="type != null" >
  172. AOP_TYPE,
  173. </if>
  174. <if test="priceType != null" >
  175. AOP_PRICE_TYPE,
  176. </if>
  177. <if test="payType != null" >
  178. AOP_PAY_TYPE,
  179. </if>
  180. <if test="companyId != null" >
  181. AOP_COMPANY_ID,
  182. </if>
  183. <if test="orderId != null" >
  184. AOP_ORDER_ID,
  185. </if>
  186. <if test="accountId != null" >
  187. AOP_ACCOUNT_ID,
  188. </if>
  189. <if test="payPrice != null" >
  190. AOP_PAY_PRICE,
  191. </if>
  192. <if test="remarks != null" >
  193. AOP_REMARKS,
  194. </if>
  195. <if test="createUser != null" >
  196. AOP_CREATE_USER,
  197. </if>
  198. <if test="createTime != null" >
  199. AOP_CREATE_TIME,
  200. </if>
  201. <if test="modifyUser != null" >
  202. AOP_MODIFY_USER,
  203. </if>
  204. <if test="modifyTime != null" >
  205. AOP_MODIFY_TIME,
  206. </if>
  207. <if test="state != null" >
  208. AOP_STATE,
  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="priceType != null" >
  219. #{priceType,jdbcType=VARCHAR},
  220. </if>
  221. <if test="payType != null" >
  222. #{payType,jdbcType=VARCHAR},
  223. </if>
  224. <if test="companyId != null" >
  225. #{companyId,jdbcType=VARCHAR},
  226. </if>
  227. <if test="orderId != null" >
  228. #{orderId,jdbcType=VARCHAR},
  229. </if>
  230. <if test="accountId != null" >
  231. #{accountId,jdbcType=VARCHAR},
  232. </if>
  233. <if test="payPrice != null" >
  234. #{payPrice,jdbcType=VARCHAR},
  235. </if>
  236. <if test="remarks != null" >
  237. #{remarks,jdbcType=VARCHAR},
  238. </if>
  239. <if test="createUser != null" >
  240. #{createUser,jdbcType=VARCHAR},
  241. </if>
  242. <if test="createTime != null" >
  243. #{createTime,jdbcType=VARCHAR},
  244. </if>
  245. <if test="modifyUser != null" >
  246. #{modifyUser,jdbcType=VARCHAR},
  247. </if>
  248. <if test="modifyTime != null" >
  249. #{modifyTime,jdbcType=VARCHAR},
  250. </if>
  251. <if test="state != null" >
  252. #{state,jdbcType=VARCHAR},
  253. </if>
  254. </trim>
  255. </insert>
  256. <select id="countByExample" parameterType="com.minpay.db.table.model.ApOrderPaymentExample" 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_order_payment
  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_order_payment
  272. <set >
  273. <if test="record.id != null" >
  274. AOP_ID = #{record.id,jdbcType=VARCHAR},
  275. </if>
  276. <if test="record.type != null" >
  277. AOP_TYPE = #{record.type,jdbcType=VARCHAR},
  278. </if>
  279. <if test="record.priceType != null" >
  280. AOP_PRICE_TYPE = #{record.priceType,jdbcType=VARCHAR},
  281. </if>
  282. <if test="record.payType != null" >
  283. AOP_PAY_TYPE = #{record.payType,jdbcType=VARCHAR},
  284. </if>
  285. <if test="record.companyId != null" >
  286. AOP_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR},
  287. </if>
  288. <if test="record.orderId != null" >
  289. AOP_ORDER_ID = #{record.orderId,jdbcType=VARCHAR},
  290. </if>
  291. <if test="record.accountId != null" >
  292. AOP_ACCOUNT_ID = #{record.accountId,jdbcType=VARCHAR},
  293. </if>
  294. <if test="record.payPrice != null" >
  295. AOP_PAY_PRICE = #{record.payPrice,jdbcType=VARCHAR},
  296. </if>
  297. <if test="record.remarks != null" >
  298. AOP_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  299. </if>
  300. <if test="record.createUser != null" >
  301. AOP_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  302. </if>
  303. <if test="record.createTime != null" >
  304. AOP_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  305. </if>
  306. <if test="record.modifyUser != null" >
  307. AOP_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  308. </if>
  309. <if test="record.modifyTime != null" >
  310. AOP_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  311. </if>
  312. <if test="record.state != null" >
  313. AOP_STATE = #{record.state,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_order_payment
  326. set AOP_ID = #{record.id,jdbcType=VARCHAR},
  327. AOP_TYPE = #{record.type,jdbcType=VARCHAR},
  328. AOP_PRICE_TYPE = #{record.priceType,jdbcType=VARCHAR},
  329. AOP_PAY_TYPE = #{record.payType,jdbcType=VARCHAR},
  330. AOP_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR},
  331. AOP_ORDER_ID = #{record.orderId,jdbcType=VARCHAR},
  332. AOP_ACCOUNT_ID = #{record.accountId,jdbcType=VARCHAR},
  333. AOP_PAY_PRICE = #{record.payPrice,jdbcType=VARCHAR},
  334. AOP_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  335. AOP_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  336. AOP_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  337. AOP_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  338. AOP_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  339. AOP_STATE = #{record.state,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.ApOrderPayment" >
  345. <!--
  346. WARNING - @mbggenerated
  347. This element is automatically generated by MyBatis Generator, do not modify.
  348. -->
  349. update ap_order_payment
  350. <set >
  351. <if test="type != null" >
  352. AOP_TYPE = #{type,jdbcType=VARCHAR},
  353. </if>
  354. <if test="priceType != null" >
  355. AOP_PRICE_TYPE = #{priceType,jdbcType=VARCHAR},
  356. </if>
  357. <if test="payType != null" >
  358. AOP_PAY_TYPE = #{payType,jdbcType=VARCHAR},
  359. </if>
  360. <if test="companyId != null" >
  361. AOP_COMPANY_ID = #{companyId,jdbcType=VARCHAR},
  362. </if>
  363. <if test="orderId != null" >
  364. AOP_ORDER_ID = #{orderId,jdbcType=VARCHAR},
  365. </if>
  366. <if test="accountId != null" >
  367. AOP_ACCOUNT_ID = #{accountId,jdbcType=VARCHAR},
  368. </if>
  369. <if test="payPrice != null" >
  370. AOP_PAY_PRICE = #{payPrice,jdbcType=VARCHAR},
  371. </if>
  372. <if test="remarks != null" >
  373. AOP_REMARKS = #{remarks,jdbcType=VARCHAR},
  374. </if>
  375. <if test="createUser != null" >
  376. AOP_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  377. </if>
  378. <if test="createTime != null" >
  379. AOP_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  380. </if>
  381. <if test="modifyUser != null" >
  382. AOP_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  383. </if>
  384. <if test="modifyTime != null" >
  385. AOP_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  386. </if>
  387. <if test="state != null" >
  388. AOP_STATE = #{state,jdbcType=VARCHAR},
  389. </if>
  390. </set>
  391. where AOP_ID = #{id,jdbcType=VARCHAR}
  392. </update>
  393. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ApOrderPayment" >
  394. <!--
  395. WARNING - @mbggenerated
  396. This element is automatically generated by MyBatis Generator, do not modify.
  397. -->
  398. update ap_order_payment
  399. set AOP_TYPE = #{type,jdbcType=VARCHAR},
  400. AOP_PRICE_TYPE = #{priceType,jdbcType=VARCHAR},
  401. AOP_PAY_TYPE = #{payType,jdbcType=VARCHAR},
  402. AOP_COMPANY_ID = #{companyId,jdbcType=VARCHAR},
  403. AOP_ORDER_ID = #{orderId,jdbcType=VARCHAR},
  404. AOP_ACCOUNT_ID = #{accountId,jdbcType=VARCHAR},
  405. AOP_PAY_PRICE = #{payPrice,jdbcType=VARCHAR},
  406. AOP_REMARKS = #{remarks,jdbcType=VARCHAR},
  407. AOP_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  408. AOP_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  409. AOP_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  410. AOP_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  411. AOP_STATE = #{state,jdbcType=VARCHAR}
  412. where AOP_ID = #{id,jdbcType=VARCHAR}
  413. </update>
  414. </mapper>