45 changed files with 274 additions and 134 deletions
@ -0,0 +1 @@
|
||||
mvn install:install-file -DgroupId=com.aspose -DartifactId=aspose-words -Dversion=15.8.0 -Dfile="words-15.8.0.jar" -Dpackaging=jar |
||||
Binary file not shown.
@ -1,4 +1,5 @@
|
||||
com.biutag.exception.GlobalException |
||||
cn.hutool.extra.spring.SpringUtil |
||||
com.biutag.config.MinioProperties |
||||
com.biutag.config.Minio |
||||
com.biutag.config.Minio |
||||
com.biutag.validator.PhoneValidator |
||||
@ -0,0 +1,32 @@
|
||||
package com.biutag.lan; |
||||
|
||||
import com.aspose.words.Document; |
||||
import com.aspose.words.License; |
||||
import com.biutag.entity.server.Sys; |
||||
import org.junit.jupiter.api.Test; |
||||
|
||||
import java.io.FileInputStream; |
||||
import java.io.InputStream; |
||||
|
||||
public class WordsTests { |
||||
|
||||
@Test |
||||
public void testCover() throws Exception { |
||||
getLicense(); |
||||
long l = System.currentTimeMillis(); |
||||
Document doc = new Document("D:\\deploy\\《处理反馈表》.doc"); |
||||
doc.save("D:\\deploy\\《处理反馈表》.docx"); |
||||
System.out.println(System.currentTimeMillis() - l); |
||||
} |
||||
|
||||
public static boolean getLicense() { |
||||
try (InputStream is = new FileInputStream("D:\\deploy\\license.xml")){ |
||||
License aposeLic = new License(); |
||||
aposeLic.setLicense(is); |
||||
return true; |
||||
} catch (Exception e) { |
||||
e.printStackTrace(); |
||||
} |
||||
return false; |
||||
} |
||||
} |
||||
@ -0,0 +1,17 @@
|
||||
package com.biutag.outer.enums; |
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Getter; |
||||
|
||||
@Getter |
||||
@AllArgsConstructor |
||||
public enum MailStateEnum { |
||||
processing("processing", "办理中"), |
||||
terminated("terminated", "已终止"), |
||||
completion("completion", "已办结"); |
||||
|
||||
private String value; |
||||
|
||||
private String name; |
||||
|
||||
} |
||||
Loading…
Reference in new issue