This commit is contained in:
parent
8aad63da12
commit
5ad2b3eb76
2 changed files with 11 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ import ru.spcex.platform.imdg.api.ImdgId;
|
|||
import ru.spcex.platform.imdg.api.ImdgProvider;
|
||||
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||
import ru.spcex.platform.utils.number.BigDecimalUtil;
|
||||
import ru.spcex.platform.utils.text.UuidUtil;
|
||||
import ru.spcex.platform.utils.time.TimeUtil;
|
||||
|
||||
@Component
|
||||
|
|
@ -109,6 +110,7 @@ public class Sdf03Creator {
|
|||
sDf03.setSpecif_1(paymentInstruction.getPaymentPurpose());
|
||||
sDf03.setGenerationTime(Instant.now());
|
||||
sDf03.setPaymentInstructionId(paymentInstruction.getId());
|
||||
sDf03.setMessageId(UuidUtil.withoutHyphens());
|
||||
log.debug("paymentInstruction.id={}, sdf03.id {}", paymentInstruction.getId(), sDf03.getId());
|
||||
return sDf03;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
package ru.spcex.platform.utils.text;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class UuidUtil {
|
||||
public static String withoutHyphens() {
|
||||
return String.valueOf(UUID.randomUUID()).replaceAll("-", "");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue