gaoluyang
2026-10-16 a4a360b6ea88c6c1c8bc3f7098ee7e25a6a101c1
yudao-module-bi/src/main/java/cn/iocoder/yudao/module/bi/service/config/BiChartConfigServiceImpl.java
@@ -44,7 +44,7 @@
    private BiDashboardMapper dashboardMapper;
    @Resource
    private BiDataSourceConfigMapper dataSourceConfigMapper;
    private BiDataSourceConfigMapper biDataSourceConfigMapper;
    @Override
    public Long create(BiChartConfigDO config) {
@@ -103,7 +103,7 @@
                }
                // 2.2 解析数据源
                BiDataSourceConfigDO dataSource = StrUtil.isBlank(item.getDataSourceName()) ? null
                        : dataSourceConfigMapper.selectByName(item.getDataSourceName());
                        : biDataSourceConfigMapper.selectByName(item.getDataSourceName());
                if (dataSource == null) {
                    throw exception(ErrorCodeConstants.BI_CHART_CONFIG_IMPORT_DATA_SOURCE_NOT_EXISTS, item.getDataSourceName());
                }