43 lines
817 B
Java
43 lines
817 B
Java
package com.ruoyi.jarvis.mapper;
|
|
|
|
import com.ruoyi.jarvis.domain.Comment;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* 京东评论 Mapper 接口
|
|
*/
|
|
public interface CommentMapper {
|
|
|
|
/**
|
|
* 查询京东评论列表
|
|
*/
|
|
List<Comment> selectCommentList(Comment comment);
|
|
|
|
/**
|
|
* 根据ID查询京东评论
|
|
*/
|
|
Comment selectCommentById(Long id);
|
|
|
|
/**
|
|
* 根据商品ID查询评论统计
|
|
*/
|
|
Map<String, Object> selectCommentStatisticsByProductId(String productId);
|
|
|
|
/**
|
|
* 更新评论使用状态
|
|
*/
|
|
int updateCommentIsUse(Comment comment);
|
|
|
|
/**
|
|
* 批量删除评论
|
|
*/
|
|
int deleteCommentByIds(Long[] ids);
|
|
|
|
/**
|
|
* 重置评论使用状态(批量)
|
|
*/
|
|
int resetCommentIsUseByProductId(String productId);
|
|
}
|
|
|