|
|
@@ -54,6 +54,9 @@ public class ColumnScreenService {
|
|
|
data = showChartsMapper.getScreenData(columnScreenInfo.getColumnName(), tableName, columnScreenInfo.getKeyword(), columnScreenInfo.getCount());
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
+ if (e.getCause().getMessage().contains("ORA-00904:")) {
|
|
|
+ return new RepEntity(RepCode.erro.getCode(), "数据源" + e.getCause().getMessage().replace("ORA-00904:", "").replaceAll("标识符", "列"), null);
|
|
|
+ }
|
|
|
return new RepEntity(RepCode.erro.getCode(), e.getCause().getMessage(), null);
|
|
|
}finally {
|
|
|
DynamicDataSourceContextHolder.clearDataSourceType();
|
|
|
@@ -90,6 +93,9 @@ public class ColumnScreenService {
|
|
|
data = showChartsMapper.getScreenData(columnScreenInfo.getColumnName(), tableName, columnScreenInfo.getKeyword(), columnScreenInfo.getCount());
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
+ if (e.getCause().getMessage().contains("ORA-00904:")) {
|
|
|
+ return new RepEntity(RepCode.erro.getCode(), "数据源" + e.getCause().getMessage().replace("ORA-00904:", "").replaceAll("标识符", "列"), null);
|
|
|
+ }
|
|
|
return new RepEntity(RepCode.erro.getCode(), e.getCause().getMessage(), null);
|
|
|
}finally {
|
|
|
DynamicDataSourceContextHolder.clearDataSourceType();
|