...
|
...
|
@@ -17,6 +17,8 @@ import java.util.stream.Collectors; |
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
import com.yohobuy.ufo.model.order.common.*;
|
|
|
import com.yohoufo.dal.order.model.*;
|
|
|
import com.yohoufo.order.service.*;
|
|
|
import com.yohoufo.order.service.listener.BuyerOrderChangeEvent;
|
|
|
import com.yohoufo.order.service.support.codegenerator.OrderCodeGenerator;
|
|
|
import com.yohoufo.order.service.support.codegenerator.bean.CodeMeta;
|
...
|
...
|
@@ -52,15 +54,6 @@ import com.yohoufo.dal.order.SellerOrderGoodsMapper; |
|
|
import com.yohoufo.dal.order.SellerOrderMapper;
|
|
|
import com.yohoufo.dal.order.SellerOrderMetaMapper;
|
|
|
import com.yohoufo.dal.order.StorageDepositMapper;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrder;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrderGoods;
|
|
|
import com.yohoufo.dal.order.model.ExpressRecord;
|
|
|
import com.yohoufo.dal.order.model.QualityCheck;
|
|
|
import com.yohoufo.dal.order.model.SellerOrder;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderMeta;
|
|
|
import com.yohoufo.dal.order.model.SellerWalletDetail;
|
|
|
import com.yohoufo.dal.order.model.StorageDeposit;
|
|
|
import com.yohoufo.dal.product.ProductMapper;
|
|
|
import com.yohoufo.dal.product.model.Product;
|
|
|
import com.yohoufo.order.common.RefundCase;
|
...
|
...
|
@@ -77,10 +70,6 @@ import com.yohoufo.order.model.request.TranseferCellNode; |
|
|
import com.yohoufo.order.model.request.TransferMoneyRequest;
|
|
|
import com.yohoufo.order.model.response.AppraiseAddressResp;
|
|
|
import com.yohoufo.order.mq.TopicConstants;
|
|
|
import com.yohoufo.order.service.DepositService;
|
|
|
import com.yohoufo.order.service.IExpressInfoService;
|
|
|
import com.yohoufo.order.service.IPaymentService;
|
|
|
import com.yohoufo.order.service.MerchantOrderPaymentService;
|
|
|
import com.yohoufo.order.service.cache.CacheCleaner;
|
|
|
import com.yohoufo.order.service.cache.CacheKeyBuilder;
|
|
|
import com.yohoufo.order.service.handler.RefundEarnestMoneyHandler;
|
...
|
...
|
@@ -208,6 +197,9 @@ public class AppraiseService { |
|
|
@Autowired
|
|
|
private OrderCodeGenerator orderCodeGenerator;
|
|
|
|
|
|
@Autowired
|
|
|
private ServiceOrderProcessor serviceOrderProcessor;
|
|
|
|
|
|
/**
|
|
|
* 触发物流
|
|
|
*/
|
...
|
...
|
@@ -843,6 +835,8 @@ public class AppraiseService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 更新发到卖家的物流信息
|
|
|
* 将卖家的保证金分账给平台和买家
|
...
|
...
|
@@ -853,9 +847,11 @@ public class AppraiseService { |
|
|
public ApiResponse appraiseFailAndDelivery(AppraiseExpressInfoBo appraiseExpressInfoBo) {
|
|
|
LOGGER.info("appraiseFail enter , appraiseExpressInfoBo {} ,appraiseNotPassFlag {}", appraiseExpressInfoBo);
|
|
|
Long orderCode = appraiseExpressInfoBo.getOrderCode();
|
|
|
CodeMeta codeMeta = orderCodeGenerator.expId(orderCode);
|
|
|
OrderCodeType orderCodeType = OrderCodeType.getOrderCodeType(codeMeta.getType());
|
|
|
ApiResponse apiResponse = new ApiResponse();
|
|
|
if (serviceOrderProcessor.isGoodsServiceOrder(orderCode)){
|
|
|
|
|
|
return apiResponse;
|
|
|
}
|
|
|
|
|
|
|
|
|
OrderStatus expectStatus = OrderStatus.PLATFORM_CHECKING;
|
...
|
...
|
@@ -866,7 +862,7 @@ public class AppraiseService { |
|
|
Integer depotNum = appraiseExpressInfoBo.getDepotNum();
|
|
|
String mobile = appraiseExpressInfoBo.getMobile();
|
|
|
|
|
|
ApiResponse apiResponse = new ApiResponse();
|
|
|
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
|
|
|
|
|
|
if (buyerOrder == null) {
|
...
|
...
|
|