浏览代码

海康agv创建任务去除数组转义付

yejian 2 年之前
父节点
当前提交
77324e3bba

+ 3 - 6
imcs-admin-boot/imcs-business-biz/src/main/java/com/github/zuihou/business/externalApi/service/impl/AgvHikOrderInfoServiceImpl.java

@@ -39,10 +39,7 @@ import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.web.client.RestTemplate;
 
-import java.util.ArrayList;
-import java.util.Calendar;
-import java.util.List;
-import java.util.Map;
+import java.util.*;
 import java.util.stream.Collectors;
 
 /**
@@ -163,10 +160,10 @@ public class AgvHikOrderInfoServiceImpl extends SuperCacheServiceImpl<AgvHikOrde
         String reqCode = UniqueKeyGenerator.getUniqueKeyStartWithTimestamp(32);
         JSONObject jsonObject = new JSONObject();
         JSONArray positionCodePath = new JSONArray();
-        JSONObject begin = new JSONObject();
+        Map begin = new HashMap();
         begin.put("positionCode",start);
         begin.put("type","00");
-        JSONObject end = new JSONObject();
+        Map end = new HashMap();
         end.put("positionCode", goal);
         end.put("type","00");
         positionCodePath.add(0,begin);