。。。
This commit is contained in:
parent
a26819491d
commit
5b63e648e2
|
@ -478,6 +478,10 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
}, Comparator.reverseOrder())
|
}, Comparator.reverseOrder())
|
||||||
.thenComparing(x -> {
|
.thenComparing(x -> {
|
||||||
Map index = (Map) x;
|
Map index = (Map) x;
|
||||||
|
int pingTOp_ = (index.get("pin_top") == null) ? 0 : Integer.parseInt(index.get("pin_top").toString());
|
||||||
|
if (pingTOp_ <= 0) {
|
||||||
|
return 0l;
|
||||||
|
}
|
||||||
long pingTOp = (index.get("pin_top_time") == null) ? 0 : Long.parseLong(index.get("pin_top_time").toString());
|
long pingTOp = (index.get("pin_top_time") == null) ? 0 : Long.parseLong(index.get("pin_top_time").toString());
|
||||||
return pingTOp;
|
return pingTOp;
|
||||||
}, Comparator.reverseOrder())
|
}, Comparator.reverseOrder())
|
||||||
|
@ -500,6 +504,10 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
}, Comparator.reverseOrder())
|
}, Comparator.reverseOrder())
|
||||||
.thenComparing(x -> {
|
.thenComparing(x -> {
|
||||||
Map index = (Map) x;
|
Map index = (Map) x;
|
||||||
|
int pingTOp_ = (index.get("pin_top") == null) ? 0 : Integer.parseInt(index.get("pin_top").toString());
|
||||||
|
if (pingTOp_ <= 0) {
|
||||||
|
return 0l;
|
||||||
|
}
|
||||||
long pingTOp = (index.get("pin_top_time") == null) ? 0 : Long.parseLong(index.get("pin_top_time").toString());
|
long pingTOp = (index.get("pin_top_time") == null) ? 0 : Long.parseLong(index.get("pin_top_time").toString());
|
||||||
return pingTOp;
|
return pingTOp;
|
||||||
}, Comparator.reverseOrder())
|
}, Comparator.reverseOrder())
|
||||||
|
|
Loading…
Reference in New Issue