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());
|
||||
reviseFailed = true;
|
||||
}
|
||||
//2. отправить notification на backend
|
||||
stmt.setOperationStatus(OperationStatus.Executed.getKey());
|
||||
statementImdg.update(stmt);
|
||||
} else {
|
||||
|
|
@ -181,7 +180,7 @@ public class Sdf01Executor extends AbstractExecutor<SDf01> {
|
|||
NotificationNewRequest reviseNotification = new NotificationNewRequest();
|
||||
reviseNotification.setObjectType(ObjectType.rgst.getKey());
|
||||
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);
|
||||
log.info("revise notification sent (revise {})", reviseFailed ? "error" : "success");
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue