TransactionJournalMapper.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840
  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.platform.dao.TransactionJournalMapper">
  4. <resultMap id="BaseResultMap" type="com.platform.pojo.TransactionJournal">
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="id" jdbcType="INTEGER" property="id" />
  10. <result column="trade_channel" jdbcType="VARCHAR" property="tradeChannel" />
  11. <result column="retcode" jdbcType="VARCHAR" property="retcode" />
  12. <result column="retmsg" jdbcType="VARCHAR" property="retmsg" />
  13. <result column="trade_mode" jdbcType="VARCHAR" property="tradeMode" />
  14. <result column="trade_state" jdbcType="VARCHAR" property="tradeState" />
  15. <result column="pay_info" jdbcType="VARCHAR" property="payInfo" />
  16. <result column="trans_channel" jdbcType="VARCHAR" property="transChannel" />
  17. <result column="partner" jdbcType="VARCHAR" property="partner" />
  18. <result column="subpartner" jdbcType="VARCHAR" property="subpartner" />
  19. <result column="out_trade_no" jdbcType="VARCHAR" property="outTradeNo" />
  20. <result column="transaction_id" jdbcType="VARCHAR" property="transactionId" />
  21. <result column="bank_type" jdbcType="VARCHAR" property="bankType" />
  22. <result column="bank_transno" jdbcType="VARCHAR" property="bankTransno" />
  23. <result column="total_fee" jdbcType="REAL" property="totalFee" />
  24. <result column="fee_type" jdbcType="VARCHAR" property="feeType" />
  25. <result column="notify_id" jdbcType="VARCHAR" property="notifyId" />
  26. <result column="time_end" jdbcType="VARCHAR" property="timeEnd" />
  27. <result column="transport_fee" jdbcType="REAL" property="transportFee" />
  28. <result column="product_fee" jdbcType="REAL" property="productFee" />
  29. <result column="discount" jdbcType="REAL" property="discount" />
  30. <result column="buyer_alias" jdbcType="VARCHAR" property="buyerAlias" />
  31. <result column="attach" jdbcType="VARCHAR" property="attach" />
  32. <result column="out_refund_no" jdbcType="VARCHAR" property="outRefundNo" />
  33. <result column="refund_id" jdbcType="VARCHAR" property="refundId" />
  34. <result column="refund_channel" jdbcType="VARCHAR" property="refundChannel" />
  35. <result column="refund_fee" jdbcType="VARCHAR" property="refundFee" />
  36. <result column="refund_status" jdbcType="VARCHAR" property="refundStatus" />
  37. <result column="refund_state" jdbcType="VARCHAR" property="refundState" />
  38. <result column="recv_user_id" jdbcType="VARCHAR" property="recvUserId" />
  39. <result column="reccv_user_name" jdbcType="VARCHAR" property="reccvUserName" />
  40. <result column="refund_type" jdbcType="VARCHAR" property="refundType" />
  41. <result column="clear_state" jdbcType="VARCHAR" property="clearState" />
  42. <result column="trade_type" jdbcType="VARCHAR" property="tradeType" />
  43. <result column="is_split" jdbcType="VARCHAR" property="isSplit" />
  44. <result column="plat_charge" jdbcType="VARCHAR" property="platCharge" />
  45. <result column="sub_plat_charge" jdbcType="VARCHAR" property="subPlatCharge" />
  46. <result column="note" jdbcType="VARCHAR" property="note" />
  47. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  48. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  49. <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
  50. </resultMap>
  51. <sql id="Example_Where_Clause">
  52. <!--
  53. WARNING - @mbggenerated
  54. This element is automatically generated by MyBatis Generator, do not modify.
  55. -->
  56. <where>
  57. <foreach collection="oredCriteria" item="criteria" separator="or">
  58. <if test="criteria.valid">
  59. <trim prefix="(" prefixOverrides="and" suffix=")">
  60. <foreach collection="criteria.criteria" item="criterion">
  61. <choose>
  62. <when test="criterion.noValue">
  63. and ${criterion.condition}
  64. </when>
  65. <when test="criterion.singleValue">
  66. and ${criterion.condition} #{criterion.value}
  67. </when>
  68. <when test="criterion.betweenValue">
  69. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  70. </when>
  71. <when test="criterion.listValue">
  72. and ${criterion.condition}
  73. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  74. #{listItem}
  75. </foreach>
  76. </when>
  77. </choose>
  78. </foreach>
  79. </trim>
  80. </if>
  81. </foreach>
  82. </where>
  83. </sql>
  84. <sql id="Update_By_Example_Where_Clause">
  85. <!--
  86. WARNING - @mbggenerated
  87. This element is automatically generated by MyBatis Generator, do not modify.
  88. -->
  89. <where>
  90. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  91. <if test="criteria.valid">
  92. <trim prefix="(" prefixOverrides="and" suffix=")">
  93. <foreach collection="criteria.criteria" item="criterion">
  94. <choose>
  95. <when test="criterion.noValue">
  96. and ${criterion.condition}
  97. </when>
  98. <when test="criterion.singleValue">
  99. and ${criterion.condition} #{criterion.value}
  100. </when>
  101. <when test="criterion.betweenValue">
  102. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  103. </when>
  104. <when test="criterion.listValue">
  105. and ${criterion.condition}
  106. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  107. #{listItem}
  108. </foreach>
  109. </when>
  110. </choose>
  111. </foreach>
  112. </trim>
  113. </if>
  114. </foreach>
  115. </where>
  116. </sql>
  117. <sql id="Base_Column_List">
  118. <!--
  119. WARNING - @mbggenerated
  120. This element is automatically generated by MyBatis Generator, do not modify.
  121. -->
  122. id, trade_channel, retcode, retmsg, trade_mode, trade_state, pay_info, trans_channel,
  123. partner, subpartner, out_trade_no, transaction_id, bank_type, bank_transno, total_fee,
  124. fee_type, notify_id, time_end, transport_fee, product_fee, discount, buyer_alias,
  125. attach, out_refund_no, refund_id, refund_channel, refund_fee, refund_status, refund_state,
  126. recv_user_id, reccv_user_name, refund_type, clear_state, trade_type, is_split, plat_charge,
  127. sub_plat_charge, note, create_time, update_time, delete_flag
  128. </sql>
  129. <select id="selectByExample" parameterType="com.platform.pojo.TransactionJournalExample" resultMap="BaseResultMap">
  130. <!--
  131. WARNING - @mbggenerated
  132. This element is automatically generated by MyBatis Generator, do not modify.
  133. -->
  134. select
  135. <if test="distinct">
  136. distinct
  137. </if>
  138. <include refid="Base_Column_List" />
  139. from transaction_journal
  140. <if test="_parameter != null">
  141. <include refid="Example_Where_Clause" />
  142. </if>
  143. <if test="orderByClause != null">
  144. order by ${orderByClause}
  145. </if>
  146. </select>
  147. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  148. <!--
  149. WARNING - @mbggenerated
  150. This element is automatically generated by MyBatis Generator, do not modify.
  151. -->
  152. select
  153. <include refid="Base_Column_List" />
  154. from transaction_journal
  155. where id = #{id,jdbcType=INTEGER}
  156. </select>
  157. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  158. <!--
  159. WARNING - @mbggenerated
  160. This element is automatically generated by MyBatis Generator, do not modify.
  161. -->
  162. delete from transaction_journal
  163. where id = #{id,jdbcType=INTEGER}
  164. </delete>
  165. <delete id="deleteByExample" parameterType="com.platform.pojo.TransactionJournalExample">
  166. <!--
  167. WARNING - @mbggenerated
  168. This element is automatically generated by MyBatis Generator, do not modify.
  169. -->
  170. delete from transaction_journal
  171. <if test="_parameter != null">
  172. <include refid="Example_Where_Clause" />
  173. </if>
  174. </delete>
  175. <insert id="insert" parameterType="com.platform.pojo.TransactionJournal">
  176. <!--
  177. WARNING - @mbggenerated
  178. This element is automatically generated by MyBatis Generator, do not modify.
  179. -->
  180. insert into transaction_journal (id, trade_channel, retcode,
  181. retmsg, trade_mode, trade_state,
  182. pay_info, trans_channel, partner,
  183. subpartner, out_trade_no, transaction_id,
  184. bank_type, bank_transno, total_fee,
  185. fee_type, notify_id, time_end,
  186. transport_fee, product_fee, discount,
  187. buyer_alias, attach, out_refund_no,
  188. refund_id, refund_channel, refund_fee,
  189. refund_status, refund_state, recv_user_id,
  190. reccv_user_name, refund_type, clear_state,
  191. trade_type, is_split, plat_charge,
  192. sub_plat_charge, note, create_time,
  193. update_time, delete_flag)
  194. values (#{id,jdbcType=INTEGER}, #{tradeChannel,jdbcType=VARCHAR}, #{retcode,jdbcType=VARCHAR},
  195. #{retmsg,jdbcType=VARCHAR}, #{tradeMode,jdbcType=VARCHAR}, #{tradeState,jdbcType=VARCHAR},
  196. #{payInfo,jdbcType=VARCHAR}, #{transChannel,jdbcType=VARCHAR}, #{partner,jdbcType=VARCHAR},
  197. #{subpartner,jdbcType=VARCHAR}, #{outTradeNo,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR},
  198. #{bankType,jdbcType=VARCHAR}, #{bankTransno,jdbcType=VARCHAR}, #{totalFee,jdbcType=REAL},
  199. #{feeType,jdbcType=VARCHAR}, #{notifyId,jdbcType=VARCHAR}, #{timeEnd,jdbcType=VARCHAR},
  200. #{transportFee,jdbcType=REAL}, #{productFee,jdbcType=REAL}, #{discount,jdbcType=REAL},
  201. #{buyerAlias,jdbcType=VARCHAR}, #{attach,jdbcType=VARCHAR}, #{outRefundNo,jdbcType=VARCHAR},
  202. #{refundId,jdbcType=VARCHAR}, #{refundChannel,jdbcType=VARCHAR}, #{refundFee,jdbcType=VARCHAR},
  203. #{refundStatus,jdbcType=VARCHAR}, #{refundState,jdbcType=VARCHAR}, #{recvUserId,jdbcType=VARCHAR},
  204. #{reccvUserName,jdbcType=VARCHAR}, #{refundType,jdbcType=VARCHAR}, #{clearState,jdbcType=VARCHAR},
  205. #{tradeType,jdbcType=VARCHAR}, #{isSplit,jdbcType=VARCHAR}, #{platCharge,jdbcType=VARCHAR},
  206. #{subPlatCharge,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
  207. #{updateTime,jdbcType=TIMESTAMP}, #{deleteFlag,jdbcType=INTEGER})
  208. </insert>
  209. <insert id="insertSelective" keyProperty="id" parameterType="com.platform.pojo.TransactionJournal" useGeneratedKeys="true">
  210. <!--
  211. WARNING - @mbggenerated
  212. This element is automatically generated by MyBatis Generator, do not modify.
  213. -->
  214. insert into transaction_journal
  215. <trim prefix="(" suffix=")" suffixOverrides=",">
  216. <if test="id != null">
  217. id,
  218. </if>
  219. <if test="tradeChannel != null">
  220. trade_channel,
  221. </if>
  222. <if test="retcode != null">
  223. retcode,
  224. </if>
  225. <if test="retmsg != null">
  226. retmsg,
  227. </if>
  228. <if test="tradeMode != null">
  229. trade_mode,
  230. </if>
  231. <if test="tradeState != null">
  232. trade_state,
  233. </if>
  234. <if test="payInfo != null">
  235. pay_info,
  236. </if>
  237. <if test="transChannel != null">
  238. trans_channel,
  239. </if>
  240. <if test="partner != null">
  241. partner,
  242. </if>
  243. <if test="subpartner != null">
  244. subpartner,
  245. </if>
  246. <if test="outTradeNo != null">
  247. out_trade_no,
  248. </if>
  249. <if test="transactionId != null">
  250. transaction_id,
  251. </if>
  252. <if test="bankType != null">
  253. bank_type,
  254. </if>
  255. <if test="bankTransno != null">
  256. bank_transno,
  257. </if>
  258. <if test="totalFee != null">
  259. total_fee,
  260. </if>
  261. <if test="feeType != null">
  262. fee_type,
  263. </if>
  264. <if test="notifyId != null">
  265. notify_id,
  266. </if>
  267. <if test="timeEnd != null">
  268. time_end,
  269. </if>
  270. <if test="transportFee != null">
  271. transport_fee,
  272. </if>
  273. <if test="productFee != null">
  274. product_fee,
  275. </if>
  276. <if test="discount != null">
  277. discount,
  278. </if>
  279. <if test="buyerAlias != null">
  280. buyer_alias,
  281. </if>
  282. <if test="attach != null">
  283. attach,
  284. </if>
  285. <if test="outRefundNo != null">
  286. out_refund_no,
  287. </if>
  288. <if test="refundId != null">
  289. refund_id,
  290. </if>
  291. <if test="refundChannel != null">
  292. refund_channel,
  293. </if>
  294. <if test="refundFee != null">
  295. refund_fee,
  296. </if>
  297. <if test="refundStatus != null">
  298. refund_status,
  299. </if>
  300. <if test="refundState != null">
  301. refund_state,
  302. </if>
  303. <if test="recvUserId != null">
  304. recv_user_id,
  305. </if>
  306. <if test="reccvUserName != null">
  307. reccv_user_name,
  308. </if>
  309. <if test="refundType != null">
  310. refund_type,
  311. </if>
  312. <if test="clearState != null">
  313. clear_state,
  314. </if>
  315. <if test="tradeType != null">
  316. trade_type,
  317. </if>
  318. <if test="isSplit != null">
  319. is_split,
  320. </if>
  321. <if test="platCharge != null">
  322. plat_charge,
  323. </if>
  324. <if test="subPlatCharge != null">
  325. sub_plat_charge,
  326. </if>
  327. <if test="note != null">
  328. note,
  329. </if>
  330. <if test="createTime != null">
  331. create_time,
  332. </if>
  333. <if test="updateTime != null">
  334. update_time,
  335. </if>
  336. <if test="deleteFlag != null">
  337. delete_flag,
  338. </if>
  339. </trim>
  340. <trim prefix="values (" suffix=")" suffixOverrides=",">
  341. <if test="id != null">
  342. #{id,jdbcType=INTEGER},
  343. </if>
  344. <if test="tradeChannel != null">
  345. #{tradeChannel,jdbcType=VARCHAR},
  346. </if>
  347. <if test="retcode != null">
  348. #{retcode,jdbcType=VARCHAR},
  349. </if>
  350. <if test="retmsg != null">
  351. #{retmsg,jdbcType=VARCHAR},
  352. </if>
  353. <if test="tradeMode != null">
  354. #{tradeMode,jdbcType=VARCHAR},
  355. </if>
  356. <if test="tradeState != null">
  357. #{tradeState,jdbcType=VARCHAR},
  358. </if>
  359. <if test="payInfo != null">
  360. #{payInfo,jdbcType=VARCHAR},
  361. </if>
  362. <if test="transChannel != null">
  363. #{transChannel,jdbcType=VARCHAR},
  364. </if>
  365. <if test="partner != null">
  366. #{partner,jdbcType=VARCHAR},
  367. </if>
  368. <if test="subpartner != null">
  369. #{subpartner,jdbcType=VARCHAR},
  370. </if>
  371. <if test="outTradeNo != null">
  372. #{outTradeNo,jdbcType=VARCHAR},
  373. </if>
  374. <if test="transactionId != null">
  375. #{transactionId,jdbcType=VARCHAR},
  376. </if>
  377. <if test="bankType != null">
  378. #{bankType,jdbcType=VARCHAR},
  379. </if>
  380. <if test="bankTransno != null">
  381. #{bankTransno,jdbcType=VARCHAR},
  382. </if>
  383. <if test="totalFee != null">
  384. #{totalFee,jdbcType=REAL},
  385. </if>
  386. <if test="feeType != null">
  387. #{feeType,jdbcType=VARCHAR},
  388. </if>
  389. <if test="notifyId != null">
  390. #{notifyId,jdbcType=VARCHAR},
  391. </if>
  392. <if test="timeEnd != null">
  393. #{timeEnd,jdbcType=VARCHAR},
  394. </if>
  395. <if test="transportFee != null">
  396. #{transportFee,jdbcType=REAL},
  397. </if>
  398. <if test="productFee != null">
  399. #{productFee,jdbcType=REAL},
  400. </if>
  401. <if test="discount != null">
  402. #{discount,jdbcType=REAL},
  403. </if>
  404. <if test="buyerAlias != null">
  405. #{buyerAlias,jdbcType=VARCHAR},
  406. </if>
  407. <if test="attach != null">
  408. #{attach,jdbcType=VARCHAR},
  409. </if>
  410. <if test="outRefundNo != null">
  411. #{outRefundNo,jdbcType=VARCHAR},
  412. </if>
  413. <if test="refundId != null">
  414. #{refundId,jdbcType=VARCHAR},
  415. </if>
  416. <if test="refundChannel != null">
  417. #{refundChannel,jdbcType=VARCHAR},
  418. </if>
  419. <if test="refundFee != null">
  420. #{refundFee,jdbcType=VARCHAR},
  421. </if>
  422. <if test="refundStatus != null">
  423. #{refundStatus,jdbcType=VARCHAR},
  424. </if>
  425. <if test="refundState != null">
  426. #{refundState,jdbcType=VARCHAR},
  427. </if>
  428. <if test="recvUserId != null">
  429. #{recvUserId,jdbcType=VARCHAR},
  430. </if>
  431. <if test="reccvUserName != null">
  432. #{reccvUserName,jdbcType=VARCHAR},
  433. </if>
  434. <if test="refundType != null">
  435. #{refundType,jdbcType=VARCHAR},
  436. </if>
  437. <if test="clearState != null">
  438. #{clearState,jdbcType=VARCHAR},
  439. </if>
  440. <if test="tradeType != null">
  441. #{tradeType,jdbcType=VARCHAR},
  442. </if>
  443. <if test="isSplit != null">
  444. #{isSplit,jdbcType=VARCHAR},
  445. </if>
  446. <if test="platCharge != null">
  447. #{platCharge,jdbcType=VARCHAR},
  448. </if>
  449. <if test="subPlatCharge != null">
  450. #{subPlatCharge,jdbcType=VARCHAR},
  451. </if>
  452. <if test="note != null">
  453. #{note,jdbcType=VARCHAR},
  454. </if>
  455. <if test="createTime != null">
  456. #{createTime,jdbcType=TIMESTAMP},
  457. </if>
  458. <if test="updateTime != null">
  459. #{updateTime,jdbcType=TIMESTAMP},
  460. </if>
  461. <if test="deleteFlag != null">
  462. #{deleteFlag,jdbcType=INTEGER},
  463. </if>
  464. </trim>
  465. </insert>
  466. <select id="countByExample" parameterType="com.platform.pojo.TransactionJournalExample" resultType="java.lang.Integer">
  467. <!--
  468. WARNING - @mbggenerated
  469. This element is automatically generated by MyBatis Generator, do not modify.
  470. -->
  471. select count(*) from transaction_journal
  472. <if test="_parameter != null">
  473. <include refid="Example_Where_Clause" />
  474. </if>
  475. </select>
  476. <update id="updateByExampleSelective" parameterType="map">
  477. <!--
  478. WARNING - @mbggenerated
  479. This element is automatically generated by MyBatis Generator, do not modify.
  480. -->
  481. update transaction_journal
  482. <set>
  483. <if test="record.id != null">
  484. id = #{record.id,jdbcType=INTEGER},
  485. </if>
  486. <if test="record.tradeChannel != null">
  487. trade_channel = #{record.tradeChannel,jdbcType=VARCHAR},
  488. </if>
  489. <if test="record.retcode != null">
  490. retcode = #{record.retcode,jdbcType=VARCHAR},
  491. </if>
  492. <if test="record.retmsg != null">
  493. retmsg = #{record.retmsg,jdbcType=VARCHAR},
  494. </if>
  495. <if test="record.tradeMode != null">
  496. trade_mode = #{record.tradeMode,jdbcType=VARCHAR},
  497. </if>
  498. <if test="record.tradeState != null">
  499. trade_state = #{record.tradeState,jdbcType=VARCHAR},
  500. </if>
  501. <if test="record.payInfo != null">
  502. pay_info = #{record.payInfo,jdbcType=VARCHAR},
  503. </if>
  504. <if test="record.transChannel != null">
  505. trans_channel = #{record.transChannel,jdbcType=VARCHAR},
  506. </if>
  507. <if test="record.partner != null">
  508. partner = #{record.partner,jdbcType=VARCHAR},
  509. </if>
  510. <if test="record.subpartner != null">
  511. subpartner = #{record.subpartner,jdbcType=VARCHAR},
  512. </if>
  513. <if test="record.outTradeNo != null">
  514. out_trade_no = #{record.outTradeNo,jdbcType=VARCHAR},
  515. </if>
  516. <if test="record.transactionId != null">
  517. transaction_id = #{record.transactionId,jdbcType=VARCHAR},
  518. </if>
  519. <if test="record.bankType != null">
  520. bank_type = #{record.bankType,jdbcType=VARCHAR},
  521. </if>
  522. <if test="record.bankTransno != null">
  523. bank_transno = #{record.bankTransno,jdbcType=VARCHAR},
  524. </if>
  525. <if test="record.totalFee != null">
  526. total_fee = #{record.totalFee,jdbcType=REAL},
  527. </if>
  528. <if test="record.feeType != null">
  529. fee_type = #{record.feeType,jdbcType=VARCHAR},
  530. </if>
  531. <if test="record.notifyId != null">
  532. notify_id = #{record.notifyId,jdbcType=VARCHAR},
  533. </if>
  534. <if test="record.timeEnd != null">
  535. time_end = #{record.timeEnd,jdbcType=VARCHAR},
  536. </if>
  537. <if test="record.transportFee != null">
  538. transport_fee = #{record.transportFee,jdbcType=REAL},
  539. </if>
  540. <if test="record.productFee != null">
  541. product_fee = #{record.productFee,jdbcType=REAL},
  542. </if>
  543. <if test="record.discount != null">
  544. discount = #{record.discount,jdbcType=REAL},
  545. </if>
  546. <if test="record.buyerAlias != null">
  547. buyer_alias = #{record.buyerAlias,jdbcType=VARCHAR},
  548. </if>
  549. <if test="record.attach != null">
  550. attach = #{record.attach,jdbcType=VARCHAR},
  551. </if>
  552. <if test="record.outRefundNo != null">
  553. out_refund_no = #{record.outRefundNo,jdbcType=VARCHAR},
  554. </if>
  555. <if test="record.refundId != null">
  556. refund_id = #{record.refundId,jdbcType=VARCHAR},
  557. </if>
  558. <if test="record.refundChannel != null">
  559. refund_channel = #{record.refundChannel,jdbcType=VARCHAR},
  560. </if>
  561. <if test="record.refundFee != null">
  562. refund_fee = #{record.refundFee,jdbcType=VARCHAR},
  563. </if>
  564. <if test="record.refundStatus != null">
  565. refund_status = #{record.refundStatus,jdbcType=VARCHAR},
  566. </if>
  567. <if test="record.refundState != null">
  568. refund_state = #{record.refundState,jdbcType=VARCHAR},
  569. </if>
  570. <if test="record.recvUserId != null">
  571. recv_user_id = #{record.recvUserId,jdbcType=VARCHAR},
  572. </if>
  573. <if test="record.reccvUserName != null">
  574. reccv_user_name = #{record.reccvUserName,jdbcType=VARCHAR},
  575. </if>
  576. <if test="record.refundType != null">
  577. refund_type = #{record.refundType,jdbcType=VARCHAR},
  578. </if>
  579. <if test="record.clearState != null">
  580. clear_state = #{record.clearState,jdbcType=VARCHAR},
  581. </if>
  582. <if test="record.tradeType != null">
  583. trade_type = #{record.tradeType,jdbcType=VARCHAR},
  584. </if>
  585. <if test="record.isSplit != null">
  586. is_split = #{record.isSplit,jdbcType=VARCHAR},
  587. </if>
  588. <if test="record.platCharge != null">
  589. plat_charge = #{record.platCharge,jdbcType=VARCHAR},
  590. </if>
  591. <if test="record.subPlatCharge != null">
  592. sub_plat_charge = #{record.subPlatCharge,jdbcType=VARCHAR},
  593. </if>
  594. <if test="record.note != null">
  595. note = #{record.note,jdbcType=VARCHAR},
  596. </if>
  597. <if test="record.createTime != null">
  598. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  599. </if>
  600. <if test="record.updateTime != null">
  601. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  602. </if>
  603. <if test="record.deleteFlag != null">
  604. delete_flag = #{record.deleteFlag,jdbcType=INTEGER},
  605. </if>
  606. </set>
  607. <if test="_parameter != null">
  608. <include refid="Update_By_Example_Where_Clause" />
  609. </if>
  610. </update>
  611. <update id="updateByExample" parameterType="map">
  612. <!--
  613. WARNING - @mbggenerated
  614. This element is automatically generated by MyBatis Generator, do not modify.
  615. -->
  616. update transaction_journal
  617. set id = #{record.id,jdbcType=INTEGER},
  618. trade_channel = #{record.tradeChannel,jdbcType=VARCHAR},
  619. retcode = #{record.retcode,jdbcType=VARCHAR},
  620. retmsg = #{record.retmsg,jdbcType=VARCHAR},
  621. trade_mode = #{record.tradeMode,jdbcType=VARCHAR},
  622. trade_state = #{record.tradeState,jdbcType=VARCHAR},
  623. pay_info = #{record.payInfo,jdbcType=VARCHAR},
  624. trans_channel = #{record.transChannel,jdbcType=VARCHAR},
  625. partner = #{record.partner,jdbcType=VARCHAR},
  626. subpartner = #{record.subpartner,jdbcType=VARCHAR},
  627. out_trade_no = #{record.outTradeNo,jdbcType=VARCHAR},
  628. transaction_id = #{record.transactionId,jdbcType=VARCHAR},
  629. bank_type = #{record.bankType,jdbcType=VARCHAR},
  630. bank_transno = #{record.bankTransno,jdbcType=VARCHAR},
  631. total_fee = #{record.totalFee,jdbcType=REAL},
  632. fee_type = #{record.feeType,jdbcType=VARCHAR},
  633. notify_id = #{record.notifyId,jdbcType=VARCHAR},
  634. time_end = #{record.timeEnd,jdbcType=VARCHAR},
  635. transport_fee = #{record.transportFee,jdbcType=REAL},
  636. product_fee = #{record.productFee,jdbcType=REAL},
  637. discount = #{record.discount,jdbcType=REAL},
  638. buyer_alias = #{record.buyerAlias,jdbcType=VARCHAR},
  639. attach = #{record.attach,jdbcType=VARCHAR},
  640. out_refund_no = #{record.outRefundNo,jdbcType=VARCHAR},
  641. refund_id = #{record.refundId,jdbcType=VARCHAR},
  642. refund_channel = #{record.refundChannel,jdbcType=VARCHAR},
  643. refund_fee = #{record.refundFee,jdbcType=VARCHAR},
  644. refund_status = #{record.refundStatus,jdbcType=VARCHAR},
  645. refund_state = #{record.refundState,jdbcType=VARCHAR},
  646. recv_user_id = #{record.recvUserId,jdbcType=VARCHAR},
  647. reccv_user_name = #{record.reccvUserName,jdbcType=VARCHAR},
  648. refund_type = #{record.refundType,jdbcType=VARCHAR},
  649. clear_state = #{record.clearState,jdbcType=VARCHAR},
  650. trade_type = #{record.tradeType,jdbcType=VARCHAR},
  651. is_split = #{record.isSplit,jdbcType=VARCHAR},
  652. plat_charge = #{record.platCharge,jdbcType=VARCHAR},
  653. sub_plat_charge = #{record.subPlatCharge,jdbcType=VARCHAR},
  654. note = #{record.note,jdbcType=VARCHAR},
  655. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  656. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  657. delete_flag = #{record.deleteFlag,jdbcType=INTEGER}
  658. <if test="_parameter != null">
  659. <include refid="Update_By_Example_Where_Clause" />
  660. </if>
  661. </update>
  662. <update id="updateByPrimaryKeySelective" parameterType="com.platform.pojo.TransactionJournal">
  663. <!--
  664. WARNING - @mbggenerated
  665. This element is automatically generated by MyBatis Generator, do not modify.
  666. -->
  667. update transaction_journal
  668. <set>
  669. <if test="tradeChannel != null">
  670. trade_channel = #{tradeChannel,jdbcType=VARCHAR},
  671. </if>
  672. <if test="retcode != null">
  673. retcode = #{retcode,jdbcType=VARCHAR},
  674. </if>
  675. <if test="retmsg != null">
  676. retmsg = #{retmsg,jdbcType=VARCHAR},
  677. </if>
  678. <if test="tradeMode != null">
  679. trade_mode = #{tradeMode,jdbcType=VARCHAR},
  680. </if>
  681. <if test="tradeState != null">
  682. trade_state = #{tradeState,jdbcType=VARCHAR},
  683. </if>
  684. <if test="payInfo != null">
  685. pay_info = #{payInfo,jdbcType=VARCHAR},
  686. </if>
  687. <if test="transChannel != null">
  688. trans_channel = #{transChannel,jdbcType=VARCHAR},
  689. </if>
  690. <if test="partner != null">
  691. partner = #{partner,jdbcType=VARCHAR},
  692. </if>
  693. <if test="subpartner != null">
  694. subpartner = #{subpartner,jdbcType=VARCHAR},
  695. </if>
  696. <if test="outTradeNo != null">
  697. out_trade_no = #{outTradeNo,jdbcType=VARCHAR},
  698. </if>
  699. <if test="transactionId != null">
  700. transaction_id = #{transactionId,jdbcType=VARCHAR},
  701. </if>
  702. <if test="bankType != null">
  703. bank_type = #{bankType,jdbcType=VARCHAR},
  704. </if>
  705. <if test="bankTransno != null">
  706. bank_transno = #{bankTransno,jdbcType=VARCHAR},
  707. </if>
  708. <if test="totalFee != null">
  709. total_fee = #{totalFee,jdbcType=REAL},
  710. </if>
  711. <if test="feeType != null">
  712. fee_type = #{feeType,jdbcType=VARCHAR},
  713. </if>
  714. <if test="notifyId != null">
  715. notify_id = #{notifyId,jdbcType=VARCHAR},
  716. </if>
  717. <if test="timeEnd != null">
  718. time_end = #{timeEnd,jdbcType=VARCHAR},
  719. </if>
  720. <if test="transportFee != null">
  721. transport_fee = #{transportFee,jdbcType=REAL},
  722. </if>
  723. <if test="productFee != null">
  724. product_fee = #{productFee,jdbcType=REAL},
  725. </if>
  726. <if test="discount != null">
  727. discount = #{discount,jdbcType=REAL},
  728. </if>
  729. <if test="buyerAlias != null">
  730. buyer_alias = #{buyerAlias,jdbcType=VARCHAR},
  731. </if>
  732. <if test="attach != null">
  733. attach = #{attach,jdbcType=VARCHAR},
  734. </if>
  735. <if test="outRefundNo != null">
  736. out_refund_no = #{outRefundNo,jdbcType=VARCHAR},
  737. </if>
  738. <if test="refundId != null">
  739. refund_id = #{refundId,jdbcType=VARCHAR},
  740. </if>
  741. <if test="refundChannel != null">
  742. refund_channel = #{refundChannel,jdbcType=VARCHAR},
  743. </if>
  744. <if test="refundFee != null">
  745. refund_fee = #{refundFee,jdbcType=VARCHAR},
  746. </if>
  747. <if test="refundStatus != null">
  748. refund_status = #{refundStatus,jdbcType=VARCHAR},
  749. </if>
  750. <if test="refundState != null">
  751. refund_state = #{refundState,jdbcType=VARCHAR},
  752. </if>
  753. <if test="recvUserId != null">
  754. recv_user_id = #{recvUserId,jdbcType=VARCHAR},
  755. </if>
  756. <if test="reccvUserName != null">
  757. reccv_user_name = #{reccvUserName,jdbcType=VARCHAR},
  758. </if>
  759. <if test="refundType != null">
  760. refund_type = #{refundType,jdbcType=VARCHAR},
  761. </if>
  762. <if test="clearState != null">
  763. clear_state = #{clearState,jdbcType=VARCHAR},
  764. </if>
  765. <if test="tradeType != null">
  766. trade_type = #{tradeType,jdbcType=VARCHAR},
  767. </if>
  768. <if test="isSplit != null">
  769. is_split = #{isSplit,jdbcType=VARCHAR},
  770. </if>
  771. <if test="platCharge != null">
  772. plat_charge = #{platCharge,jdbcType=VARCHAR},
  773. </if>
  774. <if test="subPlatCharge != null">
  775. sub_plat_charge = #{subPlatCharge,jdbcType=VARCHAR},
  776. </if>
  777. <if test="note != null">
  778. note = #{note,jdbcType=VARCHAR},
  779. </if>
  780. <if test="createTime != null">
  781. create_time = #{createTime,jdbcType=TIMESTAMP},
  782. </if>
  783. <if test="updateTime != null">
  784. update_time = #{updateTime,jdbcType=TIMESTAMP},
  785. </if>
  786. <if test="deleteFlag != null">
  787. delete_flag = #{deleteFlag,jdbcType=INTEGER},
  788. </if>
  789. </set>
  790. where id = #{id,jdbcType=INTEGER}
  791. </update>
  792. <update id="updateByPrimaryKey" parameterType="com.platform.pojo.TransactionJournal">
  793. <!--
  794. WARNING - @mbggenerated
  795. This element is automatically generated by MyBatis Generator, do not modify.
  796. -->
  797. update transaction_journal
  798. set trade_channel = #{tradeChannel,jdbcType=VARCHAR},
  799. retcode = #{retcode,jdbcType=VARCHAR},
  800. retmsg = #{retmsg,jdbcType=VARCHAR},
  801. trade_mode = #{tradeMode,jdbcType=VARCHAR},
  802. trade_state = #{tradeState,jdbcType=VARCHAR},
  803. pay_info = #{payInfo,jdbcType=VARCHAR},
  804. trans_channel = #{transChannel,jdbcType=VARCHAR},
  805. partner = #{partner,jdbcType=VARCHAR},
  806. subpartner = #{subpartner,jdbcType=VARCHAR},
  807. out_trade_no = #{outTradeNo,jdbcType=VARCHAR},
  808. transaction_id = #{transactionId,jdbcType=VARCHAR},
  809. bank_type = #{bankType,jdbcType=VARCHAR},
  810. bank_transno = #{bankTransno,jdbcType=VARCHAR},
  811. total_fee = #{totalFee,jdbcType=REAL},
  812. fee_type = #{feeType,jdbcType=VARCHAR},
  813. notify_id = #{notifyId,jdbcType=VARCHAR},
  814. time_end = #{timeEnd,jdbcType=VARCHAR},
  815. transport_fee = #{transportFee,jdbcType=REAL},
  816. product_fee = #{productFee,jdbcType=REAL},
  817. discount = #{discount,jdbcType=REAL},
  818. buyer_alias = #{buyerAlias,jdbcType=VARCHAR},
  819. attach = #{attach,jdbcType=VARCHAR},
  820. out_refund_no = #{outRefundNo,jdbcType=VARCHAR},
  821. refund_id = #{refundId,jdbcType=VARCHAR},
  822. refund_channel = #{refundChannel,jdbcType=VARCHAR},
  823. refund_fee = #{refundFee,jdbcType=VARCHAR},
  824. refund_status = #{refundStatus,jdbcType=VARCHAR},
  825. refund_state = #{refundState,jdbcType=VARCHAR},
  826. recv_user_id = #{recvUserId,jdbcType=VARCHAR},
  827. reccv_user_name = #{reccvUserName,jdbcType=VARCHAR},
  828. refund_type = #{refundType,jdbcType=VARCHAR},
  829. clear_state = #{clearState,jdbcType=VARCHAR},
  830. trade_type = #{tradeType,jdbcType=VARCHAR},
  831. is_split = #{isSplit,jdbcType=VARCHAR},
  832. plat_charge = #{platCharge,jdbcType=VARCHAR},
  833. sub_plat_charge = #{subPlatCharge,jdbcType=VARCHAR},
  834. note = #{note,jdbcType=VARCHAR},
  835. create_time = #{createTime,jdbcType=TIMESTAMP},
  836. update_time = #{updateTime,jdbcType=TIMESTAMP},
  837. delete_flag = #{deleteFlag,jdbcType=INTEGER}
  838. where id = #{id,jdbcType=INTEGER}
  839. </update>
  840. </mapper>