This commit is contained in:
parent
5fc51a58c8
commit
ede0b6792f
2 changed files with 7 additions and 2 deletions
4
pom.xml
4
pom.xml
|
|
@ -10,7 +10,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>ru.nbch</groupId>
|
<groupId>ru.nbch</groupId>
|
||||||
<artifactId>credit-tracker</artifactId>
|
<artifactId>credit-tracker</artifactId>
|
||||||
<version>2.21.2</version>
|
<version>2.21.1</version>
|
||||||
<name>credit_tracker</name>
|
<name>credit_tracker</name>
|
||||||
<description>Credit Tracker Application</description>
|
<description>Credit Tracker Application</description>
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
<registry.url>10.230.238.56:5000</registry.url>
|
<registry.url>10.230.238.56:5000</registry.url>
|
||||||
<jar.main.name>main</jar.main.name>
|
<jar.main.name>main</jar.main.name>
|
||||||
<jar.monitoring.name>monitoring</jar.monitoring.name>
|
<jar.monitoring.name>monitoring</jar.monitoring.name>
|
||||||
<!-- <registry.url>rh8-vm3.nbki.msk:5000</registry.url>-->
|
<!-- <registry.url>rh8-vm3.nbki.msk:5000</registry.url>-->
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,11 @@ public class FidNameEnricher implements Handler<SubjectPayload, SubjectPayload>
|
||||||
}
|
}
|
||||||
|
|
||||||
private void fillByCache(SubjectProfile subjectProfile, PhonesMap cachedRecord) {
|
private void fillByCache(SubjectProfile subjectProfile, PhonesMap cachedRecord) {
|
||||||
|
if (cachedRecord.getName1() == null || cachedRecord.getFirst() == null ||
|
||||||
|
cachedRecord.getMiddle() == null || cachedRecord.getBirthDt() == null) {
|
||||||
|
log.warn("By phone : {} found empty cache rec with id: {}", subjectProfile.getPhone(), cachedRecord.getId());
|
||||||
|
return;
|
||||||
|
}
|
||||||
NameData nameData = NameData.builder()
|
NameData nameData = NameData.builder()
|
||||||
.middleName(cachedRecord.getMiddle())
|
.middleName(cachedRecord.getMiddle())
|
||||||
.firstName(cachedRecord.getFirst())
|
.firstName(cachedRecord.getFirst())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue