|
|
@@ -66,12 +66,16 @@ public class ProdCommController {
|
|
|
@GetMapping("/commList")
|
|
|
@ApiOperation(value = "商品详情-查看商品评价(0好评 1中评 2差评 3有图)")
|
|
|
public ResponseEntity<IPage<ProdComm>> commList(PageParam<ProdComm> page, Long skuId,Long shopId, Integer commStatus,Long channelId) {
|
|
|
+ shopId = shopId == null ? 1 : shopId;
|
|
|
+ channelId = channelId == null ? 1 : channelId;
|
|
|
return ResponseEntity.ok(prodCommService.commList(page,skuId,shopId,commStatus,channelId));
|
|
|
}
|
|
|
|
|
|
@GetMapping("/commentCount")
|
|
|
@ApiOperation(value = "商品详情-评价数量-好评率")
|
|
|
public ResponseEntity<Map<String, Object>> commentCount(Long skuId,Long shopId,Long channelId) {
|
|
|
+ shopId = shopId == null ? 1 : shopId;
|
|
|
+ channelId = channelId == null ? 1 : channelId;
|
|
|
return ResponseEntity.ok(prodCommService.commentCount(skuId,shopId,channelId));
|
|
|
}
|
|
|
|