From b6c29718e10e25a6a49fe9538f554371e1560720 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 25 七月 2022 15:50:22 +0800
Subject: [PATCH] 1. 调试监管统计文件下载接口; 2. 新增自动评分刷新接口; 3. 针对前端页面,调整部分接口

---
 src/main/kotlin/cn/flightfeather/supervision/common/utils/Constant.kt |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/common/utils/Constant.kt b/src/main/kotlin/cn/flightfeather/supervision/common/utils/Constant.kt
index 921170e..5b5e162 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/common/utils/Constant.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/common/utils/Constant.kt
@@ -59,6 +59,25 @@
                 "99" -> TYPE99.text
                 else -> ""
             }
+
+            fun getByValue(value: String?) = when (value.toString()) {
+                "1" -> TYPE1
+                "2" -> TYPE2
+                "3" -> TYPE3
+                "4" -> TYPE4
+                "5" -> TYPE5
+                "6" -> TYPE6
+                "7" -> TYPE7
+                "8" -> TYPE8
+                "9" -> TYPE9
+                "10" -> TYPE10
+                "11" -> TYPE11
+                "12" -> TYPE12
+                "13" -> TYPE13
+                "14" -> TYPE14
+                "99" -> TYPE99
+                else -> TYPE99
+            }
         }
     }
 

--
Gitblit v1.9.3