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)
.toList();
String comment = "После проведения первой части сделок переноса будет получен отрицательный баланс по RUB:\n"
+ String.join("\n", messages);
NotificationNewRequest newReq = new NotificationNewRequest();
newReq.setObjectType(ObjectType.rgst.getKey());
newReq.setPriority(Priority.HIGH.getKey());
newReq.setComment(comment);
kafkaSender.sendRequestToQueue(Consts.NOTIFICATION_NEW, newReq);
if (!messages.isEmpty()) {
String comment = "После проведения первой части сделок переноса будет получен отрицательный баланс по RUB:\n"
+ String.join("\n", messages);
NotificationNewRequest newReq = new NotificationNewRequest();
newReq.setObjectType(ObjectType.rgst.getKey());
newReq.setPriority(Priority.HIGH.getKey());
newReq.setComment(comment);
kafkaSender.sendRequestToQueue(Consts.NOTIFICATION_NEW, newReq);
}
log.info("SDOR export and send command to fix, request={}", req);
try {

View file

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

View file

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

View file

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