clearing-service sdf08 обработка автосоздания счетов. Оказалось что DEPO ужно делать (част 1/2)
This commit is contained in:
parent
ad09a31171
commit
872b66984d
2 changed files with 7 additions and 7 deletions
|
|
@ -147,7 +147,11 @@ public class StatementService extends QueueConsumer implements InitializingBean
|
|||
AbstractExecutor service = executorsMap.get(SdfTable.SDF_08);
|
||||
if (service != null) {
|
||||
Result res = service.execute(sdfGroup, statementRequest);
|
||||
finishSendCommand(res, service, statementRequest);
|
||||
if (res.getAccountRequests().size() != 0) {
|
||||
kafkaSender.sendRequestToQueue(Consts.ACCOUNT_NEW_SDF08, createAccountsRequest(statementRequest.getGroupId(), res.getAccountRequests()));
|
||||
} else if (service.isNeedToSendCommand()) {
|
||||
service.sendCommand(kafkaSender, res);
|
||||
}
|
||||
} else {
|
||||
log.warn("Executor for SDF_08 not set");
|
||||
}
|
||||
|
|
@ -177,12 +181,7 @@ public class StatementService extends QueueConsumer implements InitializingBean
|
|||
.collect(Collectors.toList());
|
||||
}
|
||||
AbstractExecutor service = executorsMap.get(SdfTable.SDF_01);
|
||||
Result res = service.execute(sdfGroup, statementRequest);
|
||||
finishSendCommand(res, service, statementRequest);
|
||||
}
|
||||
|
||||
void finishSendCommand(Result res, AbstractExecutor service, StatementRequest statementRequest) {
|
||||
if (res.getAccountRequests().size() != 0) {
|
||||
Result res = service.execute(sdfGroup, statementRequest); if (res.getAccountRequests().size() != 0) {
|
||||
kafkaSender.sendRequestToQueue(Consts.ACCOUNT_NEW_SDF01, createAccountsRequest(statementRequest.getGroupId(), res.getAccountRequests()));
|
||||
} else if (service.isNeedToSendCommand()) {
|
||||
service.sendCommand(kafkaSender, res);
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ public interface Consts {
|
|||
String CREATE_REPORT_FOR_REGISTRY = "create-report-for-registry";
|
||||
|
||||
String ACCOUNT_NEW_SDF01 = "account-new-sdf01";
|
||||
String ACCOUNT_NEW_SDF08 = "account-new-sdf08";
|
||||
|
||||
String DESTINATION_RELATION_NEW = "relation-new";
|
||||
String DESTINATION_RELATION_UPDATE = "relation-update";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue