This commit is contained in:
parent
b9c90d7c28
commit
103a60f526
4 changed files with 12 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public class RatesValidationConfig {
|
|||
IMDGDistributedNames.Map_Rates,
|
||||
RiskParameter.class,
|
||||
SecuritiesError.RequiredFieldIsEmpty,
|
||||
SecuritiesError.RequiredFieldIsEmpty)
|
||||
SecuritiesError.RecordNotFound)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public class SCrossRatesValidationConfig {
|
|||
IMDGDistributedNames.Map_SCrossRate,
|
||||
SCrossRate.class,
|
||||
SecuritiesError.RequiredFieldIsEmpty,
|
||||
SecuritiesError.RequiredFieldIsEmpty)
|
||||
SecuritiesError.RecordNotFound)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ public enum SecuritiesError implements IErrorEnumId {
|
|||
RequiredFieldIsEmpty(1002L),
|
||||
DictionaryNotFound(1003L),
|
||||
WrongFieldValue(1004L),
|
||||
RecordNotFound(1006L),
|
||||
InstrumentAlreadyExists(1010L),
|
||||
InstrumentNotFound(1011L),
|
||||
InstrumentNotActive(1012L),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue