...
|
...
|
@@ -3,7 +3,6 @@ package com.yohoufo.order.service.impl; |
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Range;
|
|
|
import com.yoho.core.rabbitmq.YhProducer;
|
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
...
|
...
|
@@ -52,12 +51,9 @@ import org.springframework.stereotype.Service; |
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.LocalTime;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Objects;
|
|
|
import java.util.Optional;
|
|
|
import java.util.UUID;
|
|
|
import java.util.concurrent.ArrayBlockingQueue;
|
|
|
import java.util.concurrent.ExecutorService;
|
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
...
|
...
|
@@ -1427,9 +1423,14 @@ public class AppraiseService { |
|
|
// 有货平台鉴定中 -> 已取消:商品无法鉴定
|
|
|
.withStateTransition(OrderStatus.PLATFORM_CHECKING, OrderStatus.PLATFORM_APPRAISE_UNSURE, orderStatusFlowService)
|
|
|
// 退保证金给卖家
|
|
|
.withRefundEarnestMoney(payRefundService::refund, sellerOrderMapper::selectBySkup).refundCase(RefundCase.SELLER_EARNEST_MONEY).and()
|
|
|
.withRefundEarnestMoney(payRefundService::refund, sellerOrderMapper::selectBySkup)
|
|
|
.refundCase(RefundCase.SELLER_EARNEST_MONEY)
|
|
|
.sellerWalletDetailType(SellerWalletDetail.Type.APPRAISE_UNSURE)
|
|
|
.and()
|
|
|
// 退买家货款
|
|
|
.withRefundGoodsMoney(payRefundService::refund).refundCase(RefundCase.BUYER_GOODS_MONEY).and()
|
|
|
.withRefundGoodsMoney(payRefundService::refund)
|
|
|
.refundCase(RefundCase.BUYER_GOODS_MONEY)
|
|
|
.and()
|
|
|
// 通知卖家商品无法鉴定
|
|
|
.withNoticeSeller((soa, code) -> inBoxFacade.noticeSellerAppraiseUnsure(soa, code)).and()
|
|
|
// 通知买家商品无法鉴定(并发券)
|
...
|
...
|
|