|
@@ -2103,10 +2103,10 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
}
|
|
|
item.setUserId(user.getUserId());
|
|
|
//查询购买课程
|
|
|
- UserBusinessGoodsVo goodsVo = baseMapper.getCourseByUser(item);
|
|
|
- if (ObjectUtils.isNotNull(goodsVo)){
|
|
|
- goodsVo.setIdNum(item.getIdNum());
|
|
|
- goodsBoList.add(goodsVo);
|
|
|
+ List<UserBusinessGoodsVo> goodsVo = baseMapper.getCourseByUser(item);
|
|
|
+ if (!CollectionUtils.isEmpty(goodsVo)){
|
|
|
+ goodsVo.forEach(x -> x.setIdNum(item.getIdNum()));
|
|
|
+ goodsBoList.addAll(goodsVo);
|
|
|
}
|
|
|
}
|
|
|
return goodsBoList;
|