| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.bstek.ureport.provider.report.ReportFile; |
| | | import com.bstek.ureport.provider.report.ReportProvider; |
| | | //import com.bstek.ureport.provider.report.ReportFile; |
| | | //import com.bstek.ureport.provider.report.ReportProvider; |
| | | import java.io.ByteArrayInputStream; |
| | | import java.io.InputStream; |
| | | import java.lang.invoke.SerializedLambda; |
| | |
| | | import com.qianwen.core.report.service.IReportFileService; |
| | | import com.qianwen.core.tool.utils.DateUtil; |
| | | |
| | | /* loaded from: blade-starter-report-9.3.0.0-SNAPSHOT.jar:org/springblade/core/report/provider/DatabaseProvider.class */ |
| | | public class DatabaseProvider implements ReportProvider { |
| | | |
| | | public class DatabaseProvider {// implements ReportProvider |
| | | private final ReportDatabaseProperties properties; |
| | | private final IReportFileService service; |
| | | |
| | |
| | | public void deleteReport(String file) { |
| | | this.service.remove(Wrappers.<ReportFileEntity>lambdaUpdate().eq(ReportFileEntity::getName, getFileName(file))); |
| | | } |
| | | |
| | | /* |
| | | public List<ReportFile> getReportFiles() { |
| | | List<ReportFileEntity> list = this.service.list(); |
| | | List<ReportFile> reportFiles = new ArrayList<>(); |
| | | list.forEach(reportFileEntity -> reportFiles.add(new ReportFile(reportFileEntity.getName(), reportFileEntity.getUpdateTime()))); |
| | | return reportFiles; |
| | | } |
| | | }*/ |
| | | |
| | | public void saveReport(String file, String content) { |
| | | String fileName = getFileName(file); |