|
@@ -3,11 +3,14 @@ package com.sagacloud.endpoints;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.sagacloud.dict.EqStaticInfo;
|
|
|
+import com.sagacloud.dict.TypeToInfosMap;
|
|
|
import com.sagacloud.endpoints.item.PhysicalObject;
|
|
|
import com.sagacloud.utils.Const;
|
|
|
import com.sagacloud.utils.DpUtils;
|
|
|
import com.sagacloud.utils.InfoCodeUtil;
|
|
|
import com.sagacloud.utils.OssUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
|
|
|
import javax.ws.rs.GET;
|
|
|
import javax.ws.rs.POST;
|
|
@@ -23,6 +26,9 @@ import java.util.Set;
|
|
|
|
|
|
@Path("infocode")
|
|
|
public class InfoCode {
|
|
|
+
|
|
|
+ private static final Logger log = LoggerFactory.getLogger(InfoCode.class);
|
|
|
+
|
|
|
@Context
|
|
|
private ResourceContext resourceContext;
|
|
|
// public static Hashtable<String, JSONArray> infoCodeMap = new Hashtable<>();
|
|
@@ -231,7 +237,8 @@ public class InfoCode {
|
|
|
tmpSet.addAll(eqStaticInfo.getEcSet());
|
|
|
tmpSet.addAll(eqStaticInfo.getEqSet());
|
|
|
tmpSet.addAll(eqStaticInfo.getSysSet());
|
|
|
-
|
|
|
+
|
|
|
+ log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.queryDictId()");
|
|
|
String ctmDictId = InfoCodeUtil.queryDictId(projectId);
|
|
|
for (String key : tmpSet) {
|
|
|
result.put(key, InfoCodeUtil.getInfosForProperty(projectId, key, ctmDictId));
|