| | |
| | | */ |
| | | package com.vci.ubcs.report.config; |
| | | |
| | | import com.vci.ubcs.core.report.datasource.ReportDataSource; |
| | | //import org.springblade.core.report.datasource.ReportDataSource; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | |
| | | @ConditionalOnProperty(value = "report.enabled", havingValue = "true", matchIfMissing = true) |
| | | public class BladeReportConfiguration { |
| | | |
| | | /** |
| | | * 自定义报表可选数据源 |
| | | */ |
| | | @Bean |
| | | public ReportDataSource reportDataSource(DataSource dataSource) { |
| | | return new ReportDataSource(dataSource); |
| | | } |
| | | // /** |
| | | // * 自定义报表可选数据源 |
| | | // */ |
| | | // @Bean |
| | | // public ReportDataSource reportDataSource(DataSource dataSource) { |
| | | // return new ReportDataSource(dataSource); |
| | | // } |
| | | |
| | | } |