Description or Example
# 核心代码
```java
@RequestMapping("/attr/relation")
public R addRelations(@RequestBody List<AttrAttrGroupRelationVO> vos) {
relationService.addRelations(vos);
return R.ok();
}
```
```java
@Override
public void addRelations(List<AttrAttrGroupRelationVO> vos) {
List<AttrAttrgroupRelationEntity> entities = vos.stream().map(vo -> {
AttrAttrgroupRelationEntity relation = new AttrAttrgroupRelationEntity();
BeanUtils.copyProperties(vo, relation);
return relation;
}).collect(Collectors.toList());
this.saveBatch(entities);
}
```