修复自定义比较后台报错

This commit is contained in:
wangwenrui
2018-12-18 15:00:16 +08:00
parent dafa40a3af
commit 9bed38f4e8

View File

@@ -548,16 +548,12 @@ public class TrafficStatisticsInfoController extends BaseController {
if(o1!=null&&o2==null){
return -1;
}
if(o1==null&&o2==null){
if(o1==o2&&o1==null){
return 0;
}
Map m1=(Map)o1;
Map m2=(Map)o2;
if((Double)m1.get("byteCount")==(Double)m2.get("byteCount")){
return 0;
}
int result=((Double)m1.get("byteCount")-(Double)m2.get("byteCount"))>0?-1:1;
return result;
return -((Double)m1.get("byteCount")).compareTo((Double)m2.get("byteCount"));
}
});
} catch (Exception e) {