...
|
...
|
@@ -108,7 +108,7 @@ public class AppraiseService { |
|
|
throw new ServiceException(ServiceError.ORDER_NULL);
|
|
|
}
|
|
|
final OrderStatus expectOrderStatus = OrderStatus.PLATFORM_CHECKING;
|
|
|
final OrderStatus targetOrderStatus = OrderStatus.JUDGE_PASS;
|
|
|
final OrderStatus targetOrderStatus = OrderStatus.WAITING_RECEIVE;
|
|
|
if (expectOrderStatus.getCode() != buyerOrder.getStatus().intValue()){
|
|
|
LOGGER.warn("in appraiseSuccess, buyer Order orderCode {} pstatus {}, expect Order Status {}",
|
|
|
orderCode, buyerOrder.getStatus(), expectOrderStatus);
|
...
|
...
|
@@ -196,8 +196,8 @@ public class AppraiseService { |
|
|
BuyerConfirmEvent buyerConfirmEvent = BuyerConfirmEvent.builder().uid(buyerUid).orderCode(orderCode).build();
|
|
|
EventBusPublisher.publishEvent(buyerConfirmEvent);
|
|
|
//记录物流信息
|
|
|
//不发物流
|
|
|
//expressInfoService.appraiseSuccess(buyerUid, expressCompanyId, orderCode, wayBillCode, depotNum,mobile);
|
|
|
//发物流
|
|
|
expressInfoService.deliverGoods(buyerUid, expressCompanyId, orderCode, wayBillCode, depotNum,mobile);
|
|
|
|
|
|
//记录订单的状态变更信息
|
|
|
LOGGER.info("in appraiseSuccess record status change, orderCode {},uid {} ,sellerUid {}", orderCode,buyerUid,sellerUid);
|
...
|
...
|
@@ -293,13 +293,13 @@ public class AppraiseService { |
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
/*
|
|
|
* 发货
|
|
|
* (1)更新订单状态
|
|
|
* (2)记录物流
|
|
|
* (3)消息
|
|
|
*/
|
|
|
public void deliverGoods(AppraiseExpressInfoBo appraiseExpressInfoBo){
|
|
|
/*public void deliverGoods(AppraiseExpressInfoBo appraiseExpressInfoBo){
|
|
|
Integer expressCompanyId = appraiseExpressInfoBo.getExpressCompanyId();
|
|
|
Long orderCode=appraiseExpressInfoBo.getOrderCode();
|
|
|
String wayBillCode=appraiseExpressInfoBo.getWayBillCode();
|
...
|
...
|
@@ -362,7 +362,7 @@ public class AppraiseService { |
|
|
buyerOrder.getStatus(), orderCode);
|
|
|
throw new UfoServiceException(400,"更新订单状态失败");
|
|
|
}
|
|
|
}
|
|
|
}*/
|
|
|
|
|
|
/**
|
|
|
* 鉴定不通过退回
|
...
|
...
|
@@ -563,8 +563,9 @@ public class AppraiseService { |
|
|
LOGGER.warn("in appraiseFail orderStatusFlowService or notice fail orderCode {}", orderCode, ex);
|
|
|
}finally {
|
|
|
//更新物流信息,写到最后
|
|
|
//鉴定不通过,不发物流
|
|
|
//expressInfoService.appraiseFail(sellerUid, expressCompanyId, orderCode, wayBillCode, depotNum,mobile);
|
|
|
//鉴定不通过,发物流
|
|
|
expressInfoService.returnBackOrderCauseOfJudgeFailure(sellerUid, expressCompanyId, orderCode, wayBillCode, depotNum,mobile);
|
|
|
|
|
|
//记录调拨信息(只保存卖家一条)
|
|
|
EnumExpressType expressType = EnumExpressType.EXPRESS_TYPE_JUDGE_CENTER;
|
|
|
EnumExpressDataType expressDataType = EnumExpressDataType.operate_transfer;
|
...
|
...
|
|