@@ -59,14 +59,19 @@ private static String convertDoubleToLocale(Double value, String language) {
5959 }
6060
6161 public List <String > toCsvRow (Map <String , String > translations , String language ) {
62+ // must be in-sync with security analysis columns definition in the Front (table "N")
6263 List <String > csvRow = new ArrayList <>();
63- csvRow .add (this .getLocationId ());
6464 csvRow .add (this .getLimitType () != null ? CsvExportUtils .translate (this .getLimitType ().name (), translations ) : "" );
65+ csvRow .add (this .getLocationId ()); // busId
6566 csvRow .add (CsvExportUtils .replaceNullWithEmptyString (CsvExportUtils .translate (this .getLimitName (), translations )));
66- csvRow .add (convertDoubleToLocale (this .getLimit (), language ));
67- csvRow .add (convertDoubleToLocale (this .getValue (), language ));
6867 csvRow .add (this .getLoading () == null ? "" : convertDoubleToLocale (this .getLoading (), language ));
68+ csvRow .add (this .getPatlLoading () == null ? "" : convertDoubleToLocale (this .getPatlLoading (), language ));
6969 csvRow .add (this .getAcceptableDuration () == Integer .MAX_VALUE ? null : Integer .toString (this .getAcceptableDuration ()));
70+ csvRow .add (this .getUpcomingAcceptableDuration () == null || this .getUpcomingAcceptableDuration () == Integer .MAX_VALUE ? null : Integer .toString (this .getUpcomingAcceptableDuration ()));
71+ csvRow .add (CsvExportUtils .replaceNullWithEmptyString (CsvExportUtils .translate (this .getNextLimitName (), translations )));
72+ csvRow .add (convertDoubleToLocale (this .getLimit (), language ));
73+ csvRow .add (this .getPatlLimit () == null ? "" : convertDoubleToLocale (this .getPatlLimit (), language ));
74+ csvRow .add (convertDoubleToLocale (this .getValue (), language ));
7075 csvRow .add (this .getSide () != null ? CsvExportUtils .translate (this .getSide ().name (), translations ) : "" );
7176 return csvRow ;
7277 }
0 commit comments