update
This commit is contained in:
parent
f1eaea8fe0
commit
6cf13d7c03
5
pom.xml
5
pom.xml
|
@ -261,6 +261,11 @@
|
||||||
<version>6.1.0</version>
|
<version>6.1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>e-iceblue</groupId>
|
||||||
|
<artifactId>spire.doc.free</artifactId>
|
||||||
|
<version>5.2.0</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -143,17 +143,15 @@ public class RecruitmentServiceImpl extends BaseService<RecruitmentMapper, Recru
|
||||||
if (StrUtil.isBlank(id)) {
|
if (StrUtil.isBlank(id)) {
|
||||||
throw new ResultException("id不能为空!");
|
throw new ResultException("id不能为空!");
|
||||||
}
|
}
|
||||||
File uploadFile = new File(filepath);
|
|
||||||
String wordDir = "";
|
String wordDir = "";
|
||||||
if (!uploadFile.exists()) {
|
|
||||||
uploadFile.mkdirs();
|
|
||||||
}
|
|
||||||
if (!filepath.endsWith("/")) {
|
if (!filepath.endsWith("/")) {
|
||||||
wordDir = filepath + "/upload/word";
|
wordDir = "/upload/word";
|
||||||
}
|
}
|
||||||
File tf = null;
|
File tf = null;
|
||||||
try {
|
try {
|
||||||
tf = new File(URLDecoder.decode(Objects.requireNonNull(Thread.currentThread().getContextClassLoader().getResource("doc/象山县国有企业人员招聘报备表.docx")).getPath(), "UTF-8"));
|
// 获取模板路径
|
||||||
|
tf = new File(URLDecoder.decode(Objects.requireNonNull(
|
||||||
|
Thread.currentThread().getContextClassLoader().getResource("doc/象山县国有企业人员招聘报备表.docx")).getPath(), "UTF-8"));
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue