Authored by chenchao

Merge branch 'dev_order' into test6.8.2

@@ -180,6 +180,8 @@ public class BuyerOrderCancelService { @@ -180,6 +180,8 @@ public class BuyerOrderCancelService {
180 PayRefundBo prb = null; 180 PayRefundBo prb = null;
181 try { 181 try {
182 SellerOrder sellerOrder = sellerOrderMapper.selectByOrderCode(orderCode); 182 SellerOrder sellerOrder = sellerOrderMapper.selectByOrderCode(orderCode);
  183 + logger.info("in BuyerCancelAfterProcessTask call sellerOrderMapper.selectByOrderCode, buyerUid {}, orderCode {}, skup {}",
  184 + buyerUid, orderCode, skup );
183 int sellerUid = sellerOrder.getUid(); 185 int sellerUid = sellerOrder.getUid();
184 long sellerOrderCode = sellerOrder.getOrderCode(); 186 long sellerOrderCode = sellerOrder.getOrderCode();
185 BigDecimal earnestMoney = sellerOrder.getEarnestMoney(); 187 BigDecimal earnestMoney = sellerOrder.getEarnestMoney();
@@ -190,19 +192,26 @@ public class BuyerOrderCancelService { @@ -190,19 +192,26 @@ public class BuyerOrderCancelService {
190 .buyerUid(buyerUid).sellerUid(sellerUid).orderCode(sellerOrder.getOrderCode()) 192 .buyerUid(buyerUid).sellerUid(sellerUid).orderCode(sellerOrder.getOrderCode())
191 .payType(sellerOrder.getPayment()).refundCase(RefundCase.SELLER_EARNEST_MONEY) 193 .payType(sellerOrder.getPayment()).refundCase(RefundCase.SELLER_EARNEST_MONEY)
192 .skup(skup); 194 .skup(skup);
  195 + logger.info("in BuyerCancelAfterProcessTask call begin payRefundService.refund seller, buyerUid {}, orderCode {}, skup {} req {}",
  196 + buyerUid, orderCode, skup, req );
193 prb = payRefundService.refund(req, bleb); 197 prb = payRefundService.refund(req, bleb);
194 - 198 + logger.info("in BuyerCancelAfterProcessTask call after payRefundService.refund seller, buyerUid {}, orderCode {}, skup {} req {}",
  199 + buyerUid, orderCode, skup, req );
195 //(转账)瓜分指定赔偿款给卖家和平台 200 //(转账)瓜分指定赔偿款给卖家和平台
196 201
197 TransferMoneyRequest tmReq = TransferMoneyRequest.builder().buyerOrderCode(orderCode) 202 TransferMoneyRequest tmReq = TransferMoneyRequest.builder().buyerOrderCode(orderCode)
198 .type(transferCase.getCode()).transferCase(transferCase).build(); 203 .type(transferCase.getCode()).transferCase(transferCase).build();
  204 + logger.info("in BuyerCancelAfterProcessTask call begin paymentService.transferMon, buyerUid {}, orderCode {}, skup {} req {}",
  205 + buyerUid, orderCode, skup, tmReq );
199 paymentService.transferMon(tmReq); 206 paymentService.transferMon(tmReq);
  207 + logger.info("in BuyerCancelAfterProcessTask call after paymentService.transferMon, buyerUid {}, orderCode {}, skup {} req {}",
  208 + buyerUid, orderCode, skup, tmReq );
200 209
201 //(退费)扣除赔偿款,计算剩余的货款,退给买家 210 //(退费)扣除赔偿款,计算剩余的货款,退给买家
202 BigDecimal compensateMoney = compensate.getBuyerCompensateMoney(); 211 BigDecimal compensateMoney = compensate.getBuyerCompensateMoney();
203 -  
204 -  
205 BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode); 212 BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode);
  213 + logger.info("in BuyerCancelAfterProcessTask call begin buyerOrderMapper.selectByOrderCode, buyerUid {}, orderCode {}, skup {} buyerOrder {}",
  214 + buyerUid, orderCode, skup, buyerOrder );
206 BigDecimal leftBuyerMoney = buyerOrder.getAmount().subtract(compensateMoney); 215 BigDecimal leftBuyerMoney = buyerOrder.getAmount().subtract(compensateMoney);
207 PaymentRequest rprOfBuyer = PaymentRequest.builder().uid(buyerUid) 216 PaymentRequest rprOfBuyer = PaymentRequest.builder().uid(buyerUid)
208 .orderCode(orderCode).refundAmount(leftBuyerMoney.doubleValue()) 217 .orderCode(orderCode).refundAmount(leftBuyerMoney.doubleValue())
@@ -211,7 +220,12 @@ public class BuyerOrderCancelService { @@ -211,7 +220,12 @@ public class BuyerOrderCancelService {
211 .buyerUid(buyerUid).sellerUid(sellerUid).orderCode(orderCode) 220 .buyerUid(buyerUid).sellerUid(sellerUid).orderCode(orderCode)
212 .payType(buyerOrder.getPayment()).refundCase(RefundCase.BUYER_GOODS_MONEY) 221 .payType(buyerOrder.getPayment()).refundCase(RefundCase.BUYER_GOODS_MONEY)
213 .skup(skup); 222 .skup(skup);
  223 + logger.info("in BuyerCancelAfterProcessTask call begin payRefundService.refund buyer, buyerUid {}, orderCode {}, skup {} req {}",
  224 + buyerUid, orderCode, skup, rprOfBuyer );
214 payRefundService.refund(rprOfBuyer, blebOfBuyer); 225 payRefundService.refund(rprOfBuyer, blebOfBuyer);
  226 + logger.info("in BuyerCancelAfterProcessTask call after payRefundService.refund buyer, buyerUid {}, orderCode {}, skup {} req {}",
  227 + buyerUid, orderCode, skup, rprOfBuyer );
  228 +
215 logger.info("out BuyerCancelAfterProcessTask call buyerUid {}, orderCode {}, skup {}, transferCase {}, compensate {}", 229 logger.info("out BuyerCancelAfterProcessTask call buyerUid {}, orderCode {}, skup {}, transferCase {}, compensate {}",
216 buyerUid, orderCode, skup, transferCase, compensate); 230 buyerUid, orderCode, skup, transferCase, compensate);
217 }catch (Exception ex){ 231 }catch (Exception ex){