fix building error: account.account was incorect for id < 100

This commit is contained in:
etreschenkov 2024-06-26 17:07:29 +03:00
parent 73f2ed8650
commit 64278d10d3

View file

@ -302,7 +302,7 @@ public class InformationAccountService extends QueueConsumer implements Initiali
} }
public String generateInfoAccount(Long currencyCodeId, Long id) { public String generateInfoAccount(Long currencyCodeId, Long id) {
return "%d%d%08d%d".formatted(39911, currencyCodeId, id, 7000); return "%d%03d%08d%d".formatted(39911, currencyCodeId, id, 7000);
} }
public synchronized Long accountNextId(String currency) { public synchronized Long accountNextId(String currency) {