|
@@ -371,10 +371,6 @@ public class RWDDownloadUtil {
|
|
|
if (!root.exists()) {
|
|
|
root.mkdir();
|
|
|
}
|
|
|
- File object = new File(path + Constant.getSeperator() + "object");
|
|
|
- if (!object.exists()) {
|
|
|
- object.mkdir();
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
log.debug("Download ibms physical world begin " + path);
|
|
@@ -388,7 +384,7 @@ public class RWDDownloadUtil {
|
|
|
JSONObject resultJSON = JSON.parseObject(post_result);
|
|
|
classArray = resultJSON.getJSONArray("Content");
|
|
|
classArray = classArray == null ? new JSONArray() : classArray;
|
|
|
- FileUtil.Save(path + Constant.getSeperator() + "classArray.json", FastJsonUtil.toFormatString(classArray));
|
|
|
+ FileUtil.Save(path + Constant.getSeperator() + "groupArray.json", FastJsonUtil.toFormatString(classArray));
|
|
|
}
|
|
|
Map<String, Map<String, List<String>>> idListMapMap = new HashMap<String, Map<String, List<String>>>();
|
|
|
for (int i = 0; i < classArray.size(); i++) {
|
|
@@ -406,7 +402,7 @@ public class RWDDownloadUtil {
|
|
|
idListMap.get(ibmsClassCode).add(logicalGroupingId);
|
|
|
}
|
|
|
for (String ibmsSceneCode : idListMapMap.keySet()) {
|
|
|
- File sceneDir = new File(path + Constant.getSeperator() + "object" + Constant.getSeperator() + ibmsSceneCode);
|
|
|
+ File sceneDir = new File(path + Constant.getSeperator() + ibmsSceneCode);
|
|
|
if (!sceneDir.exists()) {
|
|
|
sceneDir.mkdir();
|
|
|
}
|
|
@@ -427,8 +423,8 @@ public class RWDDownloadUtil {
|
|
|
infoArray.addAll(Content);
|
|
|
}
|
|
|
infoArray = infoArray == null ? new JSONArray() : infoArray;
|
|
|
- FileUtil.Save(path + Constant.getSeperator() + "object" + Constant.getSeperator() + ibmsSceneCode + Constant.getSeperator()
|
|
|
- + ibmsClassCode + ".json", FastJsonUtil.toFormatString(infoArray));
|
|
|
+ FileUtil.Save(path + Constant.getSeperator() + ibmsSceneCode + Constant.getSeperator() + ibmsClassCode + ".json",
|
|
|
+ FastJsonUtil.toFormatString(infoArray));
|
|
|
}
|
|
|
}
|
|
|
log.debug("Download ibms physical world finish " + path);
|