提交 591ab2ea authored 作者: 潘鹏's avatar 潘鹏

Merge remote-tracking branch 'origin/master'

...@@ -119,7 +119,8 @@ public class AttributesController { ...@@ -119,7 +119,8 @@ public class AttributesController {
List<String> collect = descs.stream().map(AttributesDescEntity::getAttrDescId).collect(Collectors.toList()); List<String> collect = descs.stream().map(AttributesDescEntity::getAttrDescId).collect(Collectors.toList());
descIds.addAll(collect); descIds.addAll(collect);
} }
attributesDescService.deleteBatch(descIds.toArray(new String[descIds.size()])); if (descIds.size() > 0 && descIds != null)
attributesDescService.deleteBatch(descIds.toArray(new String[descIds.size()]));
return R.ok(); return R.ok();
} }
...@@ -193,8 +194,8 @@ public class AttributesController { ...@@ -193,8 +194,8 @@ public class AttributesController {
descVo.setAttrValue(attrValue + "(" + attrDesc + ")"); descVo.setAttrValue(attrValue + "(" + attrDesc + ")");
attributesVos.add(descVo); attributesVos.add(descVo);
}); });
List<AttributesDescVo> list = attributesVos.stream().sorted(Comparator.comparing(AttributesDescVo::getAttrValue)).collect(Collectors.toList());
return R.ok().put("list", attributesVos); return R.ok().put("list", list);
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论