lyhzzz пре 1 година
родитељ
комит
83e34582d8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/java/com/fdkankan/manage/task/DingdingService.java

+ 1 - 1
src/main/java/com/fdkankan/manage/task/DingdingService.java

@@ -51,7 +51,7 @@ public class DingdingService {
             BigDecimal divideCount = dbCount.divide(totalCount,2,RoundingMode.HALF_DOWN);
             BigDecimal thresholdCount = new BigDecimal(threshold).setScale(2,RoundingMode.HALF_DOWN);
             log.info("modelThreshold--{},{},{},{}",threshold,divideCount,thresholdCount,divideCount.compareTo(thresholdCount));
-            if(divideCount.compareTo(thresholdCount) < 0 ){
+            if(divideCount.compareTo(thresholdCount) <= 0 ){
                 this.sendDingDingMsg(size);
             }
         }catch (Exception e){