Authored by qinchao

触发物流

... ... @@ -249,7 +249,7 @@ public class AppraiseService {
if(buyerOrder.getStatus().byteValue() == OrderStatus.SELLER_SEND_OUT.getCode()) {
ExpressRecord record = expressRecordMapper.selectByOrderCodeAndExpressType(orderCode,expressInfoService.getExpressTypeSeller(OrderStatus.SELLER_SEND_OUT.getCode()));
LOGGER.info("triggerSellerToPlatformExpress begin trigger , orderCode {} ,record = {}", orderCode,record);
if(record!=null&&StringUtils.equals(wayBillCode,record.getWaybillCode())){
Integer uid = record.getUid();
String mobile ="";
AppraiseAddressResp appraiseAddressResp =appraiseAddressService.queryInitAddressByDepotNum(record.getDepotNum());
... ... @@ -258,6 +258,10 @@ public class AppraiseService {
}
expressInfoService.triggerExpressMQ(uid,record.getLogisticsType(),orderCode,wayBillCode,mobile);
}else{
LOGGER.warn("triggerSellerToPlatformExpress begin trigger fail ,express record is null or wayBillCode not the same, orderCode {},changed wayBillCode {},record {} ", orderCode,wayBillCode,record);
}
}else{
LOGGER.info("triggerSellerToPlatformExpress not trigger because of error status , orderCode {} ,status {}", orderCode,buyerOrder.getStatus());
}
}
... ...