|
|
@@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.fs.common.annotation.DataScope;
|
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
@@ -261,6 +262,10 @@ public class FsStoreOrderScrmController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
expressInfoDTO=expressService.getExpressInfo(order.getOrderCode(),order.getDeliverySn(),order.getDeliveryId(),lastFourNumber);
|
|
|
+ if (ObjectUtils.isNotEmpty(expressInfoDTO)&&!expressInfoDTO.isSuccess()){
|
|
|
+ return R.error(expressInfoDTO.getReason());
|
|
|
+ }
|
|
|
+ logger.error("expressInfoDTO={},order={}",expressInfoDTO,order);
|
|
|
// 查看订单信息状态的时候发现状态不一致更新状态
|
|
|
if(order.getStatus()==2 &&expressInfoDTO.getState().equals("3")&&(expressInfoDTO.getStateEx().equals("301")||expressInfoDTO.getStateEx().equals("302")||expressInfoDTO.getStateEx().equals("304")||expressInfoDTO.getStateEx().equals("311"))){
|
|
|
FsStoreOrderScrm map=new FsStoreOrderScrm();
|