浏览代码

修改计算维保持续天数逻辑

miaolijing 3 年之前
父节点
当前提交
53c06cc01b

+ 4 - 4
src/main/java/com/persagy/apm/diagnose/maintenance/service/impl/ProjectDataRecordServiceImpl.java

@@ -597,19 +597,19 @@ public class ProjectDataRecordServiceImpl implements IProjectDataRecordService {
                         return true;
                     }
                 case ">":
-                    if (checkVal >= limitVal) {
+                    if (checkVal > limitVal) {
                         return true;
                     }
                 case "≤":
-                    if (checkVal >= limitVal) {
+                    if (checkVal <= limitVal) {
                         return true;
                     }
                 case "<":
-                    if (checkVal >= limitVal) {
+                    if (checkVal < limitVal) {
                         return true;
                     }
                 case "=":
-                    if (checkVal >= limitVal) {
+                    if (checkVal == limitVal) {
                         return true;
                     }
                 default: