package org.jebot.repository.xxpay;

import org.jebot.models.xxpay.BlackUser;
import org.jebot.models.xxpay.PayOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Component
public interface BlackUserRepository extends JpaRepository<BlackUser, String> {

    //通过支付单号查询支付订单
    @Query("SELECT t FROM t_black_user t WHERE t.userId =:userId")
    BlackUser findByUserId(@Param("userId") String userId);

}
