...
|
...
|
@@ -775,7 +775,7 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
|
|
|
/**
|
|
|
* 根据状态获取物流类型
|
|
|
* @param status
|
|
|
* @param appraiseOrder
|
|
|
* @return
|
|
|
*/
|
|
|
private List<Integer> getAppraiseExpressType(AppraiseOrder appraiseOrder) {
|
...
|
...
|
@@ -1346,12 +1346,15 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
throwServiceException(400, "订单类型错误");
|
|
|
}
|
|
|
resp = appraiseAddressService.findByDepotType(depotType.getCode());
|
|
|
resp.setDeliverDesc(SellerConfig.DeliverDesc.SELLER_DEPOSIT_ORDER);
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
|
|
|
if (isHKLargeSettlementSuper(uid)) {
|
|
|
return appraiseAddressService.queryHKAppraiseAddress();
|
|
|
resp = appraiseAddressService.queryHKAppraiseAddress();
|
|
|
resp.setDeliverDesc(SellerConfig.DeliverDesc.COMMON);
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -1359,7 +1362,9 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
boolean orderCodeIsNull = (null == orderCode);
|
|
|
if (skupIsNull && orderCodeIsNull) {
|
|
|
LOGGER.warn("queryAppraiseAddress can not save back, all key info are null, uid {}", uid);
|
|
|
return appraiseAddressService.queryInitAddress();
|
|
|
resp = appraiseAddressService.queryInitAddress();
|
|
|
resp.setDeliverDesc(SellerConfig.DeliverDesc.COMMON);
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
//寄存订单
|
...
|
...
|
@@ -1367,12 +1372,13 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
//防止较早版本出错
|
|
|
if (Objects.nonNull(buyerOrder)) {
|
|
|
if (OrderAttributes.DEPOSITE.getCode() == buyerOrder.getAttributes()) {
|
|
|
return appraiseAddressService.findByDepotType(DepotType.NJ.getCode());
|
|
|
resp = appraiseAddressService.findByDepotType(DepotType.NJ.getCode());
|
|
|
resp.setDeliverDesc(SellerConfig.DeliverDesc.COMMON);
|
|
|
return resp;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
AddressInfo buyerAddress = findSellerAddressInfo(uid, skup);
|
|
|
|
|
|
LOGGER.info("in queryAppraiseAddress get Address {} orderCode {}, skup {}", buyerAddress, orderCode, skup);
|
|
|
|
|
|
// 根据用户id查询默认地址的省份
|
...
|
...
|
@@ -1381,7 +1387,9 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
resp = appraiseAddressService.queryAddressByAreaCode(buyerAddress.getAreaCode());
|
|
|
}
|
|
|
// 匹配不了,给个娄底的
|
|
|
return resp == null ? appraiseAddressService.queryInitAddress() : resp;
|
|
|
resp = resp == null ? appraiseAddressService.queryInitAddress() : resp;
|
|
|
resp.setDeliverDesc(SellerConfig.DeliverDesc.COMMON);
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|