| | |
| | | vo.setSort(homeModule.getSort()); |
| | | vo.setBackgroundImage(homeModule.getBackgroundImage()); |
| | | vo.setDisplayType(homeModule.getDisplayType()); |
| | | vo.setId(homeModule.getId()); |
| | | listVo.add(vo); |
| | | } |
| | | for (StoreConfig storeConfig : list) { |
| | |
| | | storeConfigVo.setBackgroundImage("https://we-park-life.oss-cn-beijing.aliyuncs.com/img/0771fb3bd4de43c08492d0912209e51f.png"); |
| | | break; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | listVo.add(storeConfigVo); |
| | | } |
| | | |
| | |
| | | storeConfigVo.setSort(worldCupStore.getSort()); |
| | | listVo.add(storeConfigVo); |
| | | } |
| | | |
| | | |
| | | //排序 |
| | | Collections.sort(listVo, new Comparator<StoreConfigVo>() { |
| | | @Override |
| | | public int compare(StoreConfigVo o1, StoreConfigVo o2) { |
| | | return o1.getSort().compareTo(o2.getSort()); |
| | | return Comparator.nullsLast(Integer::compareTo).compare(o1.getSort(), o2.getSort()); |
| | | } |
| | | }); |
| | | //排序 |
| | | Collections.sort(listVo, new Comparator<StoreConfigVo>() { |
| | | @Override |
| | | public int compare(StoreConfigVo o1, StoreConfigVo o2) { |
| | | return o1.getIsTop().compareTo(o2.getIsTop()) * -1; |
| | | return Comparator.nullsLast(Integer::compareTo).compare(o2.getIsTop(), o1.getIsTop()); |
| | | } |
| | | }); |
| | | for (int i = 0; i < listVo.size(); i++) { |