|
@@ -2,6 +2,7 @@ package com.fs.hisStore.controller;
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -414,12 +415,20 @@ public class FsStoreOrderScrmController extends BaseController
|
|
|
{
|
|
{
|
|
|
FsStoreOrderScrm order=fsStoreOrderService.selectFsStoreOrderById(id);
|
|
FsStoreOrderScrm order=fsStoreOrderService.selectFsStoreOrderById(id);
|
|
|
ExpressInfoDTO expressInfoDTO=null;
|
|
ExpressInfoDTO expressInfoDTO=null;
|
|
|
- if(StringUtils.isNotEmpty(order.getDeliveryId())){
|
|
|
|
|
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(order.getDeliveryId())) {
|
|
|
String lastFourNumber = "";
|
|
String lastFourNumber = "";
|
|
|
if (order.getDeliverySn().equals(ShipperCodeEnum.SF.getValue()) || order.getDeliverySn().equals(ShipperCodeEnum.ZTO.getValue())) {
|
|
if (order.getDeliverySn().equals(ShipperCodeEnum.SF.getValue()) || order.getDeliverySn().equals(ShipperCodeEnum.ZTO.getValue())) {
|
|
|
- lastFourNumber = order.getUserPhone();
|
|
|
|
|
- if (lastFourNumber.length() == 11) {
|
|
|
|
|
|
|
+ if("恒春来".equals(cloudHostProper.getCompanyName())
|
|
|
|
|
+ && ObjectUtil.isNotEmpty(lastFourNumber = order.getVirtualPhone())){
|
|
|
|
|
+ if (lastFourNumber.contains("-")) {
|
|
|
|
|
+ lastFourNumber = lastFourNumber.length() >= 4 ? lastFourNumber.substring(lastFourNumber.length() - 4) : lastFourNumber;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ lastFourNumber = StrUtil.sub(lastFourNumber, lastFourNumber.length(), -4);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ // 原逻辑
|
|
|
|
|
+ else if ((lastFourNumber = order.getUserPhone()).length() == 11) {
|
|
|
lastFourNumber = StrUtil.sub(lastFourNumber, lastFourNumber.length(), -4);
|
|
lastFourNumber = StrUtil.sub(lastFourNumber, lastFourNumber.length(), -4);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|