修复自定义比较后台报错
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user