提交代码

dev_xd
姜玉琦 2024-12-18 22:38:05 +08:00
parent 4a80de3acc
commit 26a1acb114
1 changed files with 4 additions and 6 deletions

View File

@ -16,8 +16,6 @@ import com.yanzhu.manage.config.ProfileConfig;
import com.yanzhu.manage.domain.BasTemplate;
import com.yanzhu.manage.domain.ProProjectInfoSubdeptsUsers;
import com.yanzhu.manage.domain.SignetFileVo;
import com.yanzhu.manage.enums.BasTemTypes;
import com.yanzhu.manage.enums.CraftPostEnums;
import com.yanzhu.manage.enums.SignetKeyEnums;
import com.yanzhu.manage.mapper.BasTemplateMapper;
import com.yanzhu.manage.mapper.ProProjectInfoSubdeptsUsersMapper;
@ -224,18 +222,18 @@ public class ProProjectInfoSubdeptsUsersServiceImpl implements IProProjectInfoSu
if (temPath.indexOf(ProfileConfig.profile) > -1) {
temPath = temPath.replaceAll(ProfileConfig.profile, rootSavePath);
}
//文件名称
// 文件名称
String fileName = UUID.randomUUID() + ".pdf";
String filePath = DateUtils.datePath();
//生成的测试合同地址
// 生成的签署文件地址
String saveWordFilePath = rootSavePath + filePath + fileName;
String saveEdusFilePath = ProfileConfig.profile + filePath + fileName;
//生成文件夹
// 生成文件夹
File dirFile = FileUtils.getFile(rootSavePath + filePath);
if (!dirFile.exists()) {
dirFile.mkdirs();
}
//word文件转PDF文件
// word文件转PDF文件
Map<String, Object> dataMap = getUserDataMap(proSubdeptsUser);
try {
PoiUtil.createPdfByWordTemplate(temPath, saveWordFilePath, dataMap);