package com.zm.order.tool.server.hint;

import com.zm.order.tool.server.model.OrderItemComment;
import com.zm.order.tool.server.model.OrderItemCommentQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author nianchang
 * @ClassName HintOrderCommentDao
 * @date 2021/07/15 1:44 下午
 */
@Repository
public interface HintOrderItemCommentDao {

    /**
     * 查询列表
     * @param query query
     * @return
     * Date: 2021/3/30 4:45 下午
     */
    List<OrderItemComment> scan(OrderItemCommentQuery query);

    /**
     * 查询单条信息
     * @param orderNo 订单号
     * @param sellerId 商家ID
     * @return
     * Date: 2021/4/7 10:54 上午
     */
    OrderItemComment selectOne(@Param("orderNo") String orderNo, @Param("sellerId") Long sellerId);

    /**
     * 修改
     * @param record record
     * @return
     * Date: 2021/5/11 2:16 下午
     */
    int update(OrderItemComment record);
}
