etreschenkov 2026-04-24 10:44:13 +03:00
parent b9c90d7c28
commit 103a60f526
4 changed files with 12 additions and 9 deletions

View file

@ -140,13 +140,15 @@ public class TaskListener extends QueueConsumer implements InitializingBean {
.filter(Objects::nonNull) .filter(Objects::nonNull)
.toList(); .toList();
String comment = "После проведения первой части сделок переноса будет получен отрицательный баланс по RUB:\n" if (!messages.isEmpty()) {
+ String.join("\n", messages); String comment = "После проведения первой части сделок переноса будет получен отрицательный баланс по RUB:\n"
NotificationNewRequest newReq = new NotificationNewRequest(); + String.join("\n", messages);
newReq.setObjectType(ObjectType.rgst.getKey()); NotificationNewRequest newReq = new NotificationNewRequest();
newReq.setPriority(Priority.HIGH.getKey()); newReq.setObjectType(ObjectType.rgst.getKey());
newReq.setComment(comment); newReq.setPriority(Priority.HIGH.getKey());
kafkaSender.sendRequestToQueue(Consts.NOTIFICATION_NEW, newReq); newReq.setComment(comment);
kafkaSender.sendRequestToQueue(Consts.NOTIFICATION_NEW, newReq);
}
log.info("SDOR export and send command to fix, request={}", req); log.info("SDOR export and send command to fix, request={}", req);
try { try {

View file

@ -51,7 +51,7 @@ public class RatesValidationConfig {
IMDGDistributedNames.Map_Rates, IMDGDistributedNames.Map_Rates,
RiskParameter.class, RiskParameter.class,
SecuritiesError.RequiredFieldIsEmpty, SecuritiesError.RequiredFieldIsEmpty,
SecuritiesError.RequiredFieldIsEmpty) SecuritiesError.RecordNotFound)
); );
}; };
} }

View file

@ -50,7 +50,7 @@ public class SCrossRatesValidationConfig {
IMDGDistributedNames.Map_SCrossRate, IMDGDistributedNames.Map_SCrossRate,
SCrossRate.class, SCrossRate.class,
SecuritiesError.RequiredFieldIsEmpty, SecuritiesError.RequiredFieldIsEmpty,
SecuritiesError.RequiredFieldIsEmpty) SecuritiesError.RecordNotFound)
); );
}; };
} }

View file

@ -8,6 +8,7 @@ public enum SecuritiesError implements IErrorEnumId {
RequiredFieldIsEmpty(1002L), RequiredFieldIsEmpty(1002L),
DictionaryNotFound(1003L), DictionaryNotFound(1003L),
WrongFieldValue(1004L), WrongFieldValue(1004L),
RecordNotFound(1006L),
InstrumentAlreadyExists(1010L), InstrumentAlreadyExists(1010L),
InstrumentNotFound(1011L), InstrumentNotFound(1011L),
InstrumentNotActive(1012L), InstrumentNotActive(1012L),