踩过的坑:使用BeanUtils.copyProperties复制属性,若对象为List须要new数组而后再转成List

public List<DeliverAddressDTO> selectByUserId(String userId) { //根据userId查询 List<DeliverAddress> deliverAddresses = addressMapper.selectByUserId(userId); //new一个长度为entity实体类Lis
相关文章
相关标签/搜索