shjung 2 years ago
parent
commit
2daabc9af7

+ 1 - 1
src/main/java/com/its/op/entity/its/facility/TbFcltFail.java

@@ -124,7 +124,7 @@ public class TbFcltFail implements Serializable {
                 .build();
 
         if (this.fclt != null) {
-            dto.setFcltGroup(CodeManager.getCodeDescShort("FMS", this.fclt.getFcltType()));
+            dto.setFcltGroup(CodeManager.getFcltGroupNm(this.fclt.getFcltType()));
             dto.setFcltType(this.fclt.getFcltType());
             dto.setFcltLctn(this.fclt.getFcltLctn());
         }

+ 1 - 1
src/main/java/com/its/op/entity/its/facility/TbFcltInfr.java

@@ -170,7 +170,7 @@ public class TbFcltInfr implements Serializable {
         if (this.subUser != null) {
             dto.setSubUserNm(this.subUser.getName());
         }
-        String fcltGroup = CodeManager.getCodeDescShort("FMS", this.fcltType);
+        String fcltGroup = CodeManager.getFcltGroupNm(this.fcltType);
 //        if (CodeManager.defUnknownDesc.equals(fcltGroup)) {
 //            fcltGroup = CodeManager.getCodeDescShort("FMS", this.fcltType);
 //        }

+ 14 - 0
src/main/java/com/its/op/global/CodeManager.java

@@ -193,6 +193,20 @@ public class CodeManager {
         }
         return defUnknownDesc;
     }
+    public static String getFcltGroupNm(String FCLT_TYPE) {
+        HashMap<String, Code> codeMap = codes.get(FMS_CLASS);
+        if (codeMap != null) {
+            for (String key : codeMap.keySet()) {
+                HashMap<String, Code> subCodeMap = codes.get(key);
+                for (String subKey : codeMap.keySet()) {
+                    if (subKey.equals(FCLT_TYPE)) {
+                        return codeMap.get(key).getDesc();
+                    }
+                }
+            }
+        }
+        return defUnknownDesc;
+    }
     public static String getWeatherCode(String CMMN_CD_KOR_NM) {
         HashMap<String, Code> codeMap = codes.get("DFW");
         if (codeMap != null) {