提交 20f09a58 编写于 作者: zhouweidong's avatar zhouweidong

fixed

上级 53cba4d8
...@@ -283,25 +283,25 @@ public class RuleUtils ...@@ -283,25 +283,25 @@ public class RuleUtils
} }
return finalTime.getTime()<tm.getTime(); return finalTime.getTime()<tm.getTime();
} }
else if (finalObject instanceof Integer) else if (finalObject instanceof Integer)
{ {
return (((Integer) finalObject).intValue() < ((Integer)exp).intValue()); return Integer.parseInt(finalObject.toString()) < Integer.parseInt(exp.toString());
} }
else if (finalObject instanceof Double) else if (finalObject instanceof Double)
{ {
return (((Double) finalObject).doubleValue() < ((Double)exp).doubleValue()); return Double.parseDouble(finalObject.toString()) < Double.parseDouble(exp.toString());
} }
else if (finalObject instanceof Float) else if (finalObject instanceof Float)
{ {
return (((Float) finalObject).floatValue() < ((Float)exp).floatValue()); return Float.parseFloat(finalObject.toString()) < Float.parseFloat(exp.toString());
} }
else if (finalObject instanceof String) else if (finalObject instanceof String)
{ {
return finalObject.toString().compareToIgnoreCase(exp.toString())<0; return finalObject.toString().compareToIgnoreCase(exp.toString())<0;
} }
else if (finalObject instanceof Long) else if (finalObject instanceof Long)
{ {
return (((Long) finalObject).longValue() < (Long.parseLong(exp.toString()))); return Long.parseLong(finalObject.toString()) < Long.parseLong(exp.toString());
} }
else else
return false; return false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册