@Override public void deleteRelation(AttrGroupRelationVo vos) { //将我们接受数据的对象转为一个 entity List<AttrAttrgroupRelationEntity> list = Arrays.asList(vos).stream().map((item) -> { AttrAttrgroupRelationEntity entity = new AttrAttrgroupRelationEntity(); BeanUtils.copyProperties(item, entity); return entity; }).collect(Collectors.toList()); //批量的删关联表中的数据 attrAttrgroupRelationDao.removeBatchRelation(list); }
标签:优质,AttrAttrgroupRelationEntity,代码,list,entity,item,vos From: https://www.cnblogs.com/liyanxi/p/16812741.html