|
@@ -387,7 +387,11 @@ public class FeatureService extends ServiceImpl<FeatureMapper, Feature> {
|
|
List<Feature> featureList = new ArrayList<>();
|
|
List<Feature> featureList = new ArrayList<>();
|
|
Integer sort = patentRights.get(i).getSort();
|
|
Integer sort = patentRights.get(i).getSort();
|
|
|
|
|
|
- featureList = allFeatures.stream().filter(item -> item.getRightSort().equals(sort)).collect(Collectors.toList());
|
|
|
|
|
|
+ featureList = allFeatures
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(item -> item.getRightSort().equals(sort))
|
|
|
|
+ .sorted(Comparator.comparingInt(Feature::getSysOrder))
|
|
|
|
+ .collect(Collectors.toList());
|
|
PatentRightVo patentRightVo = new PatentRightVo();
|
|
PatentRightVo patentRightVo = new PatentRightVo();
|
|
patentRightVo.setPatentNo(patentRights.get(i).getPatentNo());
|
|
patentRightVo.setPatentNo(patentRights.get(i).getPatentNo());
|
|
patentRightVo.setFeatures(featureList);
|
|
patentRightVo.setFeatures(featureList);
|