forked from baskbuddy/zhangshun
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
668 B
18 lines
668 B
package com.mydreamjob.bidirectionalmatch;
|
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.util.List;
|
|
import java.util.Optional;
|
|
|
|
@Repository
|
|
public interface ApplicationMatchEventRepository extends JpaRepository<ApplicationMatchEvent, Long> {
|
|
|
|
Optional<ApplicationMatchEvent> findByApplicationIdAndEventTypeAndDedupKey(
|
|
Long applicationId, String eventType, String dedupKey);
|
|
|
|
/** 待发送的 MATCH_SUCCEEDED 通知(Outbox 轮询) */
|
|
List<ApplicationMatchEvent> findByEventTypeAndNotificationStatus(
|
|
String eventType, String notificationStatus);
|
|
}
|
|
|