| | |
| | | package org.springblade.modules.equipage.controller; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import net.sf.json.JSONArray; |
| | | import net.sf.json.JSONException; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | import springfox.documentation.spring.web.json.Json; |
| | | |
| | | import java.io.IOException; |
| | | import java.text.DateFormat; |
| | |
| | | String res = null; |
| | | res = HttpReqUtil.getInstance().doPost(url, params, null); |
| | | System.out.println("res = " + res); |
| | | Map<String,Object> map =(Map<String,Object>) com.alibaba.fastjson.JSON.parse("header"); |
| | | System.out.println("map = " + map.get("code")); |
| | | if (!map.get("code").equals("3")) { |
| | | JSONArray jsonArray = JSONArray.fromObject(res); |
| | | JSONArray sortedJsonArray = new JSONArray(); |
| | | List<JSONObject> jsonValues = new ArrayList<JSONObject>(); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 押运人员轨迹 |