...
|
...
|
@@ -229,6 +229,7 @@ public class AppraiseService { |
|
|
* 触发物流
|
|
|
*/
|
|
|
public void triggerSellerToPlatformExpress(AppraiseExpressInfoBo appraiseExpressInfoBo ){
|
|
|
LOGGER.info("AppraiseService triggerSellerToPlatformExpress enter , appraiseExpressInfoBo {} ",appraiseExpressInfoBo);
|
|
|
Integer expressCompanyId = appraiseExpressInfoBo.getExpressCompanyId();
|
|
|
String wayBillCode = appraiseExpressInfoBo.getWayBillCode();
|
|
|
Long orderCode = appraiseExpressInfoBo.getOrderCode();
|
...
|
...
|
@@ -244,16 +245,23 @@ public class AppraiseService { |
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
|
|
|
|
|
|
if (buyerOrder == null){
|
|
|
LOGGER.warn("returnBack getOrderInfo order not exist, orderCode {}", orderCode);
|
|
|
LOGGER.warn("triggerSellerToPlatformExpress getOrderInfo order not exist, orderCode {}", orderCode);
|
|
|
throw new ServiceException(ServiceError.ORDER_NULL);
|
|
|
}
|
|
|
|
|
|
//只有卖家已发货才能更改物流
|
|
|
if(buyerOrder.getStatus().byteValue() == OrderStatus.SELLER_SEND_OUT.getCode()) {
|
|
|
LOGGER.info("triggerSellerToPlatformExpress begin trigger , orderCode {}", orderCode);
|
|
|
Integer uid = buyerOrder.getSellerUid();
|
|
|
String mobile ="";
|
|
|
AppraiseAddressResp appraiseAddressResp =appraiseAddressService.queryInitAddressByDepotNum(depotNum);
|
|
|
if(appraiseAddressResp!=null){
|
|
|
mobile = appraiseAddressResp.getMobile();
|
|
|
}
|
|
|
//sendExpressMQ(uid,expressCompanyId,orderCode,wayBillCode,mobile);
|
|
|
expressInfoService.triggerExpressMQ(uid,expressCompanyId,orderCode,wayBillCode,mobile);
|
|
|
}else{
|
|
|
LOGGER.info("triggerSellerToPlatformExpress not trigger because of error status , orderCode {} ,status {}", orderCode,buyerOrder.getStatus());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|