package com.xinelu.applet.mapper.apporderevaluate;


import com.xinelu.applet.dto.apporderevaluate.OrderEvaluateAndPictureDTO;
import com.xinelu.manage.domain.goodsOrder.GoodsOrder;
import com.xinelu.manage.domain.orderevaluatepictureinfo.OrderEvaluatePictureInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预约服务订单和商品订单评价信息Mapper接口
 *
 * @author 张恒
 * @date 2022-11-17
 */
public interface AppOrderEvaluateMapper {

    /**
     * 新增订单评价图片信息
     *
     * @param orderEvaluatePictureList 订单评价图片信息
     * @return 结果
     */
    int insertOrderEvaluatePictureList(@Param("orderEvaluatePictureList") List<OrderEvaluatePictureInfo> orderEvaluatePictureList);

    /**
     * 通过订单编号查询订单评价信息
     *
     * @param orderNo 订单编号
     * @return OrderEvaluateAndPictureDTO
     */
    OrderEvaluateAndPictureDTO selectOrderEvaluateAndPictureByOrderNo(String orderNo);

    /**
     * 查询商品订单信息
     *
     * @param orderNo 订单编号
     * @return GoodsOrder
     */
    GoodsOrder selectGoodsOrderByOrderNo(String orderNo);
}
