| | |
| | | } |
| | | mallGoodsDetailsVo.setImages(images); |
| | | |
| | | QueryWrapper<MallGoodsComment> objectQueryWrapper = new QueryWrapper<>(); |
| | | objectQueryWrapper.eq("goods_id",id); |
| | | LambdaQueryWrapper<MallGoodsComment> objectQueryWrapper = new LambdaQueryWrapper<>(); |
| | | objectQueryWrapper.eq(MallGoodsComment::getGoodsId,id); |
| | | objectQueryWrapper.eq(MallGoodsComment::getShowState,1); |
| | | Integer commentCount = mallGoodsCommentMapper.selectCount(objectQueryWrapper); |
| | | mallGoodsDetailsVo.setCommentCount(commentCount); |
| | | return mallGoodsDetailsVo; |