REQ-3581: 排序
This commit is contained in:
parent
29982b7272
commit
78c1ec2475
@ -119,8 +119,9 @@ public class QueryService {
|
||||
List<EssSeal> seals = ouId2Seals.getOrDefault(org.getOuId(), Collections.emptyList());
|
||||
orgAndSeal.setSeals(BeanMapper.copyList(seals, EssSealInfo.class));
|
||||
for (EssSealInfo sealInfo : orgAndSeal.getSeals()) {
|
||||
List<EssSealPerson> persons = essSealId2Persons.getOrDefault(sealInfo.getEssSealId(),
|
||||
Collections.emptyList());
|
||||
List<EssSealPerson> persons = new ArrayList<>(
|
||||
essSealId2Persons.getOrDefault(sealInfo.getEssSealId(), Collections.emptyList()));
|
||||
persons.sort((p1, p2) -> -Long.compare(p1.getId(), p2.getId()));
|
||||
for (EssSealPerson sealPerson : persons) {
|
||||
EssPerson essPerson = essPersons.getOrThrow(
|
||||
OuAndPersonId.create(sealPerson.getOuId(), sealPerson.getPersonId()));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user