KwaixiaodianOrderCursorListMapper.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruixuan.isc.mapper.KwaixiaodianOrderCursorListMapper">
  6. <insert id="replaceBatchKWaixiaodianOrderCursorList">
  7. replace into `ruixuan`.kwaixiaodian_order_cursor_list(
  8. company_id,
  9. company_name,
  10. shop_id,
  11. shop_name,
  12. oid,
  13. pay_time,
  14. buyer_image,
  15. buyer_open_id,
  16. buyer_nick,
  17. seller_open_id,
  18. seller_nick,
  19. express_fee,
  20. discount_fee,
  21. total_fee,
  22. status,
  23. send_time,
  24. refund_time,
  25. create_time,
  26. update_time,
  27. remark,
  28. the_day_of_deliver_goods_time,
  29. promise_time_stamp_of_delivery,
  30. cps_type,
  31. valid_promise_shipment_time_stamp,
  32. pre_sale,
  33. recv_time,
  34. co_type,
  35. comment_status,
  36. pay_type,
  37. risk_code,
  38. pay_channel,
  39. seller_delay_promise_time_stamp,
  40. priority_delivery,
  41. remind_shipment_sign,
  42. remind_shipment_time,
  43. order_seller_role_info,
  44. disable_delivery_reason_code,
  45. multiple_pieces_no,
  46. all_activity_type,
  47. order_labels,
  48. enable_split_delivery_order,
  49. allowance_express_fee,
  50. pay_channel_discount,
  51. trade_in_pay_after_promo_amount,
  52. government_discount,
  53. sku_id,
  54. rel_sku_id,
  55. sku_desc,
  56. sku_nick,
  57. item_id,
  58. rel_item_id,
  59. item_title,
  60. item_link_url,
  61. item_pic_url,
  62. num,
  63. original_price,
  64. item_discount_fee,
  65. price,
  66. item_type,
  67. item_prev_info,
  68. goods_code,
  69. warehouse_code,
  70. good_store_code,
  71. service_rule,
  72. freight,
  73. freight_provider_type,
  74. first_order_guarantee,
  75. instant_delivery,
  76. instant_refund,
  77. compensate_fake,
  78. service_rule_info,
  79. category_info,
  80. order_refund_list,
  81. order_logistics_info,
  82. order_note,
  83. encrypted_consignee,
  84. desensitise_consignee,
  85. encrypted_mobile,
  86. desensitise_mobile,
  87. province_code,
  88. province,
  89. city_code,
  90. city,
  91. district_code,
  92. district,
  93. town_code,
  94. town,
  95. encrypted_address,
  96. desensitise_address,
  97. recharge_account,
  98. coordinate_info,
  99. order_step_info,
  100. distributor_id,
  101. distributor_name,
  102. order_delivery_info,
  103. sub_order_info,
  104. stat_date,
  105. stat_hour
  106. )
  107. values
  108. <foreach collection="list" item="li" separator=",">
  109. (
  110. #{li.companyId},
  111. #{li.companyName},
  112. #{li.shopId},
  113. #{li.shopName},
  114. #{li.oid},
  115. #{li.payTime},
  116. #{li.buyerImage},
  117. #{li.buyerOpenId},
  118. #{li.buyerNick},
  119. #{li.sellerOpenId},
  120. #{li.sellerNick},
  121. #{li.expressFee},
  122. #{li.discountFee},
  123. #{li.totalFee},
  124. #{li.status},
  125. #{li.sendTime},
  126. #{li.refundTime},
  127. #{li.createTime},
  128. #{li.updateTime},
  129. #{li.remark},
  130. #{li.theDayOfDeliverGoodsTime},
  131. #{li.promiseTimeStampOfDelivery},
  132. #{li.cpsType},
  133. #{li.validPromiseShipmentTimeStamp},
  134. #{li.preSale},
  135. #{li.recvTime},
  136. #{li.coType},
  137. #{li.commentStatus},
  138. #{li.payType},
  139. #{li.riskCode},
  140. #{li.payChannel},
  141. #{li.sellerDelayPromiseTimeStamp},
  142. #{li.priorityDelivery},
  143. #{li.remindShipmentSign},
  144. #{li.remindShipmentTime},
  145. #{li.orderSellerRoleInfo},
  146. #{li.disableDeliveryReasonCode},
  147. #{li.multiplePiecesNo},
  148. #{li.allActivityType},
  149. #{li.orderLabels},
  150. #{li.enableSplitDeliveryOrderb},
  151. #{li.allowanceExpressFee},
  152. #{li.payChannelDiscount},
  153. #{li.tradeInPayAfterPromoAmount},
  154. #{li.governmentDiscount},
  155. #{li.skuId},
  156. #{li.relSkuId},
  157. #{li.skuDesc},
  158. #{li.skuNick},
  159. #{li.itemId},
  160. #{li.relItemId},
  161. #{li.itemTitle},
  162. #{li.itemLinkUrl},
  163. #{li.itemPicUrl},
  164. #{li.num},
  165. #{li.originalPrice},
  166. #{li.itemDiscountFee},
  167. #{li.price},
  168. #{li.itemType},
  169. #{li.itemPrevInfo},
  170. #{li.goodsCode},
  171. #{li.warehouseCode},
  172. #{li.goodStoreCode},
  173. #{li.serviceRule},
  174. #{li.freight},
  175. #{li.freightProviderType},
  176. #{li.firstOrderGuarantee},
  177. #{li.instantDelivery},
  178. #{li.instantRefund},
  179. #{li.compensateFake},
  180. #{li.serviceRuleInfo},
  181. #{li.categoryInfo},
  182. #{li.orderRefundList},
  183. #{li.orderLogisticsInfo},
  184. #{li.orderNote},
  185. #{li.encryptedConsignee},
  186. #{li.desensitiseConsignee},
  187. #{li.encryptedMobile},
  188. #{li.desensitiseMobile},
  189. #{li.provinceCode},
  190. #{li.province},
  191. #{li.cityCode},
  192. #{li.city},
  193. #{li.districtCode},
  194. #{li.district},
  195. #{li.townCode},
  196. #{li.town},
  197. #{li.encryptedAddress},
  198. #{li.desensitiseAddress},
  199. #{li.rechargeAccount},
  200. #{li.coordinateInfo},
  201. #{li.orderStepInfo},
  202. #{li.distributorId},
  203. #{li.distributorName},
  204. #{li.orderDeliveryInfo},
  205. #{li.subOrderInfo},
  206. #{li.statDate},
  207. #{li.statHour}
  208. )
  209. </foreach>
  210. </insert>
  211. <insert id="insertKWaixiaodianOrderCursorList">
  212. replace
  213. INTO `ruixuan`.kwaixiaodian_order_cursor_list(
  214. company_id,
  215. company_name,
  216. shop_id,
  217. shop_name,
  218. oid,
  219. pay_time,
  220. buyer_image,
  221. buyer_open_id,
  222. buyer_nick,
  223. seller_open_id,
  224. seller_nick,
  225. express_fee,
  226. discount_fee,
  227. total_fee,
  228. status,
  229. send_time,
  230. refund_time,
  231. create_time,
  232. update_time,
  233. remark,
  234. the_day_of_deliver_goods_time,
  235. promise_time_stamp_of_delivery,
  236. cps_type,
  237. valid_promise_shipment_time_stamp,
  238. pre_sale,
  239. recv_time,
  240. co_type,
  241. comment_status,
  242. pay_type,
  243. risk_code,
  244. pay_channel,
  245. seller_delay_promise_time_stamp,
  246. priority_delivery,
  247. remind_shipment_sign,
  248. remind_shipment_time,
  249. order_seller_role_info,
  250. disable_delivery_reason_code,
  251. multiple_pieces_no,
  252. all_activity_type,
  253. order_labels,
  254. enable_split_delivery_order,
  255. allowance_express_fee,
  256. pay_channel_discount,
  257. trade_in_pay_after_promo_amount,
  258. government_discount,
  259. sku_id,
  260. rel_sku_id,
  261. sku_desc,
  262. sku_nick,
  263. item_id,
  264. rel_item_id,
  265. item_title,
  266. item_link_url,
  267. item_pic_url,
  268. num,
  269. original_price,
  270. item_discount_fee,
  271. price,
  272. item_type,
  273. item_prev_info,
  274. goods_code,
  275. warehouse_code,
  276. good_store_code,
  277. service_rule,
  278. freight,
  279. freight_provider_type,
  280. first_order_guarantee,
  281. instant_delivery,
  282. instant_refund,
  283. compensate_fake,
  284. service_rule_info,
  285. category_info,
  286. order_refund_list,
  287. order_logistics_info,
  288. order_note,
  289. encrypted_consignee,
  290. desensitise_consignee,
  291. encrypted_mobile,
  292. desensitise_mobile,
  293. province_code,
  294. province,
  295. city_code,
  296. city,
  297. district_code,
  298. district,
  299. town_code,
  300. town,
  301. encrypted_address,
  302. desensitise_address,
  303. recharge_account,
  304. coordinate_info,
  305. order_step_info,
  306. distributor_id,
  307. distributor_name,
  308. order_delivery_info,
  309. sub_order_info,
  310. stat_date,
  311. stat_hour
  312. )
  313. VALUES
  314. (
  315. #{order.companyId},
  316. #{order.companyName},
  317. #{order.shopId},
  318. #{order.shopName},
  319. #{order.oid},
  320. #{order.payTime},
  321. #{order.buyerImage},
  322. #{order.buyerOpenId},
  323. #{order.buyerNick},
  324. #{order.sellerOpenId},
  325. #{order.sellerNick},
  326. #{order.expressFee},
  327. #{order.discountFee},
  328. #{order.totalFee},
  329. #{order.status},
  330. #{order.sendTime},
  331. #{order.refundTime},
  332. #{order.createTime},
  333. #{order.updateTime},
  334. #{order.remark},
  335. #{order.theDayOfDeliverGoodsTime},
  336. #{order.promiseTimeStampOfDelivery},
  337. #{order.cpsType},
  338. #{order.validPromiseShipmentTimeStamp},
  339. #{order.preSale},
  340. #{order.recvTime},
  341. #{order.coType},
  342. #{order.commentStatus},
  343. #{order.payType},
  344. #{order.riskCode},
  345. #{order.payChannel},
  346. #{order.sellerDelayPromiseTimeStamp},
  347. #{order.priorityDelivery},
  348. #{order.remindShipmentSign},
  349. #{order.remindShipmentTime},
  350. #{order.orderSellerRoleInfo},
  351. #{order.disableDeliveryReasonCode},
  352. #{order.multiplePiecesNo},
  353. #{order.allActivityType},
  354. #{order.orderLabels},
  355. #{order.enableSplitDeliveryOrderb},
  356. #{order.allowanceExpressFee},
  357. #{order.payChannelDiscount},
  358. #{order.tradeInPayAfterPromoAmount},
  359. #{order.governmentDiscount},
  360. #{order.skuId},
  361. #{order.relSkuId},
  362. #{order.skuDesc},
  363. #{order.skuNick},
  364. #{order.itemId},
  365. #{order.relItemId},
  366. #{order.itemTitle},
  367. #{order.itemLinkUrl},
  368. #{order.itemPicUrl},
  369. #{order.num},
  370. #{order.originalPrice},
  371. #{order.itemDiscountFee},
  372. #{order.price},
  373. #{order.itemType},
  374. #{order.itemPrevInfo},
  375. #{order.goodsCode},
  376. #{order.warehouseCode},
  377. #{order.goodStoreCode},
  378. #{order.serviceRule},
  379. #{order.freight},
  380. #{order.freightProviderType},
  381. #{order.firstOrderGuarantee},
  382. #{order.instantDelivery},
  383. #{order.instantRefund},
  384. #{order.compensateFake},
  385. #{order.serviceRuleInfo},
  386. #{order.categoryInfo},
  387. #{order.orderRefundList},
  388. #{order.orderLogisticsInfo},
  389. #{order.orderNote},
  390. #{order.encryptedConsignee},
  391. #{order.desensitiseConsignee},
  392. #{order.encryptedMobile},
  393. #{order.desensitiseMobile},
  394. #{order.provinceCode},
  395. #{order.province},
  396. #{order.cityCode},
  397. #{order.city},
  398. #{order.districtCode},
  399. #{order.district},
  400. #{order.townCode},
  401. #{order.town},
  402. #{order.encryptedAddress},
  403. #{order.desensitiseAddress},
  404. #{order.rechargeAccount},
  405. #{order.coordinateInfo},
  406. #{order.orderStepInfo},
  407. #{order.distributorId},
  408. #{order.distributorName},
  409. #{order.orderDeliveryInfo},
  410. #{order.subOrderInfo},
  411. #{order.statDate},
  412. #{order.statHour}
  413. )
  414. </insert>
  415. <update id="updateKWaiShopOrderStatus">
  416. UPDATE `ruixuan`.kwaixiaodian_order_cursor_list
  417. SET status = #{status}
  418. <choose>
  419. <when test="field !=null and field !='' ">
  420. ,${field} =#{time}
  421. </when>
  422. </choose>
  423. WHERE oid = #{oid}
  424. </update>
  425. <select id="getScore" resultType="com.ruixuan.isc.entity.KwaixiaodianShopScore" parameterType="java.lang.String">
  426. SELECT *
  427. FROM ruixuan.kwaixiaodian_shop_score
  428. WHERE shop_id = #{shopId} limit 1
  429. </select>
  430. <select id="queryItemReport" resultType="com.alibaba.fastjson.JSONObject">
  431. select t1.*,
  432. round((t1.orderNum - t2.orderNum) / t2.orderNum * 100, 2) as 'orderNumRate'
  433. from (select t2.user_name as 'userName',
  434. t2.courtship_purchase_name as 'courtshipPurchaseName',
  435. (
  436. CASE when t2.item_type = 1
  437. then '自选品'
  438. when t2.item_type = 2
  439. then '推品'
  440. else '-'
  441. end
  442. ) as 'itemType',
  443. t1.item_id as itemId,
  444. t1.item_title as 'itemTitle',
  445. t1.item_pic_url as 'itemPicUrl',
  446. (case
  447. when min(t1.price) = max(t1.price)
  448. then concat(round(min(t1.price) / 100, 2), '元')
  449. else concat(round(min(t1.price) / 100, 2), '~', round(max(t1.price) / 100, 2), '元')
  450. end
  451. ) as price,
  452. round(sum(t1.total_fee) / 100, 2) as 'totalFee',
  453. IFNULL(round(SUM(CASE WHEN t1.status != 80 and t1.status != 10 THEN t1.total_fee ELSE 0 END) / 100, 2), 0) as
  454. 'validTotalFee',
  455. count(t1.oid) as 'orderNum',
  456. IFNULL(SUM(CASE WHEN t1.status != 80 and t1.status != 10 THEN 1 ELSE 0 END), 0) AS 'validOrderNum',
  457. IFNULL(SUM(CASE WHEN t1.status = 80 THEN 1 ELSE 0 END), 0) AS 'effOrderNum',
  458. round(sum(case when t1.status != 80 and t1.status != 10 then 1 else 0 end) / count(t1.oid) * 100,
  459. 2) as 'validRadio',
  460. sum(case when t1.status >= 40 and t1.status &lt; 80 then 1 else 0 end) as 'deliveryNum',
  461. round(sum(case when t1.status >= 40 and t1.status &lt; 80 then 1 else 0 end) /
  462. sum(case when t1.status != 80 and t1.status != 10 then 1 else 0 end) * 100, 2) as 'deliveryRate',
  463. sum(case when t1.status = 30 then 1 else 0 end) as 'notDeliveryNum',
  464. round(sum(t1.express_fee) / 100, 2) as 'expressFee'
  465. from kwaixiaodian_order_cursor_list t1
  466. left join kwaixiaodian_item_get t2
  467. on t1.item_id = t2.item_id
  468. and t1.company_id = t2.company_id
  469. where t1.stat_date &gt;= #{start}
  470. and t1.stat_date &lt;= #{end}
  471. <if test='nowHour != null and nowHour != ""'>
  472. and t1.stat_hour &lt;= #{nowHour}
  473. </if>
  474. <if test='companyId != null and companyId != ""'>
  475. and t1.company_id = #{companyId}
  476. </if>
  477. <if test='shopId != null and shopId != ""'>
  478. and t1.shop_id = #{shopId}
  479. </if>
  480. <if test='itemType != null and itemType != ""'>
  481. and t2.item_type = #{itemType}
  482. </if>
  483. <if test='userIds != null and userIds.size() > 0'>
  484. AND t2.user_id in
  485. <foreach collection="userIds" item="item" separator=","
  486. open="(" close=")">
  487. #{item}
  488. </foreach>
  489. </if>
  490. <if test='courtshipPurchaseIds != null and courtshipPurchaseIds.size() > 0'>
  491. AND t2.courtship_purchase_id in
  492. <foreach collection="courtshipPurchaseIds" item="item" separator=","
  493. open="(" close=")">
  494. #{item}
  495. </foreach>
  496. </if>
  497. <if test='itemId != null and itemId != ""'>
  498. and t1.item_id = #{itemId}
  499. </if>
  500. <if test='itemTitle != null and itemTitle != ""'>
  501. and t1.item_title like concat('%',#{itemTitle},'%')
  502. </if>
  503. group by t1.item_id) t1
  504. left join (
  505. select t1.item_id as itemId,
  506. count(t1.oid) as 'orderNum'
  507. from kwaixiaodian_order_cursor_list t1 left join kwaixiaodian_item_get t2
  508. on t1.item_id = t2.item_id
  509. and t1.company_id = t2.company_id
  510. where t1.stat_date &gt;= #{lastStart}
  511. and t1.stat_date &lt;= #{lastEnd}
  512. <if test='nowHour != null and nowHour != ""'>
  513. and t1.stat_hour &lt;= #{nowHour}
  514. </if>
  515. <if test='companyId != null and companyId != ""'>
  516. and t1.company_id = #{companyId}
  517. </if>
  518. <if test='shopId != null and shopId != ""'>
  519. and t1.shop_id = #{shopId}
  520. </if>
  521. <if test='userIds != null and userIds.size() > 0'>
  522. AND t2.user_id in
  523. <foreach collection="userIds" item="item" separator=","
  524. open="(" close=")">
  525. #{item}
  526. </foreach>
  527. </if>
  528. <if test='itemId != null and itemId != ""'>
  529. and t1.item_id = #{itemId}
  530. </if>
  531. <if test='itemTitle != null and itemTitle != ""'>
  532. and t1.item_title like concat('%',#{itemTitle},'%')
  533. </if>
  534. group by t1.item_id) t2 on t1.itemId = t2.itemId
  535. order by t1.orderNum desc
  536. </select>
  537. <insert id="insertKwaixiaodianShopScore">
  538. INSERT
  539. INTO `ruixuan`.kwaixiaodian_shop_score
  540. (shop_id,
  541. shop_name,
  542. company_id,
  543. company_name,
  544. leader_name,
  545. master_score,
  546. master_score_body,
  547. shop_score,
  548. shop_score_body) VALUE
  549. ( #{shopScore.shopId},
  550. #{shopScore.shopName},
  551. #{shopScore.companyId},
  552. #{shopScore.companyName},
  553. #{shopScore.leaderName},
  554. #{shopScore.masterScore},
  555. #{shopScore.masterScoreBody},
  556. #{shopScore.shopScore},
  557. #{shopScore.shopScoreBody}
  558. )
  559. </insert>
  560. <update id="updateKwaixiaodianShopScore" parameterType="com.ruixuan.isc.entity.KwaixiaodianShopScore">
  561. update `ruixuan`.kwaixiaodian_shop_score
  562. <trim prefix="SET" suffixOverrides=",">
  563. <if test="shopName != null">shop_name = #{shopName},</if>
  564. <if test="companyId != null">company_id = #{companyId},</if>
  565. <if test="companyName != null">company_name = #{companyName},</if>
  566. <if test="leaderName != null">leader_name = #{leaderName},</if>
  567. <if test="masterScore != null">master_score = #{masterScore},</if>
  568. <if test="masterScoreBody != null">master_score_body = #{masterScoreBody},</if>
  569. <if test="shopScore != null">shop_score = #{shopScore},</if>
  570. <if test="shopScoreBody != null">shop_score_body = #{shopScoreBody},</if>
  571. </trim>
  572. where shop_id = #{shopId}
  573. </update>
  574. <insert id="replaceBatchKwaixiaodianOrderAftersalesList">
  575. replace into `ruixuan`.kwaixiaodian_order_aftersales_list(
  576. company_id,
  577. company_name,
  578. shop_id,
  579. shop_name,
  580. refund_id,
  581. oid,
  582. item_id,
  583. sku_id,
  584. refund_fee,
  585. status,
  586. refund_reason,
  587. seller_id,
  588. refund_type,
  589. handling_way,
  590. refund_desc,
  591. logistics_id,
  592. pictures,
  593. negotiate_status,
  594. valid_negotiate_buyer_modify_time_stamp,
  595. update_time,
  596. rel_sku_id,
  597. rel_item_id,
  598. seller_disagree_images,
  599. express_no,
  600. express_code,
  601. seller_disagree_desc,
  602. seller_disagree_reason,
  603. time_limit_negotiate_change,
  604. negotiate_reason,
  605. create_time,
  606. negotiate_update_time,
  607. submit_time,
  608. expire_time,
  609. end_time,
  610. buyer_open_id,
  611. address,
  612. special_refund_type,
  613. logistics_risk_infos,
  614. buyer_exchange_address,
  615. exchange_info,
  616. return_freight_info
  617. )
  618. values
  619. <foreach collection="list" item="li" separator=",">
  620. (
  621. #{li.companyId},
  622. #{li.companyName},
  623. #{li.shopId},
  624. #{li.shopName},
  625. #{li.refundId},
  626. #{li.oid},
  627. #{li.itemId},
  628. #{li.skuId},
  629. #{li.refundFee},
  630. #{li.status},
  631. #{li.refundReason},
  632. #{li.sellerId},
  633. #{li.refundType},
  634. #{li.handlingWay},
  635. #{li.refundDesc},
  636. #{li.logisticsId},
  637. #{li.pictures},
  638. #{li.negotiateStatus},
  639. #{li.validNegotiateBuyerModifyTimeStamp},
  640. #{li.updateTime},
  641. #{li.relSkuId},
  642. #{li.relItemId},
  643. #{li.sellerDisagreeImages},
  644. #{li.expressNo},
  645. #{li.expressCode},
  646. #{li.sellerDisagreeDesc},
  647. #{li.sellerDisagreeReason},
  648. #{li.timeLimitNegotiateChange},
  649. #{li.negotiateReason},
  650. #{li.createTime},
  651. #{li.negotiateUpdateTime},
  652. #{li.submitTime},
  653. #{li.expireTime},
  654. #{li.endTime},
  655. #{li.buyerOpenId},
  656. #{li.address},
  657. #{li.specialRefundType},
  658. #{li.logisticsRiskInfos},
  659. #{li.buyerExchangeAddress},
  660. #{li.exchangeInfo},
  661. #{li.returnFreightInfo}
  662. )
  663. </foreach>
  664. </insert>
  665. <update id="updateKWaiOrderAftersalesStatus">
  666. UPDATE `ruixuan`.kwaixiaodian_order_aftersales_list
  667. SET status = #{status}
  668. , handling_way =#{handlingWay}
  669. , special_refund_type =#{specialRefundType}
  670. , update_time =#{updateTime}
  671. , event_type=#{eventType}
  672. WHERE refund_id = #{refundId}
  673. </update>
  674. </mapper>