clearing-service поправил приоритет нотификаций при сверке: HIGH если не сошлось, LOW если ок
This commit is contained in:
parent
8004353f37
commit
55fa772b52
1 changed files with 1 additions and 2 deletions
|
|
@ -168,7 +168,6 @@ public class Sdf01Executor extends AbstractExecutor<SDf01> {
|
||||||
rgs.getDiffBalance());
|
rgs.getDiffBalance());
|
||||||
reviseFailed = true;
|
reviseFailed = true;
|
||||||
}
|
}
|
||||||
//2. отправить notification на backend
|
|
||||||
stmt.setOperationStatus(OperationStatus.Executed.getKey());
|
stmt.setOperationStatus(OperationStatus.Executed.getKey());
|
||||||
statementImdg.update(stmt);
|
statementImdg.update(stmt);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -181,7 +180,7 @@ public class Sdf01Executor extends AbstractExecutor<SDf01> {
|
||||||
NotificationNewRequest reviseNotification = new NotificationNewRequest();
|
NotificationNewRequest reviseNotification = new NotificationNewRequest();
|
||||||
reviseNotification.setObjectType(ObjectType.rgst.getKey());
|
reviseNotification.setObjectType(ObjectType.rgst.getKey());
|
||||||
reviseNotification.setComment(reviseFailed ? reviseFailedMessage : reviseSuccessMessage);
|
reviseNotification.setComment(reviseFailed ? reviseFailedMessage : reviseSuccessMessage);
|
||||||
reviseNotification.setPriority(Priority.HIGH.getKey());
|
reviseNotification.setPriority(reviseFailed ? Priority.HIGH.getKey() : Priority.LOW.getKey());
|
||||||
kafkaSender.sendRequestToQueue(Consts.NOTIFICATION_NEW, reviseNotification);
|
kafkaSender.sendRequestToQueue(Consts.NOTIFICATION_NEW, reviseNotification);
|
||||||
log.info("revise notification sent (revise {})", reviseFailed ? "error" : "success");
|
log.info("revise notification sent (revise {})", reviseFailed ? "error" : "success");
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue