package com.ruoyi.web.modules.order.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.order.domain.BizGoodsReview;
import com.ruoyi.web.modules.order.dto.SellerReviewQuery;
import com.ruoyi.web.modules.order.vo.SellerReviewDetailVO;
import com.ruoyi.web.modules.order.vo.SellerReviewListRowVO;

public interface BizGoodsReviewMapper
{
    BizGoodsReview selectByOrderId(@Param("orderId") Long orderId);

    BizGoodsReview selectByOrderItemId(@Param("orderItemId") Long orderItemId);

    List<BizGoodsReview> selectByOrderIds(@Param("orderIds") List<Long> orderIds);

    int insert(BizGoodsReview review);

    List<BizGoodsReview> selectMemberList(@Param("memberId") Long memberId);

    List<BizGoodsReview> selectByGoodsId(@Param("goodsId") Long goodsId);

    BizGoodsReview selectById(@Param("reviewId") Long reviewId);

    List<SellerReviewListRowVO> selectSellerList(@Param("shopId") Long shopId,
            @Param("query") SellerReviewQuery query);

    SellerReviewDetailVO selectSellerDetail(@Param("shopId") Long shopId, @Param("reviewId") Long reviewId);

    int updateReply(BizGoodsReview review);

    int updateDelFlag(@Param("reviewId") Long reviewId, @Param("shopId") Long shopId);
}
