Commit fd78d0a4 authored by suntao's avatar suntao

回调地址保存

parent 8bbac696
......@@ -3,6 +3,7 @@ package cn.quantgroup.cashloanflowboss.spi.clf.repository;
import cn.quantgroup.cashloanflowboss.core.persistence.CashLoanFlowDataSource;
import cn.quantgroup.cashloanflowboss.spi.clf.entity.ClfOrderCallBack;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
/**
......@@ -15,6 +16,7 @@ import org.springframework.stereotype.Repository;
@Repository
public interface ClfOrderCallbackRepository extends JpaRepository<ClfOrderCallBack, Long> {
@Query(value = "select * from order_callback where callback_status = ?1 and registered_from = ?2", nativeQuery = true)
ClfOrderCallBack findByCallbackStatusAndRegisteredFrom(String callbackState, Long channelId);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment