poi、easyexcel、poi-tl升级 ,合并空调中的报表、数据源模块
| | |
| | | <version>3.7.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>cn.afterturn</groupId> |
| | | <artifactId>easypoi-base</artifactId> |
| | | <version>4.1.3</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>cn.afterturn</groupId> |
| | | <artifactId>easypoi-annotation</artifactId> |
| | | <version>4.1.3</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.pdfbox</groupId> |
| | | <artifactId>pdfbox</artifactId> |
| | | <version>2.0.6</version> |
| | |
| | | String viewOnlineSign = attachmentFse.getString(CmnConst.VIEW_ONLINE_SIGN); |
| | | boolean encrptSignFlag = "1".equals(attachmentFse.getString(CmnConst.ENCRPT_SIGN)); |
| | | boolean needOnlineViewFlag = "1".equals(fse.getString(CmnConst.NEED_ONLINE_VIEW)) && "1".equals(viewOnlineSign); |
| | | if (needOnlineViewFlag) { |
| | | // 需要在线预览且转换之后才能在线预览 |
| | | if (needOnlineViewFlag && !realFileName.endsWith(".xlsx") && !realFileName.endsWith(".xls")) { |
| | | // 需要在线预览且转换之后才能在线预览 excel 文件不需要转换直接输出预览 |
| | | dir += File.separator + CmnConst.TRANSFER_DIR_NAME; |
| | | } |
| | | |
| | |
| | | * @Description: 测试 |
| | | */ |
| | | public class FileManagerTest extends HttpTest { |
| | | /*@Test |
| | | @Test |
| | | public void testDownLoadFiles() throws InterruptedException { |
| | | Map<String, Object> m = Maps.newHashMap(); |
| | | m.put("url/api", "/api/fileManager/download-file-zip/v1"); |
| | |
| | | HttpTest.testFileDownload(m); |
| | | |
| | | Thread.sleep(1000 * 10); |
| | | }*/ |
| | | } |
| | | |
| | | /*@Test |
| | | public void testDownLoadFile() throws InterruptedException { |