| | |
| | | list.addAll(list1); |
| | | |
| | | if (list.size() == 0) { |
| | | |
| | | pageId = 0L; |
| | | } else { |
| | | |
| | | pageId = list.get(list.size() - 1).getId(); |
| | | |
| | | // 版本过滤 |
| | | int version = Integer.parseInt(acceptData.getVersion()); |
| | | String platform = acceptData.getPlatform().toLowerCase(); |
| | | List<AppVersionInfo> versionList = appVersionService.listByPlatformAndMinVersionCode(platform, version, acceptData.getSystem()); |
| | | if (versionList == null || versionList.size() <= 0) { |
| | | //降级 |
| | | versionList = appVersionService.listByPlatformAndMaxVersionCode(platform, version, acceptData.getSystem()); |
| | | if(versionList!=null&&versionList.size()>0) { |
| | | version = versionList.get(versionList.size() - 1).getVersionCode(); |
| | | versionList = appVersionService.listByPlatformAndMinVersionCode(platform, version, acceptData.getSystem()); |
| | | } |
| | | } |
| | | if (versionList == null || versionList.size() <= 0) { |
| | | list.clear(); |
| | | } else { |
| | |
| | | String platform = acceptData.getPlatform().toLowerCase(); |
| | | List<AppVersionInfo> versionList = appVersionService.listByPlatformAndMinVersionCode(platform, version, acceptData.getSystem()); |
| | | if (versionList == null || versionList.size() <= 0) { |
| | | //降级 |
| | | versionList = appVersionService.listByPlatformAndMaxVersionCode(platform, version, acceptData.getSystem()); |
| | | if(versionList!=null&&versionList.size()>0) { |
| | | version = versionList.get(versionList.size() - 1).getVersionCode(); |
| | | versionList = appVersionService.listByPlatformAndMinVersionCode(platform, version, acceptData.getSystem()); |
| | | } |
| | | } |
| | | |
| | | if (versionList == null || versionList.size() <= 0) { |
| | | resultList.clear(); |
| | | } else { |
| | | List<Long> sourceIdList = new ArrayList<>(); |
| | |
| | | for (int i = 0; i < list.size(); i++) { |
| | | if (!sets.contains(list.get(i).getId())) { |
| | | list.remove(i--); |
| | | |
| | | } |
| | | } |
| | | } |