1
0

WxCbPayDocMapper.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  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.emato.cuspay.dao.mapper.wx.WxCbPayDocMapper" >
  4. <resultMap id="BaseResultMap" type="com.emato.cuspay.wx.entity.WxCbPayDoc" >
  5. <id column="wx_pay_sn" property="wxPaySn" jdbcType="VARCHAR" />
  6. <result column="merch_sn" property="merchSn" jdbcType="VARCHAR" />
  7. <result column="merch_name" property="merchName" jdbcType="VARCHAR" />
  8. <result column="plat_sn" property="platSn" jdbcType="VARCHAR" />
  9. <result column="plat_name" property="platName" jdbcType="VARCHAR" />
  10. <result column="third_party_merch_code" property="thirdPartyMerchCode" jdbcType="VARCHAR" />
  11. <result column="third_party_merch_name" property="thirdPartyMerchName" jdbcType="VARCHAR" />
  12. <result column="appid" property="appid" jdbcType="VARCHAR" />
  13. <result column="mch_id" property="mchId" jdbcType="VARCHAR" />
  14. <result column="out_trade_no" property="outTradeNo" jdbcType="VARCHAR" />
  15. <result column="sub_order_id" property="subOrderId" jdbcType="VARCHAR" />
  16. <result column="transaction_id" property="transactionId" jdbcType="VARCHAR" />
  17. <result column="customs" property="customs" jdbcType="VARCHAR" />
  18. <result column="mch_customs_no" property="mchCustomsNo" jdbcType="VARCHAR" />
  19. <result column="duty" property="duty" jdbcType="INTEGER" />
  20. <result column="action_type" property="actionType" jdbcType="VARCHAR" />
  21. <result column="sub_order_no" property="subOrderNo" jdbcType="VARCHAR" />
  22. <result column="fee_type" property="feeType" jdbcType="VARCHAR" />
  23. <result column="order_fee" property="orderFee" jdbcType="INTEGER" />
  24. <result column="transport_fee" property="transportFee" jdbcType="INTEGER" />
  25. <result column="product_fee" property="productFee" jdbcType="INTEGER" />
  26. <result column="cert_type" property="certType" jdbcType="VARCHAR" />
  27. <result column="cert_id" property="certId" jdbcType="VARCHAR" />
  28. <result column="name" property="name" jdbcType="VARCHAR" />
  29. <result column="doc_status" property="docStatus" jdbcType="CHAR" />
  30. <result column="remark" property="remark" jdbcType="VARCHAR" />
  31. <result column="return_code" property="returnCode" jdbcType="VARCHAR" />
  32. <result column="return_msg" property="returnMsg" jdbcType="VARCHAR" />
  33. <result column="result_code" property="resultCode" jdbcType="VARCHAR" />
  34. <result column="err_code" property="errCode" jdbcType="VARCHAR" />
  35. <result column="err_code_des" property="errCodeDes" jdbcType="VARCHAR" />
  36. <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
  37. <result column="create_time" property="createTime" jdbcType="VARCHAR" />
  38. <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
  39. <result column="mod_time" property="modTime" jdbcType="VARCHAR" />
  40. <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
  41. <result column="ex_field" property="exField" jdbcType="VARCHAR" />
  42. <result column="ex_field2" property="exField2" jdbcType="VARCHAR" />
  43. <result column="ex_field3" property="exField3" jdbcType="VARCHAR" />
  44. <result column="ex_field4" property="exField4" jdbcType="VARCHAR" />
  45. <result column="ex_field5" property="exField5" jdbcType="VARCHAR" />
  46. <result column="merch_erp_order_sn" property="merchErpOrderSn" jdbcType="VARCHAR" />
  47. <result column="buyer_payer_check" property="buyerPayerCheck" jdbcType="VARCHAR" />
  48. </resultMap>
  49. <sql id="Base_Column_List" >
  50. wx_pay_sn, merch_sn, merch_name, merch_erp_order_sn, plat_sn, plat_name, third_party_merch_code, third_party_merch_name,
  51. appid, mch_id, out_trade_no, sub_order_id, transaction_id, customs, mch_customs_no, duty, action_type,
  52. sub_order_no, fee_type, order_fee, transport_fee, product_fee, cert_type, cert_id,
  53. name, doc_status, remark, return_code, return_msg, result_code, err_code, err_code_des,
  54. creater_sn, create_time, moder_sn, mod_time, tstm, ex_field, ex_field2, ex_field3,
  55. ex_field4, ex_field5, buyer_payer_check
  56. </sql>
  57. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  58. select
  59. <include refid="Base_Column_List" />
  60. from wx_cb_pay_doc
  61. where wx_pay_sn = #{wxPaySn,jdbcType=VARCHAR}
  62. </select>
  63. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  64. delete from wx_cb_pay_doc
  65. where wx_pay_sn = #{wxPaySn,jdbcType=VARCHAR}
  66. </delete>
  67. <insert id="insertSelective" parameterType="com.emato.cuspay.wx.entity.WxCbPayDoc" >
  68. insert into wx_cb_pay_doc
  69. <trim prefix="(" suffix=")" suffixOverrides="," >
  70. <if test="wxPaySn != null" >
  71. wx_pay_sn,
  72. </if>
  73. <if test="merchSn != null" >
  74. merch_sn,
  75. </if>
  76. <if test="merchName != null" >
  77. merch_name,
  78. </if>
  79. <if test="merchErpOrderSn != null" >
  80. merch_erp_order_sn,
  81. </if>
  82. <if test="buyerPayerCheck != null" >
  83. buyer_payer_check,
  84. </if>
  85. <if test="platSn != null" >
  86. plat_sn,
  87. </if>
  88. <if test="platName != null" >
  89. plat_name,
  90. </if>
  91. <if test="thirdPartyMerchCode != null" >
  92. third_party_merch_code,
  93. </if>
  94. <if test="thirdPartyMerchName != null" >
  95. third_party_merch_name,
  96. </if>
  97. <if test="appid != null" >
  98. appid,
  99. </if>
  100. <if test="mchId != null" >
  101. mch_id,
  102. </if>
  103. <if test="outTradeNo != null" >
  104. out_trade_no,
  105. </if>
  106. <if test="subOrderId != null" >
  107. sub_order_id,
  108. </if>
  109. <if test="transactionId != null" >
  110. transaction_id,
  111. </if>
  112. <if test="customs != null" >
  113. customs,
  114. </if>
  115. <if test="mchCustomsNo != null" >
  116. mch_customs_no,
  117. </if>
  118. <if test="duty != null" >
  119. duty,
  120. </if>
  121. <if test="actionType != null" >
  122. action_type,
  123. </if>
  124. <if test="subOrderNo != null" >
  125. sub_order_no,
  126. </if>
  127. <if test="feeType != null" >
  128. fee_type,
  129. </if>
  130. <if test="orderFee != null" >
  131. order_fee,
  132. </if>
  133. <if test="transportFee != null" >
  134. transport_fee,
  135. </if>
  136. <if test="productFee != null" >
  137. product_fee,
  138. </if>
  139. <if test="certType != null" >
  140. cert_type,
  141. </if>
  142. <if test="certId != null" >
  143. cert_id,
  144. </if>
  145. <if test="name != null" >
  146. name,
  147. </if>
  148. <if test="docStatus != null" >
  149. doc_status,
  150. </if>
  151. <if test="remark != null" >
  152. remark,
  153. </if>
  154. <if test="returnCode != null" >
  155. return_code,
  156. </if>
  157. <if test="returnMsg != null" >
  158. return_msg,
  159. </if>
  160. <if test="resultCode != null" >
  161. result_code,
  162. </if>
  163. <if test="errCode != null" >
  164. err_code,
  165. </if>
  166. <if test="errCodeDes != null" >
  167. err_code_des,
  168. </if>
  169. <if test="createrSn != null" >
  170. creater_sn,
  171. </if>
  172. <if test="createTime != null" >
  173. create_time,
  174. </if>
  175. <if test="moderSn != null" >
  176. moder_sn,
  177. </if>
  178. <if test="modTime != null" >
  179. mod_time,
  180. </if>
  181. <if test="tstm != null" >
  182. tstm,
  183. </if>
  184. <if test="exField != null" >
  185. ex_field,
  186. </if>
  187. <if test="exField2 != null" >
  188. ex_field2,
  189. </if>
  190. <if test="exField3 != null" >
  191. ex_field3,
  192. </if>
  193. <if test="exField4 != null" >
  194. ex_field4,
  195. </if>
  196. <if test="exField5 != null" >
  197. ex_field5,
  198. </if>
  199. </trim>
  200. <trim prefix="values (" suffix=")" suffixOverrides="," >
  201. <if test="wxPaySn != null" >
  202. #{wxPaySn,jdbcType=VARCHAR},
  203. </if>
  204. <if test="merchSn != null" >
  205. #{merchSn,jdbcType=VARCHAR},
  206. </if>
  207. <if test="merchName != null" >
  208. #{merchName,jdbcType=VARCHAR},
  209. </if>
  210. <if test="merchErpOrderSn != null" >
  211. #{merchErpOrderSn,jdbcType=VARCHAR},
  212. </if>
  213. <if test="platSn != null" >
  214. #{platSn,jdbcType=VARCHAR},
  215. </if>
  216. <if test="platName != null" >
  217. #{platName,jdbcType=VARCHAR},
  218. </if>
  219. <if test="thirdPartyMerchCode != null" >
  220. #{thirdPartyMerchCode,jdbcType=VARCHAR},
  221. </if>
  222. <if test="thirdPartyMerchName != null" >
  223. #{thirdPartyMerchName,jdbcType=VARCHAR},
  224. </if>
  225. <if test="appid != null" >
  226. #{appid,jdbcType=VARCHAR},
  227. </if>
  228. <if test="mchId != null" >
  229. #{mchId,jdbcType=VARCHAR},
  230. </if>
  231. <if test="outTradeNo != null" >
  232. #{outTradeNo,jdbcType=VARCHAR},
  233. </if>
  234. <if test="subOrderId != null" >
  235. #{subOrderId,jdbcType=VARCHAR},
  236. </if>
  237. <if test="transactionId != null" >
  238. #{transactionId,jdbcType=VARCHAR},
  239. </if>
  240. <if test="customs != null" >
  241. #{customs,jdbcType=VARCHAR},
  242. </if>
  243. <if test="mchCustomsNo != null" >
  244. #{mchCustomsNo,jdbcType=VARCHAR},
  245. </if>
  246. <if test="duty != null" >
  247. #{duty,jdbcType=INTEGER},
  248. </if>
  249. <if test="actionType != null" >
  250. #{actionType,jdbcType=VARCHAR},
  251. </if>
  252. <if test="subOrderNo != null" >
  253. #{subOrderNo,jdbcType=VARCHAR},
  254. </if>
  255. <if test="feeType != null" >
  256. #{feeType,jdbcType=VARCHAR},
  257. </if>
  258. <if test="orderFee != null" >
  259. #{orderFee,jdbcType=INTEGER},
  260. </if>
  261. <if test="transportFee != null" >
  262. #{transportFee,jdbcType=INTEGER},
  263. </if>
  264. <if test="productFee != null" >
  265. #{productFee,jdbcType=INTEGER},
  266. </if>
  267. <if test="certType != null" >
  268. #{certType,jdbcType=VARCHAR},
  269. </if>
  270. <if test="certId != null" >
  271. #{certId,jdbcType=VARCHAR},
  272. </if>
  273. <if test="name != null" >
  274. #{name,jdbcType=VARCHAR},
  275. </if>
  276. <if test="docStatus != null" >
  277. #{docStatus,jdbcType=CHAR},
  278. </if>
  279. <if test="remark != null" >
  280. #{remark,jdbcType=VARCHAR},
  281. </if>
  282. <if test="returnCode != null" >
  283. #{returnCode,jdbcType=VARCHAR},
  284. </if>
  285. <if test="returnMsg != null" >
  286. #{returnMsg,jdbcType=VARCHAR},
  287. </if>
  288. <if test="resultCode != null" >
  289. #{resultCode,jdbcType=VARCHAR},
  290. </if>
  291. <if test="errCode != null" >
  292. #{errCode,jdbcType=VARCHAR},
  293. </if>
  294. <if test="errCodeDes != null" >
  295. #{errCodeDes,jdbcType=VARCHAR},
  296. </if>
  297. <if test="createrSn != null" >
  298. #{createrSn,jdbcType=VARCHAR},
  299. </if>
  300. <if test="createTime != null" >
  301. #{createTime,jdbcType=VARCHAR},
  302. </if>
  303. <if test="moderSn != null" >
  304. #{moderSn,jdbcType=VARCHAR},
  305. </if>
  306. <if test="modTime != null" >
  307. #{modTime,jdbcType=VARCHAR},
  308. </if>
  309. <if test="tstm != null" >
  310. #{tstm,jdbcType=TIMESTAMP},
  311. </if>
  312. <if test="exField != null" >
  313. #{exField,jdbcType=VARCHAR},
  314. </if>
  315. <if test="exField2 != null" >
  316. #{exField2,jdbcType=VARCHAR},
  317. </if>
  318. <if test="exField3 != null" >
  319. #{exField3,jdbcType=VARCHAR},
  320. </if>
  321. <if test="exField4 != null" >
  322. #{exField4,jdbcType=VARCHAR},
  323. </if>
  324. <if test="exField5 != null" >
  325. #{exField5,jdbcType=VARCHAR},
  326. </if>
  327. </trim>
  328. </insert>
  329. <update id="updateByPrimaryKeySelective" parameterType="com.emato.cuspay.wx.entity.WxCbPayDoc" >
  330. update wx_cb_pay_doc
  331. <set >
  332. <if test="merchSn != null" >
  333. merch_sn = #{merchSn,jdbcType=VARCHAR},
  334. </if>
  335. <if test="merchName != null" >
  336. merch_name = #{merchName,jdbcType=VARCHAR},
  337. </if>
  338. <if test="merchErpOrderSn != null" >
  339. merch_erp_order_sn = #{merchErpOrderSn,jdbcType=VARCHAR},
  340. </if>
  341. <if test="buyerPayerCheck != null" >
  342. buyer_payer_check = #{buyerPayerCheck,jdbcType=VARCHAR},
  343. </if>
  344. <if test="platSn != null" >
  345. plat_sn = #{platSn,jdbcType=VARCHAR},
  346. </if>
  347. <if test="platName != null" >
  348. plat_name = #{platName,jdbcType=VARCHAR},
  349. </if>
  350. <if test="thirdPartyMerchCode != null" >
  351. third_party_merch_code = #{thirdPartyMerchCode,jdbcType=VARCHAR},
  352. </if>
  353. <if test="thirdPartyMerchName != null" >
  354. third_party_merch_name = #{thirdPartyMerchName,jdbcType=VARCHAR},
  355. </if>
  356. <if test="appid != null" >
  357. appid = #{appid,jdbcType=VARCHAR},
  358. </if>
  359. <if test="mchId != null" >
  360. mch_id = #{mchId,jdbcType=VARCHAR},
  361. </if>
  362. <if test="outTradeNo != null" >
  363. out_trade_no = #{outTradeNo,jdbcType=VARCHAR},
  364. </if>
  365. <if test="subOrderId != null" >
  366. sub_order_id = #{subOrderId,jdbcType=VARCHAR},
  367. </if>
  368. <if test="transactionId != null" >
  369. transaction_id = #{transactionId,jdbcType=VARCHAR},
  370. </if>
  371. <if test="customs != null" >
  372. customs = #{customs,jdbcType=VARCHAR},
  373. </if>
  374. <if test="mchCustomsNo != null" >
  375. mch_customs_no = #{mchCustomsNo,jdbcType=VARCHAR},
  376. </if>
  377. <if test="duty != null" >
  378. duty = #{duty,jdbcType=INTEGER},
  379. </if>
  380. <if test="actionType != null" >
  381. action_type = #{actionType,jdbcType=VARCHAR},
  382. </if>
  383. <if test="subOrderNo != null" >
  384. sub_order_no = #{subOrderNo,jdbcType=VARCHAR},
  385. </if>
  386. <if test="feeType != null" >
  387. fee_type = #{feeType,jdbcType=VARCHAR},
  388. </if>
  389. <if test="orderFee != null" >
  390. order_fee = #{orderFee,jdbcType=INTEGER},
  391. </if>
  392. <if test="transportFee != null" >
  393. transport_fee = #{transportFee,jdbcType=INTEGER},
  394. </if>
  395. <if test="productFee != null" >
  396. product_fee = #{productFee,jdbcType=INTEGER},
  397. </if>
  398. <if test="certType != null" >
  399. cert_type = #{certType,jdbcType=VARCHAR},
  400. </if>
  401. <if test="certId != null" >
  402. cert_id = #{certId,jdbcType=VARCHAR},
  403. </if>
  404. <if test="name != null" >
  405. name = #{name,jdbcType=VARCHAR},
  406. </if>
  407. <if test="docStatus != null" >
  408. doc_status = #{docStatus,jdbcType=CHAR},
  409. </if>
  410. <if test="remark != null" >
  411. remark = #{remark,jdbcType=VARCHAR},
  412. </if>
  413. <if test="returnCode != null" >
  414. return_code = #{returnCode,jdbcType=VARCHAR},
  415. </if>
  416. <if test="returnMsg != null" >
  417. return_msg = #{returnMsg,jdbcType=VARCHAR},
  418. </if>
  419. <if test="resultCode != null" >
  420. result_code = #{resultCode,jdbcType=VARCHAR},
  421. </if>
  422. <if test="errCode != null" >
  423. err_code = #{errCode,jdbcType=VARCHAR},
  424. </if>
  425. <if test="errCodeDes != null" >
  426. err_code_des = #{errCodeDes,jdbcType=VARCHAR},
  427. </if>
  428. <if test="createrSn != null" >
  429. creater_sn = #{createrSn,jdbcType=VARCHAR},
  430. </if>
  431. <if test="createTime != null" >
  432. create_time = #{createTime,jdbcType=VARCHAR},
  433. </if>
  434. <if test="moderSn != null" >
  435. moder_sn = #{moderSn,jdbcType=VARCHAR},
  436. </if>
  437. <if test="modTime != null" >
  438. mod_time = #{modTime,jdbcType=VARCHAR},
  439. </if>
  440. <if test="tstm != null" >
  441. tstm = #{tstm,jdbcType=TIMESTAMP},
  442. </if>
  443. <if test="exField != null" >
  444. ex_field = #{exField,jdbcType=VARCHAR},
  445. </if>
  446. <if test="exField2 != null" >
  447. ex_field2 = #{exField2,jdbcType=VARCHAR},
  448. </if>
  449. <if test="exField3 != null" >
  450. ex_field3 = #{exField3,jdbcType=VARCHAR},
  451. </if>
  452. <if test="exField4 != null" >
  453. ex_field4 = #{exField4,jdbcType=VARCHAR},
  454. </if>
  455. <if test="exField5 != null" >
  456. ex_field5 = #{exField5,jdbcType=VARCHAR},
  457. </if>
  458. </set>
  459. where wx_pay_sn = #{wxPaySn,jdbcType=VARCHAR}
  460. </update>
  461. <select id="selectBeDeclaredData" resultMap="BaseResultMap" parameterType="java.lang.Integer">
  462. select
  463. <include refid="Base_Column_List" />
  464. from wx_cb_pay_doc
  465. where doc_status = '00' limit #{limit}
  466. </select>
  467. <select id="insertBatch">
  468. INSERT wx_cb_pay_doc
  469. <trim prefix="(" suffix=")" suffixOverrides=",">
  470. wx_pay_sn,
  471. merch_sn,
  472. merch_name,
  473. merch_erp_order_sn,
  474. buyer_payer_check,
  475. plat_sn,
  476. plat_name,
  477. third_party_merch_code,
  478. third_party_merch_name,
  479. appid,
  480. mch_id,
  481. out_trade_no,
  482. sub_order_id,
  483. transaction_id,
  484. customs,
  485. mch_customs_no,
  486. duty,
  487. action_type,
  488. sub_order_no,
  489. fee_type,
  490. order_fee,
  491. transport_fee,
  492. product_fee,
  493. cert_type,
  494. cert_id,
  495. name,
  496. doc_status,
  497. remark,
  498. return_code,
  499. return_msg,
  500. result_code,
  501. err_code,
  502. err_code_des,
  503. creater_sn,
  504. create_time,
  505. moder_sn,
  506. mod_time,
  507. ex_field,
  508. ex_field2,
  509. ex_field3,
  510. ex_field4,
  511. ex_field5,
  512. </trim>
  513. VALUES
  514. <foreach collection="list" item="item" index="index" separator=",">
  515. <trim prefix="(" suffix=")" suffixOverrides=",">
  516. #{wxPaySn,jdbcType=VARCHAR},
  517. #{merchSn,jdbcType=VARCHAR},
  518. #{merchName,jdbcType=VARCHAR},
  519. #{merchErpOrderSn,jdbcType=VARCHAR}
  520. #{platSn,jdbcType=VARCHAR},
  521. #{platName,jdbcType=VARCHAR},
  522. #{thirdPartyMerchCode,jdbcType=VARCHAR},
  523. #{thirdPartyMerchName,jdbcType=VARCHAR},
  524. #{appid,jdbcType=VARCHAR},
  525. #{mchId,jdbcType=VARCHAR},
  526. #{outTradeNo,jdbcType=VARCHAR},
  527. #{subOrderId,jdbcType=VARCHAR},
  528. #{transactionId,jdbcType=VARCHAR},
  529. #{customs,jdbcType=VARCHAR},
  530. #{mchCustomsNo,jdbcType=VARCHAR},
  531. #{duty,jdbcType=INTEGER},
  532. #{actionType,jdbcType=VARCHAR},
  533. #{subOrderNo,jdbcType=VARCHAR},
  534. #{feeType,jdbcType=VARCHAR},
  535. #{orderFee,jdbcType=INTEGER},
  536. #{transportFee,jdbcType=INTEGER},
  537. #{productFee,jdbcType=INTEGER},
  538. #{certType,jdbcType=VARCHAR},
  539. #{certId,jdbcType=VARCHAR},
  540. #{name,jdbcType=VARCHAR},
  541. #{docStatus,jdbcType=CHAR},
  542. #{remark,jdbcType=VARCHAR},
  543. #{returnCode,jdbcType=VARCHAR},
  544. #{returnMsg,jdbcType=VARCHAR},
  545. #{resultCode,jdbcType=VARCHAR},
  546. #{errCode,jdbcType=VARCHAR},
  547. #{errCodeDes,jdbcType=VARCHAR},
  548. #{createrSn,jdbcType=VARCHAR},
  549. #{createTime,jdbcType=VARCHAR},
  550. #{moderSn,jdbcType=VARCHAR},
  551. #{modTime,jdbcType=VARCHAR},
  552. #{exField,jdbcType=VARCHAR},
  553. #{exField2,jdbcType=VARCHAR},
  554. #{exField3,jdbcType=VARCHAR},
  555. #{exField4,jdbcType=VARCHAR},
  556. #{exField5,jdbcType=VARCHAR},
  557. </trim>
  558. </foreach>
  559. </select>
  560. <update id="updateBatch" parameterType="java.util.List">
  561. <foreach collection="list" item="item" index="index" open="" close="" separator=";">
  562. update wx_cb_pay_doc
  563. <set >
  564. <if test="item.merchSn != null" >
  565. merch_sn = #{item.merchSn,jdbcType=VARCHAR},
  566. </if>
  567. <if test="item.merchName != null" >
  568. merch_name = #{item.merchName,jdbcType=VARCHAR},
  569. </if>
  570. <if test="item.merchErpOrderSn != null" >
  571. merch_erp_order_sn = #{item.merchErpOrderSn,jdbcType=VARCHAR},
  572. </if>
  573. <if test="item.buyerPayerCheck != null" >
  574. buyer_payer_check = #{item.buyerPayerCheck,jdbcType=VARCHAR},
  575. </if>
  576. <if test="item.platSn != null" >
  577. plat_sn = #{item.platSn,jdbcType=VARCHAR},
  578. </if>
  579. <if test="item.platName != null" >
  580. plat_name = #{item.platName,jdbcType=VARCHAR},
  581. </if>
  582. <if test="item.thirdPartyMerchCode != null" >
  583. third_party_merch_code = #{item.thirdPartyMerchCode,jdbcType=VARCHAR},
  584. </if>
  585. <if test="item.thirdPartyMerchName != null" >
  586. third_party_merch_name = #{item.thirdPartyMerchName,jdbcType=VARCHAR},
  587. </if>
  588. <if test="item.appid != null" >
  589. appid = #{item.appid,jdbcType=VARCHAR},
  590. </if>
  591. <if test="item.mchId != null" >
  592. mch_id = #{item.mchId,jdbcType=VARCHAR},
  593. </if>
  594. <if test="item.outTradeNo != null" >
  595. out_trade_no = #{item.outTradeNo,jdbcType=VARCHAR},
  596. </if>
  597. <if test="item.subOrderId != null" >
  598. sub_order_id = #{item.subOrderId,jdbcType=VARCHAR},
  599. </if>
  600. <if test="item.transactionId != null" >
  601. transaction_id = #{item.transactionId,jdbcType=VARCHAR},
  602. </if>
  603. <if test="item.customs != null" >
  604. customs = #{item.customs,jdbcType=VARCHAR},
  605. </if>
  606. <if test="item.mchCustomsNo != null" >
  607. mch_customs_no = #{item.mchCustomsNo,jdbcType=VARCHAR},
  608. </if>
  609. <if test="item.duty != null" >
  610. duty = #{item.duty,jdbcType=INTEGER},
  611. </if>
  612. <if test="item.actionType != null" >
  613. action_type = #{item.actionType,jdbcType=VARCHAR},
  614. </if>
  615. <if test="item.subOrderNo != null" >
  616. sub_order_no = #{item.subOrderNo,jdbcType=VARCHAR},
  617. </if>
  618. <if test="item.feeType != null" >
  619. fee_type = #{item.feeType,jdbcType=VARCHAR},
  620. </if>
  621. <if test="item.orderFee != null" >
  622. order_fee = #{item.orderFee,jdbcType=INTEGER},
  623. </if>
  624. <if test="item.transportFee != null" >
  625. transport_fee = #{item.transportFee,jdbcType=INTEGER},
  626. </if>
  627. <if test="item.productFee != null" >
  628. product_fee = #{item.productFee,jdbcType=INTEGER},
  629. </if>
  630. <if test="item.certType != null" >
  631. cert_type = #{item.certType,jdbcType=VARCHAR},
  632. </if>
  633. <if test="item.certId != null" >
  634. cert_id = #{item.certId,jdbcType=VARCHAR},
  635. </if>
  636. <if test="item.name != null" >
  637. name = #{item.name,jdbcType=VARCHAR},
  638. </if>
  639. <if test="item.docStatus != null" >
  640. doc_status = #{item.docStatus,jdbcType=CHAR},
  641. </if>
  642. <if test="item.remark != null" >
  643. remark = #{item.remark,jdbcType=VARCHAR},
  644. </if>
  645. <if test="item.returnCode != null" >
  646. return_code = #{item.returnCode,jdbcType=VARCHAR},
  647. </if>
  648. <if test="item.returnMsg != null" >
  649. return_msg = #{item.returnMsg,jdbcType=VARCHAR},
  650. </if>
  651. <if test="item.resultCode != null" >
  652. result_code = #{item.resultCode,jdbcType=VARCHAR},
  653. </if>
  654. <if test="item.errCode != null" >
  655. err_code = #{item.errCode,jdbcType=VARCHAR},
  656. </if>
  657. <if test="item.errCodeDes != null" >
  658. err_code_des = #{item.errCodeDes,jdbcType=VARCHAR},
  659. </if>
  660. <if test="item.createrSn != null" >
  661. creater_sn = #{item.createrSn,jdbcType=VARCHAR},
  662. </if>
  663. <if test="item.createTime != null" >
  664. create_time = #{item.createTime,jdbcType=VARCHAR},
  665. </if>
  666. <if test="item.moderSn != null" >
  667. moder_sn = #{item.moderSn,jdbcType=VARCHAR},
  668. </if>
  669. <if test="item.modTime != null" >
  670. mod_time = #{item.modTime,jdbcType=VARCHAR},
  671. </if>
  672. <if test="item.tstm != null" >
  673. tstm = #{item.tstm,jdbcType=TIMESTAMP},
  674. </if>
  675. <if test="item.exField != null" >
  676. ex_field = #{item.exField,jdbcType=VARCHAR},
  677. </if>
  678. <if test="item.exField2 != null" >
  679. ex_field2 = #{item.exField2,jdbcType=VARCHAR},
  680. </if>
  681. <if test="item.exField3 != null" >
  682. ex_field3 = #{item.exField3,jdbcType=VARCHAR},
  683. </if>
  684. <if test="item.exField4 != null" >
  685. ex_field4 = #{item.exField4,jdbcType=VARCHAR},
  686. </if>
  687. <if test="item.exField5 != null" >
  688. ex_field5 = #{item.exField5,jdbcType=VARCHAR},
  689. </if>
  690. </set>
  691. where wx_pay_sn = #{item.wxPaySn,jdbcType=VARCHAR}
  692. </foreach>
  693. </update>
  694. <select id="selectPayDocByDocStatus" resultMap="BaseResultMap" parameterType="java.lang.Integer">
  695. select
  696. <include refid="Base_Column_List" />
  697. from wx_cb_pay_doc
  698. where doc_status in ('10','11') limit #{limit}
  699. </select>
  700. </mapper>