|
@@ -3,6 +3,7 @@ package com.fs.hisStore.controller;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.fs.common.annotation.Log;
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
@@ -491,6 +492,10 @@ public class FsStoreOrderScrmController extends BaseController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
expressInfoDTO = expressService.getExpressInfo(order.getOrderCode(), order.getDeliverySn(), order.getDeliveryId(), lastFourNumber);
|
|
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"))){
|
|
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();
|
|
FsStoreOrderScrm map=new FsStoreOrderScrm();
|