Commit 49e0cd22 by 高晓磊

散户预警重量可以支持小数

parent 04ea5bd4
...@@ -39,7 +39,7 @@ public class RetailInfoBuyAmountWarningCalculate implements IWarningCalculator{ ...@@ -39,7 +39,7 @@ public class RetailInfoBuyAmountWarningCalculate implements IWarningCalculator{
return false; return false;
} }
//业务数据与设置的阀值做比较,计算是否预警 //业务数据与设置的阀值做比较,计算是否预警
if (buyAmount >= Integer.parseInt(max)) { if (buyAmount >= Double.parseDouble(max)) {
warnMessage = "["+target+"]"+retailInfoName+":"+idCard+"购买总量:"+buyAmount+",超出预警值"+max; warnMessage = "["+target+"]"+retailInfoName+":"+idCard+"购买总量:"+buyAmount+",超出预警值"+max;
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment