Merge branch 'master' into docker_package
This commit is contained in:
commit
1198ca9a09
|
@ -478,6 +478,10 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
}, Comparator.reverseOrder())
|
||||
.thenComparing(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());
|
||||
return pingTOp;
|
||||
}, Comparator.reverseOrder())
|
||||
|
@ -500,6 +504,10 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
}, Comparator.reverseOrder())
|
||||
.thenComparing(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());
|
||||
return pingTOp;
|
||||
}, Comparator.reverseOrder())
|
||||
|
|
Loading…
Reference in New Issue