|
@@ -12,6 +12,7 @@ import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static org.springframework.data.domain.ExampleMatcher.GenericPropertyMatchers.contains;
|
|
|
+import static org.springframework.data.domain.ExampleMatcher.GenericPropertyMatchers.exact;
|
|
|
|
|
|
@Service
|
|
|
public class ExamSiteService {
|
|
@@ -23,7 +24,8 @@ public class ExamSiteService {
|
|
|
public Page<ExamSite> findAll(ExamSite examSiteCriteria, Pageable pageable) {
|
|
|
ExampleMatcher exampleMatcher = ExampleMatcher.matching()
|
|
|
.withMatcher("name", contains())
|
|
|
- .withMatcher("code", contains());
|
|
|
+ .withMatcher("code", contains())
|
|
|
+ .withMatcher("orgId",exact());
|
|
|
Example<ExamSite> examSiteExample = Example.of(examSiteCriteria,
|
|
|
exampleMatcher);
|
|
|
return examSiteRepo.findAll(examSiteExample, pageable);
|
|
@@ -32,7 +34,8 @@ public class ExamSiteService {
|
|
|
public List<ExamSite> findAll(ExamSite examSiteCriteria) {
|
|
|
ExampleMatcher exampleMatcher = ExampleMatcher.matching()
|
|
|
.withMatcher("name", contains())
|
|
|
- .withMatcher("code", contains());
|
|
|
+ .withMatcher("code", contains())
|
|
|
+ .withMatcher("orgId",exact());
|
|
|
Example<ExamSite> examSiteExample = Example.of(examSiteCriteria,
|
|
|
exampleMatcher);
|
|
|
return examSiteRepo.findAll(examSiteExample);
|