|
@@ -1,5 +1,6 @@
|
|
|
package com.ylx.order.service.impl;
|
|
package com.ylx.order.service.impl;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
@@ -135,7 +136,7 @@ public class TCommentUserServiceImpl extends ServiceImpl<TCommentUserMapper, TCo
|
|
|
Page<MerchantCommentVO> page = new Page<>(dto.getCurrent(), dto.getSize());
|
|
Page<MerchantCommentVO> page = new Page<>(dto.getCurrent(), dto.getSize());
|
|
|
// 1.查询评论和订单基础信息
|
|
// 1.查询评论和订单基础信息
|
|
|
page = this.baseMapper.getMerchantComment(page, dto);
|
|
page = this.baseMapper.getMerchantComment(page, dto);
|
|
|
- if(ObjectUtil.isNotNull(page) && ObjectUtil.isNotNull(page.getRecords())){
|
|
|
|
|
|
|
+ if(ObjectUtil.isNotNull(page) && CollUtil.isNotEmpty(page.getRecords())){
|
|
|
List<MerchantCommentVO> records = page.getRecords();
|
|
List<MerchantCommentVO> records = page.getRecords();
|
|
|
|
|
|
|
|
// 2. 提取所有评论ID
|
|
// 2. 提取所有评论ID
|