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

Merge remote-tracking branch 'origin/master'

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