|
@@ -1999,10 +1999,13 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
}
|
|
|
|
|
|
//排序
|
|
|
- List<JSONObject> styleList = styleBeans.stream().sorted(Comparator.comparing(StyleBean::getCreateTime).reversed())
|
|
|
- .map(item -> {
|
|
|
- return item.getStyle();
|
|
|
- }).collect(Collectors.toList());
|
|
|
+ List<JSONObject> styleList = Lists.newArrayList();
|
|
|
+ if(CollUtil.isNotEmpty(styleBeans)){
|
|
|
+ styleList = styleBeans.stream().sorted(Comparator.comparing(StyleBean::getCreateTime).reversed())
|
|
|
+ .map(item -> {
|
|
|
+ return item.getStyle();
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ }
|
|
|
|
|
|
return styleList;
|
|
|
}
|