提交 a7ca695b authored 作者: 吴德鹏's avatar 吴德鹏

属性管理

上级 3dab3ca4
......@@ -112,7 +112,13 @@ public class AttributesController {
@ResponseBody
public R delete(@RequestBody String[] ids) {
attributesService.deleteBatch(ids);
List<String> descIds = new ArrayList<>();
for (String id : ids) {
List<AttributesDescEntity> descs = attributesDescService.queryByAttrId(id);
List<String> collect = descs.stream().map(AttributesDescEntity::getAttrDescId).collect(Collectors.toList());
descIds.addAll(collect);
}
attributesDescService.deleteBatch(descIds.toArray(new String[descIds.size()]));
return R.ok();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论