|
@@ -52,13 +52,13 @@ public class GoodsCommentController extends BaseController {
|
|
|
* 查询商品评论列表
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('goods:goodsComment:list')")
|
|
|
- @PostMapping("/list")
|
|
|
+ @GetMapping("/list")
|
|
|
@ApiOperation(value = "查询商品评论列表")
|
|
|
- public R<Page<GoodsCommentQueryVO>> list(@RequestBody GoodsCommentQueryDTO goodsCommentQueryDTO) {
|
|
|
+ public R<Page<GoodsCommentQueryVO>> list(GoodsCommentQueryDTO goodsCommentQueryDTO) {
|
|
|
Page<GoodsCommentQueryVO> page = new Page<>();
|
|
|
List<GoodsCommentQueryVO> goodsCommentList = goodsCommentService.selectGoodsCommentList(goodsCommentQueryDTO);
|
|
|
if (CollUtil.isEmpty(goodsCommentList)){
|
|
|
- return R.ok(page);
|
|
|
+ return R.page(page);
|
|
|
}
|
|
|
Integer count = goodsCommentService.countNumberByGoodsCommentList(goodsCommentQueryDTO);
|
|
|
|
|
@@ -68,14 +68,14 @@ public class GoodsCommentController extends BaseController {
|
|
|
if (CollUtil.isEmpty(map)){
|
|
|
page.setRecords(goodsCommentList);
|
|
|
page.setTotal(count);
|
|
|
- return R.ok(page);
|
|
|
+ return R.page(page);
|
|
|
}
|
|
|
for (GoodsCommentQueryVO vo : goodsCommentList) {
|
|
|
vo.setSkuList(map.get(vo.getId()));
|
|
|
}
|
|
|
page.setRecords(goodsCommentList);
|
|
|
page.setTotal(count);
|
|
|
- return R.ok(page);
|
|
|
+ return R.page(page);
|
|
|
}
|
|
|
|
|
|
/**
|