lyhzzz 3 years ago
parent
commit
cd06199b65
1 changed files with 11 additions and 11 deletions
  1. 11 11
      src/main/java/com/fdkankan/manage/util/SceneStatusUtil.java

+ 11 - 11
src/main/java/com/fdkankan/manage/util/SceneStatusUtil.java

@@ -8,17 +8,17 @@ public class SceneStatusUtil {
         if(vo == null || vo.getPayStatus() == null){
         if(vo == null || vo.getPayStatus() == null){
             return "";
             return "";
         }
         }
-        if(vo.getPayStatus() != 1){
-            return  "封存";
-        }else {
-            switch (vo.getStatus()){
-                case 0 : return "计算中";
-                case 1 :
-                case -2 :
-                    return "计算成功";
-                case -1 : return "计算失败";
-                default: return "";
-            }
+        switch (vo.getStatus()){
+            case 0 : return "计算中";
+            case 1 :
+            case -2 :
+                if(vo.getPayStatus() != 1){
+                    return  "封存";
+                }
+                return "计算成功";
+            case -1 : return "计算失败";
+            default: return "";
         }
         }
+
     }
     }
 }
 }