package com.keao.edu.user.dao;

import com.keao.edu.common.dal.BaseDAO;
import com.keao.edu.user.entity.ExamRegistrationPayment;
import org.apache.ibatis.annotations.Param;

public interface ExamRegistrationPaymentDao extends BaseDAO<Long, ExamRegistrationPayment> {

    /**
     * 获取用户项目未支付的订单
     *
     * @param examinationBasicId
     * @param userId
     * @return
     */
    ExamRegistrationPayment getExamIngOrder(@Param("examinationBasicId") Integer examinationBasicId, @Param("userId") Integer userId);

    /**
     * 根据订单号获取订单
     * @param orderNo
     * @return
     */
    ExamRegistrationPayment getByOrderNo(@Param("orderNo") String orderNo);
}
