http://jira.mfd.msk:8088/browse/BKI-3197 Swap pd attribut value with current date

This commit is contained in:
Mikhail Trofimov 2025-09-09 11:10:00 +03:00
parent b8848f1c36
commit 53f36a47b0

View file

@ -60,7 +60,7 @@ public class PersonFactoryBuilder {
person.setD(DATE_FORMAT.format(CTUtil.localDatetoDate(nameData.getBirthDate()))); person.setD(DATE_FORMAT.format(CTUtil.localDatetoDate(nameData.getBirthDate())));
person.setPn(getPn(passportData.getSerNum(), passportData.getIdNum())); person.setPn(getPn(passportData.getSerNum(), passportData.getIdNum()));
person.setPd(passportData.getIssDate() != null ? DATE_FORMAT.format(CTUtil.localDatetoDate(passportData.getIssDate())) : DEFAULT_DATE); person.setPd(DATE_FORMAT.format(CTUtil.localDatetoDate(LocalDate.now()))); // Do not use passport iss_date. Signal service could reject the package
person.setDt(getDt(passportData.getIdType(), passportData.getIdType2())); person.setDt(getDt(passportData.getIdType(), passportData.getIdType2()));
if (person.getDt() != null && person.getDt().equals("999")) { if (person.getDt() != null && person.getDt().equals("999")) {
person.setOdt(ODT); person.setOdt(ODT);