feat(可回溯): 重构
重构为mysql
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.wabestway.recall.repository;
|
||||
|
||||
import com.wabestway.recall.model.Order;
|
||||
import org.springframework.data.domain.*;
|
||||
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
|
||||
import reactor.core.publisher.Flux;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
public interface OrderRepository extends ReactiveMongoRepository<Order, String> {
|
||||
Mono<Order> findByOrderId(String orderId);
|
||||
|
||||
Mono<Order> findByTraceId(String traceId);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.wabestway.recall.repository;
|
||||
|
||||
|
||||
import com.wabestway.recall.model.Record;
|
||||
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
|
||||
import reactor.core.publisher.Flux;
|
||||
|
||||
|
||||
public interface RecordRepository extends ReactiveMongoRepository<Record, String> {
|
||||
Flux<Record> findAllByTraceIdOrderByCreateAtAsc(String traceId);
|
||||
}
|
||||
Reference in New Issue
Block a user