registry-service поправил лог
This commit is contained in:
parent
26ce847f37
commit
b6f371dfc9
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
package ru.spcex.clearing.registry.reports.loaders;
|
package ru.spcex.clearing.registry.reports.loaders;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||||
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
|
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
|
||||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
@ -28,6 +29,7 @@ public class MoneyBalanceLoader extends RegistryHistoryLoader {
|
||||||
parameterSource, new CompanyRowMapper()
|
parameterSource, new CompanyRowMapper()
|
||||||
);
|
);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error("SQL error: {}", ExceptionUtils.getStackTrace(e));
|
||||||
throw new ConfigurationException("Не могу получить объект companyId = 2 из БД");
|
throw new ConfigurationException("Не могу получить объект companyId = 2 из БД");
|
||||||
}
|
}
|
||||||
if (!result.isEmpty()) houseName = result.iterator().next().getShortName();
|
if (!result.isEmpty()) houseName = result.iterator().next().getShortName();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue