|
@@ -568,39 +568,39 @@ public class InfoCodeUtil {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static JSONArray getInfosForProperty(String pjId, String type, String ctmDictId) throws Exception {
|
|
|
-
|
|
|
+ log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 0");
|
|
|
JSONArray result = new JSONArray();
|
|
|
+ log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 1");
|
|
|
if (typeToPathMap.containsKey(type)) {//project,building,floor,space,sy-gen,eq-gen,ec-gen,consumable,tool
|
|
|
- log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 1");
|
|
|
JSONArray infos = getSplitInfos(pjId, type);
|
|
|
CommonUtil.addField(infos, "classification", "0");//0表示没有分类
|
|
|
result.addAll(infos);
|
|
|
return result;
|
|
|
}
|
|
|
+ log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 2");
|
|
|
if (PhysicalObject.bussinessSpaceTypeMap.containsKey(type)) {
|
|
|
- log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 2");
|
|
|
JSONArray infos = getSplitInfos(pjId, type);
|
|
|
CommonUtil.addField(infos, "classification", "0");//0表示没有分类
|
|
|
result.addAll(infos);
|
|
|
return result;
|
|
|
}
|
|
|
+ log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 3");
|
|
|
if (type.startsWith(Const.OBJ_TYPE_VO)) {
|
|
|
- log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 3");
|
|
|
result.addAll(getSplitInfos(pjId, type));
|
|
|
return result;
|
|
|
}
|
|
|
+ log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 4");
|
|
|
//耗材
|
|
|
if (CsStaticInfo.getCode2name().keySet().contains(type)) {
|
|
|
- log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 4");
|
|
|
JSONArray commonInfos = getSplitInfos(pjId, "consumable");
|
|
|
JSONArray privInfos = getSplitInfos(pjId, type);
|
|
|
result.addAll(commonInfos);
|
|
|
result.addAll(privInfos);
|
|
|
return result;
|
|
|
}
|
|
|
+ log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 5");
|
|
|
//工具
|
|
|
if (TlStaticInfo.getCode2name().keySet().contains(type)) {
|
|
|
- log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 5");
|
|
|
JSONArray commonInfos = getSplitInfos(pjId, "tool");
|
|
|
JSONArray privInfos = getSplitInfos(pjId, type);
|
|
|
result.addAll(commonInfos);
|
|
@@ -609,8 +609,8 @@ public class InfoCodeUtil {
|
|
|
}
|
|
|
EqStaticInfo eqStaticInfo = new EqStaticInfo(null);
|
|
|
//自定义字典中的类型
|
|
|
+ log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 6");
|
|
|
if (ctmDictId != null) {
|
|
|
- log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints(): InfoCode().queryAll(): InfoCodeUtil.getInfosForProperty() 6");
|
|
|
return getCtmDictWholeInfos(ctmDictId, type, eqStaticInfo);
|
|
|
}
|
|
|
|