|
|
@@ -130,8 +130,8 @@ public class ProdCommServiceImpl extends ServiceImpl<ProdCommMapper, ProdComm> i
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public IPage<ProdComm> commList(PageParam<ProdComm> page, Long skuId,Long shopId,Integer commStatus,Long channelId) {
|
|
|
- IPage<ProdComm> commList = prodCommMapper.commList(page, skuId,shopId,commStatus,channelId);
|
|
|
+ public IPage<ProdComm> commList(PageParam<ProdComm> page, Long prodId,Long shopId,Integer commStatus,Long channelId) {
|
|
|
+ IPage<ProdComm> commList = prodCommMapper.commList(page, prodId,shopId,commStatus,channelId);
|
|
|
List<ProdComm> records = commList.getRecords();
|
|
|
if (!records.isEmpty()){
|
|
|
records.forEach(c->
|
|
|
@@ -142,14 +142,14 @@ public class ProdCommServiceImpl extends ServiceImpl<ProdCommMapper, ProdComm> i
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Map<String, Object> commentCount(Long skuId, Long shopId,Long channelId) {
|
|
|
+ public Map<String, Object> commentCount(Long prodId, Long shopId,Long channelId) {
|
|
|
Map<String, Object> map = new LinkedTreeMap<>();
|
|
|
- map.put("all", prodCommMapper.commentCount(skuId, shopId,null,channelId));
|
|
|
- map.put("goodCount", prodCommMapper.commentCount(skuId, shopId,0,channelId));
|
|
|
- map.put("middleCount", prodCommMapper.commentCount(skuId, shopId,1,channelId));
|
|
|
- map.put("badCount", prodCommMapper.commentCount(skuId, shopId,2,channelId));
|
|
|
- map.put("picCount", prodCommMapper.picCount(skuId, shopId,channelId));
|
|
|
- map.put("goodRate", prodCommMapper.goodRate(skuId, shopId,channelId));
|
|
|
+ map.put("all", prodCommMapper.commentCount(prodId, shopId,null,channelId));
|
|
|
+ map.put("goodCount", prodCommMapper.commentCount(prodId, shopId,0,channelId));
|
|
|
+ map.put("middleCount", prodCommMapper.commentCount(prodId, shopId,1,channelId));
|
|
|
+ map.put("badCount", prodCommMapper.commentCount(prodId, shopId,2,channelId));
|
|
|
+ map.put("picCount", prodCommMapper.picCount(prodId, shopId,channelId));
|
|
|
+ map.put("goodRate", prodCommMapper.goodRate(prodId, shopId,channelId));
|
|
|
return map;
|
|
|
}
|
|
|
|