|
|
@@ -1,5 +1,6 @@
|
|
|
package shop.alien.mapper;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
@@ -72,5 +73,18 @@ public interface CommonRatingMapper extends BaseMapper<CommonRating> {
|
|
|
int logicDeleteById(@Param("id") Integer id);
|
|
|
|
|
|
IPage<CommonRating> getMyRatingList(Page<CommonRating> page, @Param(Constants.WRAPPER) QueryWrapper<CommonRating> wrapper);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分页查询评价列表(支持 wrapper 条件,如 business_id、business_type、audit_status、is_show 等)
|
|
|
+ *
|
|
|
+ * @param page 分页参数
|
|
|
+ * @param wrapper 查询条件,例如:
|
|
|
+ * wrapper.eq(CommonRating::getBusinessId, businessId);
|
|
|
+ * wrapper.eq(CommonRating::getBusinessType, businessType);
|
|
|
+ * wrapper.eq(CommonRating::getAuditStatus, 1);
|
|
|
+ * wrapper.eq(CommonRating::getIsShow, 1);
|
|
|
+ * @return 分页结果
|
|
|
+ */
|
|
|
+ Integer getRatingWithNoReply( @Param(Constants.WRAPPER) Wrapper<CommonRating> wrapper);
|
|
|
}
|
|
|
|