WxOrderMapper.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  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.ccnet.wx.dao.mapper.ccnet.WxOrderMapper" >
  4. <resultMap id="BaseResultMap" type="com.emato.ccnet.wx.dao.entity.ccnet.WxOrder" >
  5. <id column="wx_order_sn" property="wxOrderSn" jdbcType="VARCHAR" />
  6. <result column="merch_order_id" property="merchOrderId" jdbcType="VARCHAR" />
  7. <result column="order_sn" property="orderSn" jdbcType="VARCHAR" />
  8. <result column="wx_order_id" property="wxOrderId" jdbcType="VARCHAR" />
  9. <result column="merch_sn" property="merchSn" jdbcType="VARCHAR" />
  10. <result column="merch_name" property="merchName" jdbcType="VARCHAR" />
  11. <result column="plat_sn" property="platSn" jdbcType="VARCHAR" />
  12. <result column="plat_name" property="platName" jdbcType="VARCHAR" />
  13. <result column="third_party_merch_code" property="thirdPartyMerchCode" jdbcType="VARCHAR" />
  14. <result column="third_party_merch_name" property="thirdPartyMerchName" jdbcType="VARCHAR" />
  15. <result column="place_orderl_time" property="placeOrderlTime" jdbcType="TIMESTAMP" />
  16. <result column="auto_send" property="autoSend" jdbcType="CHAR" />
  17. <result column="buyer_reg_no" property="buyerRegNo" jdbcType="VARCHAR" />
  18. <result column="buyer_bill_time" property="buyerBillTime" jdbcType="TIMESTAMP" />
  19. <result column="buyer_id_type" property="buyerIdType" jdbcType="VARCHAR" />
  20. <result column="buyer_id_code" property="buyerIdCode" jdbcType="VARCHAR" />
  21. <result column="buyer_name" property="buyerName" jdbcType="VARCHAR" />
  22. <result column="buyer_tel" property="buyerTel" jdbcType="VARCHAR" />
  23. <result column="consignee_id_type" property="consigneeIdType" jdbcType="VARCHAR" />
  24. <result column="consignee_id_code" property="consigneeIdCode" jdbcType="VARCHAR" />
  25. <result column="consignee_name" property="consigneeName" jdbcType="VARCHAR" />
  26. <result column="consignee_mob" property="consigneeMob" jdbcType="VARCHAR" />
  27. <result column="consignee_tel" property="consigneeTel" jdbcType="VARCHAR" />
  28. <result column="consignee_country_code" property="consigneeCountryCode" jdbcType="VARCHAR" />
  29. <result column="consignee_province_code" property="consigneeProvinceCode" jdbcType="VARCHAR" />
  30. <result column="consignee_province" property="consigneeProvince" jdbcType="VARCHAR" />
  31. <result column="consignee_city_code" property="consigneeCityCode" jdbcType="VARCHAR" />
  32. <result column="consignee_city" property="consigneeCity" jdbcType="VARCHAR" />
  33. <result column="consignee_district_code" property="consigneeDistrictCode" jdbcType="VARCHAR" />
  34. <result column="consignee_district" property="consigneeDistrict" jdbcType="VARCHAR" />
  35. <result column="consignee_address" property="consigneeAddress" jdbcType="VARCHAR" />
  36. <result column="consignee_zip_code" property="consigneeZipCode" jdbcType="VARCHAR" />
  37. <result column="payer_name" property="payerName" jdbcType="VARCHAR" />
  38. <result column="payer_id_type" property="payerIdType" jdbcType="VARCHAR" />
  39. <result column="payer_id_code" property="payerIdCode" jdbcType="VARCHAR" />
  40. <result column="payer_mob" property="payerMob" jdbcType="VARCHAR" />
  41. <result column="pay_ent_cus_code" property="payEntCusCode" jdbcType="VARCHAR" />
  42. <result column="pay_no" property="payNo" jdbcType="VARCHAR" />
  43. <result column="goods_value" property="goodsValue" jdbcType="DECIMAL" />
  44. <result column="freight" property="freight" jdbcType="DECIMAL" />
  45. <result column="discount" property="discount" jdbcType="DECIMAL" />
  46. <result column="tax_total" property="taxTotal" jdbcType="DECIMAL" />
  47. <result column="actural_paid" property="acturalPaid" jdbcType="DECIMAL" />
  48. <result column="pay_time" property="payTime" jdbcType="TIMESTAMP" />
  49. <result column="expr_type" property="exprType" jdbcType="CHAR" />
  50. <result column="expr_comp_id" property="exprCompId" jdbcType="VARCHAR" />
  51. <result column="expr_agreement_type" property="exprAgreementType" jdbcType="CHAR" />
  52. <result column="decl_expr_fee" property="declExprFee" jdbcType="DECIMAL" />
  53. <result column="batch_numbers" property="batchNumbers" jdbcType="VARCHAR" />
  54. <result column="decl_post_tax" property="declPostTax" jdbcType="DECIMAL" />
  55. <result column="shop_id" property="shopId" jdbcType="VARCHAR" />
  56. <result column="extra_tag" property="extraTag" jdbcType="VARCHAR" />
  57. <result column="currency_code" property="currencyCode" jdbcType="VARCHAR" />
  58. <result column="ws_flag" property="wsFlag" jdbcType="CHAR" />
  59. <result column="buyer_pay_check" property="buyerPayCheck" jdbcType="CHAR" />
  60. <result column="wx_order_detail" property="wxOrderDetail" jdbcType="CHAR" />
  61. <result column="clec_order_status" property="clecOrderStatus" jdbcType="CHAR" />
  62. <result column="way_order_status" property="wayOrderStatus" jdbcType="CHAR" />
  63. <result column="project_check_status" property="projectCheckStatus" jdbcType="CHAR" />
  64. <result column="play_order_status" property="playOrderStatus" jdbcType="CHAR" />
  65. <result column="remark" property="remark" jdbcType="VARCHAR" />
  66. <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
  67. <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
  68. <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
  69. <result column="mod_time" property="modTime" jdbcType="TIMESTAMP" />
  70. <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
  71. <result column="ex_field" property="exField" jdbcType="VARCHAR" />
  72. <result column="ex_field2" property="exField2" jdbcType="VARCHAR" />
  73. <result column="ex_field3" property="exField3" jdbcType="VARCHAR" />
  74. <result column="ex_field4" property="exField4" jdbcType="VARCHAR" />
  75. <result column="ex_field5" property="exField5" jdbcType="VARCHAR" />
  76. </resultMap>
  77. <sql id="Base_Column_List" >
  78. wx_order_sn, merch_order_id, order_sn, wx_order_id, merch_sn, merch_name, plat_sn,
  79. plat_name, third_party_merch_code, third_party_merch_name, place_orderl_time, auto_send,
  80. buyer_reg_no, buyer_bill_time, buyer_id_type, buyer_id_code, buyer_name, buyer_tel,
  81. consignee_id_type, consignee_id_code, consignee_name, consignee_mob, consignee_tel,
  82. consignee_country_code, consignee_province_code, consignee_province, consignee_city_code,
  83. consignee_city, consignee_district_code, consignee_district, consignee_address, consignee_zip_code,
  84. payer_name, payer_id_type, payer_id_code, payer_mob, pay_ent_cus_code, pay_no, goods_value,
  85. freight, discount, tax_total, actural_paid, pay_time, expr_type, expr_comp_id, decl_expr_fee,
  86. batch_numbers, decl_post_tax, shop_id, extra_tag, currency_code, ws_flag, buyer_pay_check, wx_order_detail, clec_order_status,expr_agreement_type,
  87. way_order_status, project_check_status, play_order_status, remark, creater_sn, create_time,
  88. moder_sn, mod_time, tstm, ex_field, ex_field2, ex_field3, ex_field4, ex_field5
  89. </sql>
  90. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  91. select
  92. <include refid="Base_Column_List" />
  93. from wx_order
  94. where wx_order_sn = #{wxOrderSn,jdbcType=VARCHAR}
  95. </select>
  96. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  97. delete from wx_order
  98. where wx_order_sn = #{wxOrderSn,jdbcType=VARCHAR}
  99. </delete>
  100. <insert id="insertSelective" parameterType="com.emato.ccnet.wx.dao.entity.ccnet.WxOrder" >
  101. insert into wx_order
  102. <trim prefix="(" suffix=")" suffixOverrides="," >
  103. <if test="wxOrderSn != null" >
  104. wx_order_sn,
  105. </if>
  106. <if test="merchOrderId != null" >
  107. merch_order_id,
  108. </if>
  109. <if test="orderSn != null" >
  110. order_sn,
  111. </if>
  112. <if test="wxOrderId != null" >
  113. wx_order_id,
  114. </if>
  115. <if test="merchSn != null" >
  116. merch_sn,
  117. </if>
  118. <if test="merchName != null" >
  119. merch_name,
  120. </if>
  121. <if test="platSn != null" >
  122. plat_sn,
  123. </if>
  124. <if test="platName != null" >
  125. plat_name,
  126. </if>
  127. <if test="thirdPartyMerchCode != null" >
  128. third_party_merch_code,
  129. </if>
  130. <if test="thirdPartyMerchName != null" >
  131. third_party_merch_name,
  132. </if>
  133. <if test="placeOrderlTime != null" >
  134. place_orderl_time,
  135. </if>
  136. <if test="autoSend != null" >
  137. auto_send,
  138. </if>
  139. <if test="buyerRegNo != null" >
  140. buyer_reg_no,
  141. </if>
  142. <if test="buyerBillTime != null" >
  143. buyer_bill_time,
  144. </if>
  145. <if test="buyerIdType != null" >
  146. buyer_id_type,
  147. </if>
  148. <if test="buyerIdCode != null" >
  149. buyer_id_code,
  150. </if>
  151. <if test="buyerName != null" >
  152. buyer_name,
  153. </if>
  154. <if test="buyerTel != null" >
  155. buyer_tel,
  156. </if>
  157. <if test="consigneeIdType != null" >
  158. consignee_id_type,
  159. </if>
  160. <if test="consigneeIdCode != null" >
  161. consignee_id_code,
  162. </if>
  163. <if test="consigneeName != null" >
  164. consignee_name,
  165. </if>
  166. <if test="consigneeMob != null" >
  167. consignee_mob,
  168. </if>
  169. <if test="consigneeTel != null" >
  170. consignee_tel,
  171. </if>
  172. <if test="consigneeCountryCode != null" >
  173. consignee_country_code,
  174. </if>
  175. <if test="consigneeProvinceCode != null" >
  176. consignee_province_code,
  177. </if>
  178. <if test="consigneeProvince != null" >
  179. consignee_province,
  180. </if>
  181. <if test="consigneeCityCode != null" >
  182. consignee_city_code,
  183. </if>
  184. <if test="consigneeCity != null" >
  185. consignee_city,
  186. </if>
  187. <if test="consigneeDistrictCode != null" >
  188. consignee_district_code,
  189. </if>
  190. <if test="consigneeDistrict != null" >
  191. consignee_district,
  192. </if>
  193. <if test="consigneeAddress != null" >
  194. consignee_address,
  195. </if>
  196. <if test="consigneeZipCode != null" >
  197. consignee_zip_code,
  198. </if>
  199. <if test="payerName != null" >
  200. payer_name,
  201. </if>
  202. <if test="payerIdType != null" >
  203. payer_id_type,
  204. </if>
  205. <if test="payerIdCode != null" >
  206. payer_id_code,
  207. </if>
  208. <if test="payerMob != null" >
  209. payer_mob,
  210. </if>
  211. <if test="payEntCusCode != null" >
  212. pay_ent_cus_code,
  213. </if>
  214. <if test="payNo != null" >
  215. pay_no,
  216. </if>
  217. <if test="goodsValue != null" >
  218. goods_value,
  219. </if>
  220. <if test="freight != null" >
  221. freight,
  222. </if>
  223. <if test="discount != null" >
  224. discount,
  225. </if>
  226. <if test="taxTotal != null" >
  227. tax_total,
  228. </if>
  229. <if test="acturalPaid != null" >
  230. actural_paid,
  231. </if>
  232. <if test="payTime != null" >
  233. pay_time,
  234. </if>
  235. <if test="exprType != null" >
  236. expr_type,
  237. </if>
  238. <if test="exprCompId != null" >
  239. expr_comp_id,
  240. </if>
  241. <if test="exprAgreementType != null" >
  242. expr_agreement_type,
  243. </if>
  244. <if test="declExprFee != null" >
  245. decl_expr_fee,
  246. </if>
  247. <if test="batchNumbers != null" >
  248. batch_numbers,
  249. </if>
  250. <if test="declPostTax != null" >
  251. decl_post_tax,
  252. </if>
  253. <if test="shopId != null" >
  254. shop_id,
  255. </if>
  256. <if test="extraTag != null" >
  257. extra_tag,
  258. </if>
  259. <if test="currencyCode != null" >
  260. currency_code,
  261. </if>
  262. <if test="wsFlag != null" >
  263. ws_flag,
  264. </if>
  265. <if test="buyerPayCheck != null" >
  266. buyer_pay_check,
  267. </if>
  268. <if test="wxOrderDetail != null" >
  269. wx_order_detail,
  270. </if>
  271. <if test="clecOrderStatus != null" >
  272. clec_order_status,
  273. </if>
  274. <if test="wayOrderStatus != null" >
  275. way_order_status,
  276. </if>
  277. <if test="projectCheckStatus != null" >
  278. project_check_status,
  279. </if>
  280. <if test="playOrderStatus != null" >
  281. play_order_status,
  282. </if>
  283. <if test="remark != null" >
  284. remark,
  285. </if>
  286. <if test="createrSn != null" >
  287. creater_sn,
  288. </if>
  289. <if test="createTime != null" >
  290. create_time,
  291. </if>
  292. <if test="moderSn != null" >
  293. moder_sn,
  294. </if>
  295. <if test="modTime != null" >
  296. mod_time,
  297. </if>
  298. <if test="tstm != null" >
  299. tstm,
  300. </if>
  301. <if test="exField != null" >
  302. ex_field,
  303. </if>
  304. <if test="exField2 != null" >
  305. ex_field2,
  306. </if>
  307. <if test="exField3 != null" >
  308. ex_field3,
  309. </if>
  310. <if test="exField4 != null" >
  311. ex_field4,
  312. </if>
  313. <if test="exField5 != null" >
  314. ex_field5,
  315. </if>
  316. </trim>
  317. <trim prefix="values (" suffix=")" suffixOverrides="," >
  318. <if test="wxOrderSn != null" >
  319. #{wxOrderSn,jdbcType=VARCHAR},
  320. </if>
  321. <if test="merchOrderId != null" >
  322. #{merchOrderId,jdbcType=VARCHAR},
  323. </if>
  324. <if test="orderSn != null" >
  325. #{orderSn,jdbcType=VARCHAR},
  326. </if>
  327. <if test="wxOrderId != null" >
  328. #{wxOrderId,jdbcType=VARCHAR},
  329. </if>
  330. <if test="merchSn != null" >
  331. #{merchSn,jdbcType=VARCHAR},
  332. </if>
  333. <if test="merchName != null" >
  334. #{merchName,jdbcType=VARCHAR},
  335. </if>
  336. <if test="platSn != null" >
  337. #{platSn,jdbcType=VARCHAR},
  338. </if>
  339. <if test="platName != null" >
  340. #{platName,jdbcType=VARCHAR},
  341. </if>
  342. <if test="thirdPartyMerchCode != null" >
  343. #{thirdPartyMerchCode,jdbcType=VARCHAR},
  344. </if>
  345. <if test="thirdPartyMerchName != null" >
  346. #{thirdPartyMerchName,jdbcType=VARCHAR},
  347. </if>
  348. <if test="placeOrderlTime != null" >
  349. #{placeOrderlTime,jdbcType=TIMESTAMP},
  350. </if>
  351. <if test="autoSend != null" >
  352. #{autoSend,jdbcType=CHAR},
  353. </if>
  354. <if test="buyerRegNo != null" >
  355. #{buyerRegNo,jdbcType=VARCHAR},
  356. </if>
  357. <if test="buyerBillTime != null" >
  358. #{buyerBillTime,jdbcType=TIMESTAMP},
  359. </if>
  360. <if test="buyerIdType != null" >
  361. #{buyerIdType,jdbcType=VARCHAR},
  362. </if>
  363. <if test="buyerIdCode != null" >
  364. #{buyerIdCode,jdbcType=VARCHAR},
  365. </if>
  366. <if test="buyerName != null" >
  367. #{buyerName,jdbcType=VARCHAR},
  368. </if>
  369. <if test="buyerTel != null" >
  370. #{buyerTel,jdbcType=VARCHAR},
  371. </if>
  372. <if test="consigneeIdType != null" >
  373. #{consigneeIdType,jdbcType=VARCHAR},
  374. </if>
  375. <if test="consigneeIdCode != null" >
  376. #{consigneeIdCode,jdbcType=VARCHAR},
  377. </if>
  378. <if test="consigneeName != null" >
  379. #{consigneeName,jdbcType=VARCHAR},
  380. </if>
  381. <if test="consigneeMob != null" >
  382. #{consigneeMob,jdbcType=VARCHAR},
  383. </if>
  384. <if test="consigneeTel != null" >
  385. #{consigneeTel,jdbcType=VARCHAR},
  386. </if>
  387. <if test="consigneeCountryCode != null" >
  388. #{consigneeCountryCode,jdbcType=VARCHAR},
  389. </if>
  390. <if test="consigneeProvinceCode != null" >
  391. #{consigneeProvinceCode,jdbcType=VARCHAR},
  392. </if>
  393. <if test="consigneeProvince != null" >
  394. #{consigneeProvince,jdbcType=VARCHAR},
  395. </if>
  396. <if test="consigneeCityCode != null" >
  397. #{consigneeCityCode,jdbcType=VARCHAR},
  398. </if>
  399. <if test="consigneeCity != null" >
  400. #{consigneeCity,jdbcType=VARCHAR},
  401. </if>
  402. <if test="consigneeDistrictCode != null" >
  403. #{consigneeDistrictCode,jdbcType=VARCHAR},
  404. </if>
  405. <if test="consigneeDistrict != null" >
  406. #{consigneeDistrict,jdbcType=VARCHAR},
  407. </if>
  408. <if test="consigneeAddress != null" >
  409. #{consigneeAddress,jdbcType=VARCHAR},
  410. </if>
  411. <if test="consigneeZipCode != null" >
  412. #{consigneeZipCode,jdbcType=VARCHAR},
  413. </if>
  414. <if test="payerName != null" >
  415. #{payerName,jdbcType=VARCHAR},
  416. </if>
  417. <if test="payerIdType != null" >
  418. #{payerIdType,jdbcType=VARCHAR},
  419. </if>
  420. <if test="payerIdCode != null" >
  421. #{payerIdCode,jdbcType=VARCHAR},
  422. </if>
  423. <if test="payerMob != null" >
  424. #{payerMob,jdbcType=VARCHAR},
  425. </if>
  426. <if test="payEntCusCode != null" >
  427. #{payEntCusCode,jdbcType=VARCHAR},
  428. </if>
  429. <if test="payNo != null" >
  430. #{payNo,jdbcType=VARCHAR},
  431. </if>
  432. <if test="goodsValue != null" >
  433. #{goodsValue,jdbcType=DECIMAL},
  434. </if>
  435. <if test="freight != null" >
  436. #{freight,jdbcType=DECIMAL},
  437. </if>
  438. <if test="discount != null" >
  439. #{discount,jdbcType=DECIMAL},
  440. </if>
  441. <if test="taxTotal != null" >
  442. #{taxTotal,jdbcType=DECIMAL},
  443. </if>
  444. <if test="acturalPaid != null" >
  445. #{acturalPaid,jdbcType=DECIMAL},
  446. </if>
  447. <if test="payTime != null" >
  448. #{payTime,jdbcType=TIMESTAMP},
  449. </if>
  450. <if test="exprType != null" >
  451. #{exprType,jdbcType=CHAR},
  452. </if>
  453. <if test="exprCompId != null" >
  454. #{exprCompId,jdbcType=VARCHAR},
  455. </if>
  456. <if test="exprAgreementType != null" >
  457. #{exprAgreementType,jdbcType=CHAR},
  458. </if>
  459. <if test="declExprFee != null" >
  460. #{declExprFee,jdbcType=DECIMAL},
  461. </if>
  462. <if test="batchNumbers != null" >
  463. #{batchNumbers,jdbcType=VARCHAR},
  464. </if>
  465. <if test="declPostTax != null" >
  466. #{declPostTax,jdbcType=DECIMAL},
  467. </if>
  468. <if test="shopId != null" >
  469. #{shopId,jdbcType=VARCHAR},
  470. </if>
  471. <if test="extraTag != null" >
  472. #{extraTag,jdbcType=VARCHAR},
  473. </if>
  474. <if test="currencyCode != null" >
  475. #{currencyCode,jdbcType=VARCHAR},
  476. </if>
  477. <if test="wsFlag != null" >
  478. #{wsFlag,jdbcType=CHAR},
  479. </if>
  480. <if test="buyerPayCheck != null" >
  481. #{buyerPayCheck,jdbcType=CHAR},
  482. </if>
  483. <if test="wxOrderDetail != null" >
  484. #{wxOrderDetail,jdbcType=CHAR},
  485. </if>
  486. <if test="clecOrderStatus != null" >
  487. #{clecOrderStatus,jdbcType=CHAR},
  488. </if>
  489. <if test="wayOrderStatus != null" >
  490. #{wayOrderStatus,jdbcType=CHAR},
  491. </if>
  492. <if test="projectCheckStatus != null" >
  493. #{projectCheckStatus,jdbcType=CHAR},
  494. </if>
  495. <if test="playOrderStatus != null" >
  496. #{playOrderStatus,jdbcType=CHAR},
  497. </if>
  498. <if test="remark != null" >
  499. #{remark,jdbcType=VARCHAR},
  500. </if>
  501. <if test="createrSn != null" >
  502. #{createrSn,jdbcType=VARCHAR},
  503. </if>
  504. <if test="createTime != null" >
  505. #{createTime,jdbcType=TIMESTAMP},
  506. </if>
  507. <if test="moderSn != null" >
  508. #{moderSn,jdbcType=VARCHAR},
  509. </if>
  510. <if test="modTime != null" >
  511. #{modTime,jdbcType=TIMESTAMP},
  512. </if>
  513. <if test="tstm != null" >
  514. #{tstm,jdbcType=TIMESTAMP},
  515. </if>
  516. <if test="exField != null" >
  517. #{exField,jdbcType=VARCHAR},
  518. </if>
  519. <if test="exField2 != null" >
  520. #{exField2,jdbcType=VARCHAR},
  521. </if>
  522. <if test="exField3 != null" >
  523. #{exField3,jdbcType=VARCHAR},
  524. </if>
  525. <if test="exField4 != null" >
  526. #{exField4,jdbcType=VARCHAR},
  527. </if>
  528. <if test="exField5 != null" >
  529. #{exField5,jdbcType=VARCHAR},
  530. </if>
  531. </trim>
  532. </insert>
  533. <update id="updateByPrimaryKeySelective" parameterType="com.emato.ccnet.wx.dao.entity.ccnet.WxOrder" >
  534. update wx_order
  535. <set >
  536. <if test="merchOrderId != null" >
  537. merch_order_id = #{merchOrderId,jdbcType=VARCHAR},
  538. </if>
  539. <if test="orderSn != null" >
  540. order_sn = #{orderSn,jdbcType=VARCHAR},
  541. </if>
  542. <if test="wxOrderId != null" >
  543. wx_order_id = #{wxOrderId,jdbcType=VARCHAR},
  544. </if>
  545. <if test="merchSn != null" >
  546. merch_sn = #{merchSn,jdbcType=VARCHAR},
  547. </if>
  548. <if test="merchName != null" >
  549. merch_name = #{merchName,jdbcType=VARCHAR},
  550. </if>
  551. <if test="platSn != null" >
  552. plat_sn = #{platSn,jdbcType=VARCHAR},
  553. </if>
  554. <if test="platName != null" >
  555. plat_name = #{platName,jdbcType=VARCHAR},
  556. </if>
  557. <if test="thirdPartyMerchCode != null" >
  558. third_party_merch_code = #{thirdPartyMerchCode,jdbcType=VARCHAR},
  559. </if>
  560. <if test="thirdPartyMerchName != null" >
  561. third_party_merch_name = #{thirdPartyMerchName,jdbcType=VARCHAR},
  562. </if>
  563. <if test="placeOrderlTime != null" >
  564. place_orderl_time = #{placeOrderlTime,jdbcType=TIMESTAMP},
  565. </if>
  566. <if test="autoSend != null" >
  567. auto_send = #{autoSend,jdbcType=CHAR},
  568. </if>
  569. <if test="buyerRegNo != null" >
  570. buyer_reg_no = #{buyerRegNo,jdbcType=VARCHAR},
  571. </if>
  572. <if test="buyerBillTime != null" >
  573. buyer_bill_time = #{buyerBillTime,jdbcType=TIMESTAMP},
  574. </if>
  575. <if test="buyerIdType != null" >
  576. buyer_id_type = #{buyerIdType,jdbcType=VARCHAR},
  577. </if>
  578. <if test="buyerIdCode != null" >
  579. buyer_id_code = #{buyerIdCode,jdbcType=VARCHAR},
  580. </if>
  581. <if test="buyerName != null" >
  582. buyer_name = #{buyerName,jdbcType=VARCHAR},
  583. </if>
  584. <if test="buyerTel != null" >
  585. buyer_tel = #{buyerTel,jdbcType=VARCHAR},
  586. </if>
  587. <if test="consigneeIdType != null" >
  588. consignee_id_type = #{consigneeIdType,jdbcType=VARCHAR},
  589. </if>
  590. <if test="consigneeIdCode != null" >
  591. consignee_id_code = #{consigneeIdCode,jdbcType=VARCHAR},
  592. </if>
  593. <if test="consigneeName != null" >
  594. consignee_name = #{consigneeName,jdbcType=VARCHAR},
  595. </if>
  596. <if test="consigneeMob != null" >
  597. consignee_mob = #{consigneeMob,jdbcType=VARCHAR},
  598. </if>
  599. <if test="consigneeTel != null" >
  600. consignee_tel = #{consigneeTel,jdbcType=VARCHAR},
  601. </if>
  602. <if test="consigneeCountryCode != null" >
  603. consignee_country_code = #{consigneeCountryCode,jdbcType=VARCHAR},
  604. </if>
  605. <if test="consigneeProvinceCode != null" >
  606. consignee_province_code = #{consigneeProvinceCode,jdbcType=VARCHAR},
  607. </if>
  608. <if test="consigneeProvince != null" >
  609. consignee_province = #{consigneeProvince,jdbcType=VARCHAR},
  610. </if>
  611. <if test="consigneeCityCode != null" >
  612. consignee_city_code = #{consigneeCityCode,jdbcType=VARCHAR},
  613. </if>
  614. <if test="consigneeCity != null" >
  615. consignee_city = #{consigneeCity,jdbcType=VARCHAR},
  616. </if>
  617. <if test="consigneeDistrictCode != null" >
  618. consignee_district_code = #{consigneeDistrictCode,jdbcType=VARCHAR},
  619. </if>
  620. <if test="consigneeDistrict != null" >
  621. consignee_district = #{consigneeDistrict,jdbcType=VARCHAR},
  622. </if>
  623. <if test="consigneeAddress != null" >
  624. consignee_address = #{consigneeAddress,jdbcType=VARCHAR},
  625. </if>
  626. <if test="consigneeZipCode != null" >
  627. consignee_zip_code = #{consigneeZipCode,jdbcType=VARCHAR},
  628. </if>
  629. <if test="payerName != null" >
  630. payer_name = #{payerName,jdbcType=VARCHAR},
  631. </if>
  632. <if test="payerIdType != null" >
  633. payer_id_type = #{payerIdType,jdbcType=VARCHAR},
  634. </if>
  635. <if test="payerIdCode != null" >
  636. payer_id_code = #{payerIdCode,jdbcType=VARCHAR},
  637. </if>
  638. <if test="payerMob != null" >
  639. payer_mob = #{payerMob,jdbcType=VARCHAR},
  640. </if>
  641. <if test="payEntCusCode != null" >
  642. pay_ent_cus_code = #{payEntCusCode,jdbcType=VARCHAR},
  643. </if>
  644. <if test="payNo != null" >
  645. pay_no = #{payNo,jdbcType=VARCHAR},
  646. </if>
  647. <if test="goodsValue != null" >
  648. goods_value = #{goodsValue,jdbcType=DECIMAL},
  649. </if>
  650. <if test="freight != null" >
  651. freight = #{freight,jdbcType=DECIMAL},
  652. </if>
  653. <if test="discount != null" >
  654. discount = #{discount,jdbcType=DECIMAL},
  655. </if>
  656. <if test="taxTotal != null" >
  657. tax_total = #{taxTotal,jdbcType=DECIMAL},
  658. </if>
  659. <if test="acturalPaid != null" >
  660. actural_paid = #{acturalPaid,jdbcType=DECIMAL},
  661. </if>
  662. <if test="payTime != null" >
  663. pay_time = #{payTime,jdbcType=TIMESTAMP},
  664. </if>
  665. <if test="exprType != null" >
  666. expr_type = #{exprType,jdbcType=CHAR},
  667. </if>
  668. <if test="exprCompId != null" >
  669. expr_comp_id = #{exprCompId,jdbcType=VARCHAR},
  670. </if>
  671. <if test="exprAgreementType != null" >
  672. expr_agreement_type = #{exprAgreementType,jdbcType=CHAR},
  673. </if>
  674. <if test="declExprFee != null" >
  675. decl_expr_fee = #{declExprFee,jdbcType=DECIMAL},
  676. </if>
  677. <if test="batchNumbers != null" >
  678. batch_numbers = #{batchNumbers,jdbcType=VARCHAR},
  679. </if>
  680. <if test="declPostTax != null" >
  681. decl_post_tax = #{declPostTax,jdbcType=DECIMAL},
  682. </if>
  683. <if test="shopId != null" >
  684. shop_id = #{shopId,jdbcType=VARCHAR},
  685. </if>
  686. <if test="extraTag != null" >
  687. extra_tag = #{extraTag,jdbcType=VARCHAR},
  688. </if>
  689. <if test="currencyCode != null" >
  690. currency_code = #{currencyCode,jdbcType=VARCHAR},
  691. </if>
  692. <if test="wsFlag != null" >
  693. ws_flag = #{wsFlag,jdbcType=CHAR},
  694. </if>
  695. <if test="buyerPayCheck != null" >
  696. buyer_pay_check = #{buyerPayCheck,jdbcType=CHAR},
  697. </if>
  698. <if test="wxOrderDetail != null" >
  699. wx_order_detail = #{wxOrderDetail,jdbcType=CHAR},
  700. </if>
  701. <if test="clecOrderStatus != null" >
  702. clec_order_status = #{clecOrderStatus,jdbcType=CHAR},
  703. </if>
  704. <if test="wayOrderStatus != null" >
  705. way_order_status = #{wayOrderStatus,jdbcType=CHAR},
  706. </if>
  707. <if test="projectCheckStatus != null" >
  708. project_check_status = #{projectCheckStatus,jdbcType=CHAR},
  709. </if>
  710. <if test="playOrderStatus != null" >
  711. play_order_status = #{playOrderStatus,jdbcType=CHAR},
  712. </if>
  713. <if test="remark != null" >
  714. remark = #{remark,jdbcType=VARCHAR},
  715. </if>
  716. <if test="createrSn != null" >
  717. creater_sn = #{createrSn,jdbcType=VARCHAR},
  718. </if>
  719. <if test="createTime != null" >
  720. create_time = #{createTime,jdbcType=TIMESTAMP},
  721. </if>
  722. <if test="moderSn != null" >
  723. moder_sn = #{moderSn,jdbcType=VARCHAR},
  724. </if>
  725. <if test="modTime != null" >
  726. mod_time = #{modTime,jdbcType=TIMESTAMP},
  727. </if>
  728. <if test="tstm != null" >
  729. tstm = #{tstm,jdbcType=TIMESTAMP},
  730. </if>
  731. <if test="exField != null" >
  732. ex_field = #{exField,jdbcType=VARCHAR},
  733. </if>
  734. <if test="exField2 != null" >
  735. ex_field2 = #{exField2,jdbcType=VARCHAR},
  736. </if>
  737. <if test="exField3 != null" >
  738. ex_field3 = #{exField3,jdbcType=VARCHAR},
  739. </if>
  740. <if test="exField4 != null" >
  741. ex_field4 = #{exField4,jdbcType=VARCHAR},
  742. </if>
  743. <if test="exField5 != null" >
  744. ex_field5 = #{exField5,jdbcType=VARCHAR},
  745. </if>
  746. </set>
  747. where wx_order_sn = #{wxOrderSn,jdbcType=VARCHAR}
  748. </update>
  749. </mapper>