|
@@ -49,7 +49,7 @@ public class RWDDownloadUtil {
|
|
|
}
|
|
|
|
|
|
public static void LoadPhysicalWorld(String path) throws Exception {
|
|
|
- log.info(LogUtil.refreshLoggerName + "\t" + "Download physical world refresh dir");
|
|
|
+ log.debug(LogUtil.refreshLoggerName + "\t" + "Download physical world refresh dir");
|
|
|
FileUtil.deleteRecursive(new File(path));
|
|
|
{
|
|
|
File root = new File(path);
|
|
@@ -70,7 +70,7 @@ public class RWDDownloadUtil {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- log.info(LogUtil.refreshLoggerName + "\t" + "Download physical world begin " + path);
|
|
|
+ log.debug(LogUtil.refreshLoggerName + "\t" + "Download physical world begin " + path);
|
|
|
JSONArray classArray;
|
|
|
{
|
|
|
JSONObject param = new JSONObject();
|
|
@@ -94,7 +94,7 @@ public class RWDDownloadUtil {
|
|
|
criteria.put("classCode", code);
|
|
|
criteria.put("valid", 1);
|
|
|
param.put("criteria", criteria);
|
|
|
- log.info(LogUtil.refreshLoggerName + "\t" + "Download info " + code);
|
|
|
+ log.debug(LogUtil.refreshLoggerName + "\t" + "Download info " + code);
|
|
|
String post_result = HttpClientUtil.post(Constant.rwd_url + "rwd/def/funcid", param.toJSONString());
|
|
|
JSONObject resultJSON = JSON.parseObject(post_result);
|
|
|
infoArray = resultJSON.getJSONArray("data");
|
|
@@ -114,7 +114,7 @@ public class RWDDownloadUtil {
|
|
|
criteria.put("classCode", code);
|
|
|
criteria.put("valid", 1);
|
|
|
param.put("criteria", criteria);
|
|
|
- log.info(LogUtil.refreshLoggerName + "\t" + "Download object " + code);
|
|
|
+ log.debug(LogUtil.refreshLoggerName + "\t" + "Download object " + code);
|
|
|
String post_result = HttpClientUtil.post(Constant.rwd_url + "rwd/instance/object/query?projectId=" + RepositoryBase.projectId
|
|
|
+ "&groupCode=" + RepositoryBase.groupCode, param.toJSONString());
|
|
|
JSONObject resultJSON = JSON.parseObject(post_result);
|
|
@@ -140,7 +140,7 @@ public class RWDDownloadUtil {
|
|
|
criteria.put("graphCode", graphCode);
|
|
|
criteria.put("relCode", relCode);
|
|
|
param.put("criteria", criteria);
|
|
|
- log.info(LogUtil.refreshLoggerName + "\t" + "Download relation " + graphCode + " " + relCode);
|
|
|
+ log.debug(LogUtil.refreshLoggerName + "\t" + "Download relation " + graphCode + " " + relCode);
|
|
|
String post_result = HttpClientUtil.post(Constant.rwd_url + "rwd/instance/relation/query?projectId=" + RepositoryBase.projectId
|
|
|
+ "&groupCode=" + RepositoryBase.groupCode, param.toJSONString());
|
|
|
JSONObject resultJSON = JSON.parseObject(post_result);
|
|
@@ -151,6 +151,6 @@ public class RWDDownloadUtil {
|
|
|
+ ".json", FastJsonUtil.toFormatString(infoArray));
|
|
|
}
|
|
|
}
|
|
|
- log.info(LogUtil.refreshLoggerName + "\t" + "Download physical world finish " + path);
|
|
|
+ log.debug(LogUtil.refreshLoggerName + "\t" + "Download physical world finish " + path);
|
|
|
}
|
|
|
}
|