swt-exporter clearing-service DF11Exporter result OK убрал возможный !
This commit is contained in:
parent
82e2b08df1
commit
c4476c89a9
2 changed files with 2 additions and 6 deletions
|
|
@ -63,7 +63,7 @@ public class Sdf10Executor {
|
|||
private final TradingTimeService tradingTimeService;
|
||||
private final KafkaSender kafkaSender;
|
||||
|
||||
private final static String OK = "OK!";
|
||||
private final static String OK = "OK";
|
||||
private final static String SYNTAX_ERROR = "Синтаксическая ошибка (файл сформирован неверно)";
|
||||
private final static String GATEWAY_REJECTED = "Отрицательный ответ от Торговой Системы";
|
||||
private final static String NOT_FOUND_ACCOUNT = "Не найден код раздела субсчета/счета депо";
|
||||
|
|
|
|||
|
|
@ -57,11 +57,7 @@ public class DF11Exporter extends AbstractExporterService<SDf11> {
|
|||
stringBuilder.append(record.getQuantity()).append(':');
|
||||
stringBuilder.append(record.getSecurityCode()).append(':');
|
||||
stringBuilder.append(record.getClientName()).append(':');
|
||||
String result = record.getResult();
|
||||
if (result != null && result.endsWith("!")) { // OK! => OK
|
||||
result = result.substring(0, result.length() - 1);
|
||||
}
|
||||
stringBuilder.append(result).append(SWTHeaderData.LINE_SEPARATOR);
|
||||
stringBuilder.append(record.getResult()).append(SWTHeaderData.LINE_SEPARATOR);
|
||||
return stringBuilder.toString();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue