@@ -254,7 +254,7 @@ public class ZsOperationWarnresultServiceImpl implements IZsOperationWarnresultS | |||
//绝对值 | |||
BigDecimal priceChangeAbs = priceChange.abs(); | |||
// 比较差值比例是否大于等于我们设置的预警阈值 | |||
if (percentageChangeAbs.compareTo(priceChangeAbs) <= 0) { | |||
if (percentageChangeAbs.compareTo(priceChangeAbs) >= 0) { | |||
//正常比较 | |||
//获取基准价格和最新价格的差值比例 | |||
//BigDecimal percentageChange= getChangeThreshold(initPrice,newPrice); |