|
|
@@ -54,8 +54,7 @@ public class ColumnScreenService {
|
|
|
data = showChartsMapper.getScreenData(columnScreenInfo.getColumnName(), tableName, columnScreenInfo.getKeyword(), columnScreenInfo.getCount());
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
- logger.error("异常");
|
|
|
- return new RepEntity(RepCode.erro);
|
|
|
+ return new RepEntity(RepCode.erro.getCode(), e.getCause().getMessage(), null);
|
|
|
}finally {
|
|
|
DynamicDataSourceContextHolder.clearDataSourceType();
|
|
|
}
|
|
|
@@ -91,8 +90,7 @@ public class ColumnScreenService {
|
|
|
data = showChartsMapper.getScreenData(columnScreenInfo.getColumnName(), tableName, columnScreenInfo.getKeyword(), columnScreenInfo.getCount());
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
- logger.error("异常");
|
|
|
- return new RepEntity(RepCode.erro);
|
|
|
+ return new RepEntity(RepCode.erro.getCode(), e.getCause().getMessage(), null);
|
|
|
}finally {
|
|
|
DynamicDataSourceContextHolder.clearDataSourceType();
|
|
|
}
|