package com.sinata.rest.modular.mall.dao;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.sinata.rest.modular.mall.controller.vo.VoGoodsUserEvaluation;
|
import com.sinata.rest.modular.mall.model.MallUserEvaluation;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 用户评价 Mapper 接口
|
* </p>
|
*
|
* @author goku
|
* @since 2023-03-10
|
*/
|
public interface MallUserEvaluationMapper extends BaseMapper<MallUserEvaluation> {
|
|
/**
|
* <p>
|
* 获取商品最新的一条评价
|
* </p>
|
* @author sl
|
* @Description 获取商品最新的一条评价
|
* @date 2023/3/15 15:21
|
* @param [goodsId]
|
* @return com.sinata.rest.modular.mall.controller.vo.VoGoodsUserEvaluation
|
*/
|
VoGoodsUserEvaluation goodsNewestEvaluation(@Param("goodsId") Integer goodsId);
|
|
/**
|
* 获取商品评价列表
|
* @param page 分页
|
* @return
|
*/
|
List<VoGoodsUserEvaluation> selectEvaluationList(@Param("merchantId") Integer merchantId, @Param("goodsId") Integer goodsId, @Param("page") Page<VoGoodsUserEvaluation> page);
|
|
/*我的评价列表*/
|
List<VoGoodsUserEvaluation> selectEvaluationListForUser(@Param("userId") Integer userId, @Param("page") Page<VoGoodsUserEvaluation> page);
|
}
|