sdf54#specif_1 = pmt#paymentPurpose + bankAccount#destination
This commit is contained in:
parent
c35ac0d44c
commit
234bc7e8b6
1 changed files with 9 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ import ru.spcex.platform.imdg.api.predicate.ImdgPredicateBuilder;
|
||||||
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||||
import ru.spcex.platform.utils.localization.SpringPropertiesLocalizer;
|
import ru.spcex.platform.utils.localization.SpringPropertiesLocalizer;
|
||||||
import ru.spcex.platform.utils.number.BigDecimalUtil;
|
import ru.spcex.platform.utils.number.BigDecimalUtil;
|
||||||
|
import ru.spcex.platform.utils.text.TextUtil;
|
||||||
import ru.spcex.platform.utils.time.TimeUtil;
|
import ru.spcex.platform.utils.time.TimeUtil;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
|
|
@ -209,7 +210,14 @@ public class Sdf54Creator {
|
||||||
sDf54.setPay_val(pmt.getCreditLeg_currencyCode());
|
sDf54.setPay_val(pmt.getCreditLeg_currencyCode());
|
||||||
String sumDeb = pmt.getDebitLeg_amount() != null ? pmt.getDebitLeg_amount().toString() : "";
|
String sumDeb = pmt.getDebitLeg_amount() != null ? pmt.getDebitLeg_amount().toString() : "";
|
||||||
sDf54.setSum_deb(BigDecimalUtil.limitDecimalPlaces(sumDeb, 2));
|
sDf54.setSum_deb(BigDecimalUtil.limitDecimalPlaces(sumDeb, 2));
|
||||||
sDf54.setSpecif_1(pmt.getPaymentPurpose());
|
|
||||||
|
String specif_1;
|
||||||
|
if (bnkAcc != null && !TextUtil.isEmpty(bnkAcc.getDestination())) {
|
||||||
|
specif_1 = pmt.getPaymentPurpose() + " " + bnkAcc.getDestination();
|
||||||
|
} else {
|
||||||
|
specif_1 = pmt.getPaymentPurpose();
|
||||||
|
}
|
||||||
|
sDf54.setSpecif_1(specif_1);
|
||||||
sDf54.setGenerationTime(now);
|
sDf54.setGenerationTime(now);
|
||||||
log.debug("paymentInstruction.id={}, sdf54.id {}", pmt.getId(), sDf54.getId());
|
log.debug("paymentInstruction.id={}, sdf54.id {}", pmt.getId(), sDf54.getId());
|
||||||
return sDf54;
|
return sDf54;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue