|
@@ -45,13 +45,13 @@ public class DingdingService {
|
|
|
BigDecimal totalCount = new BigDecimal(total);
|
|
|
BigDecimal dbCount = new BigDecimal(size);
|
|
|
|
|
|
- BigDecimal divideCount = totalCount.divide(dbCount).setScale(2, RoundingMode.HALF_DOWN);
|
|
|
+ BigDecimal divideCount = dbCount.divide(totalCount,2,RoundingMode.HALF_DOWN);
|
|
|
BigDecimal thresholdCount = new BigDecimal(this.threshold);
|
|
|
if(divideCount.compareTo(thresholdCount) >= 0 ){
|
|
|
this.sendDingDingMsg(size);
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
- log.info("modelThreshold--error",e);
|
|
|
+ log.info("modelThreshold--error:{},{}",size,total,e);
|
|
|
}
|
|
|
|
|
|
}
|