终端统计及appbug修改

This commit is contained in:
huangzj
2023-05-16 08:47:49 +08:00
parent 40339b22f8
commit 1ff7080bc9
36 changed files with 686 additions and 40 deletions

View File

@@ -256,6 +256,31 @@ public class PubUtils {
}
}
public static Integer getRunFlag(String runFlag) {
switch (runFlag) {
case "投运":
return 0;
case "热备用":
return 1;
case "停运":
return 2;
default:
return -1;
}
}
public static Double getDefectSeverity(String defectSeverity) {
switch (defectSeverity) {
case "轻缺陷":
return 0.02;
case "较重缺陷":
return 0.12;
case "严重缺陷":
return 0.42;
default:
return 0.00;
}
}
public static String ptType(Integer ptType) {
switch (ptType) {
case 0: