итоговая МКР условия выборки регистров на шаге 4
This commit is contained in:
parent
2f2d99e7ce
commit
7bda8ea334
2 changed files with 14 additions and 5 deletions
|
|
@ -88,11 +88,13 @@ public class FinalMkrSession extends AbstractSession implements InitializingBean
|
||||||
//fixme спросить у Кости нужны ли эти поправки
|
//fixme спросить у Кости нужны ли эти поправки
|
||||||
ImdgPredicateBuilder rgsPrctBuilder = registryImdg.predicateBuilder();
|
ImdgPredicateBuilder rgsPrctBuilder = registryImdg.predicateBuilder();
|
||||||
inclusionObligations.addRegistryCondition(
|
inclusionObligations.addRegistryCondition(
|
||||||
rgsPrctBuilder.or(rgsPrctBuilder.equals("registryStatus", RegistryStatus.PROC.getKey()),
|
rgsPrctBuilder.and(
|
||||||
rgsPrctBuilder.equals("registryStatus", RegistryStatus.MNG.getKey()))
|
rgsPrctBuilder.or(
|
||||||
);
|
rgsPrctBuilder.equals("registryStatus", RegistryStatus.PROC.getKey()),
|
||||||
inclusionObligations.addRegistryCondition(
|
rgsPrctBuilder.equals("registryStatus", RegistryStatus.MNG.getKey())
|
||||||
rgsPrctBuilder.less("valueDate", LocalDate.now())
|
),
|
||||||
|
rgsPrctBuilder.lessEqual("valueDate", LocalDate.now())
|
||||||
|
)
|
||||||
);
|
);
|
||||||
inspectionObligations.setSessionType(sectionType());
|
inspectionObligations.setSessionType(sectionType());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
package ru.spcex.platform.utils.collection;
|
package ru.spcex.platform.utils.collection;
|
||||||
|
|
||||||
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
public class Pair<T1, T2> {
|
public class Pair<T1, T2> {
|
||||||
private T1 first;
|
private T1 first;
|
||||||
private T2 second;
|
private T2 second;
|
||||||
|
|
@ -24,4 +26,9 @@ public class Pair<T1, T2> {
|
||||||
public void setSecond(T2 second) {
|
public void setSecond(T2 second) {
|
||||||
this.second = second;
|
this.second = second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static <T1> void forEach(Pair<T1, T1> p, Consumer<T1> consumer) {
|
||||||
|
consumer.accept(p.getFirst());
|
||||||
|
consumer.accept(p.getSecond());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue