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


import com.zm.order.tool.server.model.OrderPayDetails;
import com.zm.order.tool.server.query.OrderPayDetailsQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * <p>
 *
 * </p>
 *
 * @author nianchang
 * @date 2023/02/17 3:42 下午
 */
@Repository
public interface HistoryDataPayDetailsDao {

    /**
     * 查询
     *
     * @param orderNo 订单号
     * @param userId 用户id
     * @return List || []
     */
    List<OrderPayDetails> selectByOrderNo(@Param("orderNo") String orderNo,
                                          @Param("userId") Long userId);

    /**
     * 查询列表
     *
     * @param query 查询条件
     * @return List || []
     */
    List<OrderPayDetails> selectList(OrderPayDetailsQuery query);

    /**
     * 插入
     *
     * @param list
     * @return
     */
    void replaceList(@Param("list") List<OrderPayDetails> list);

}
