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

import com.zm.order.tool.server.model.PerformanceSelfTake;
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 HistoryDataSelfTakeDao {


    /**
     * 查询单个履约信息
     *
     * @param orderNo 订单号
     * @param userId 用户id
     * @return PerformanceSelfTake
     */
    PerformanceSelfTake selectOne(@Param("orderNo") String orderNo, @Param("userId") Long userId);

    /**
     * 查询单个履约信息
     *
     * @param orderNoList 订单号
     * @param userId 用户id
     * @return PerformanceSelfTake
     */
    List<PerformanceSelfTake> selectByOrderNoList(@Param("orderNoList") List<String> orderNoList, @Param("userId") Long userId);

}
