|
@@ -3,6 +3,7 @@ package com.ruoyi.web.controller.sf;
|
|
|
import cn.hutool.json.JSONArray;
|
|
|
import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
+import com.ruoyi.common.constant.Constants;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.system.domain.sf.SfBean;
|
|
@@ -16,9 +17,11 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
import java.util.UUID;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* @Author: tjf
|
|
@@ -83,7 +86,8 @@ public class SfExpressController {
|
|
|
throw new Exception("暂无物流信息");
|
|
|
}
|
|
|
//根据时间翻转
|
|
|
- routeResps.getJSONObject(0).put("routes",routeResps.getJSONObject(0).getJSONArray("routes"));
|
|
|
+ Collections.reverse(routes);
|
|
|
+ routeResps.getJSONObject(0).put("routes",routes);
|
|
|
return AjaxResult.success(routeResps);
|
|
|
}
|
|
|
}
|