|
@@ -701,7 +701,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
|
.bind("vehicleList", policy).bind("equityList", policy)
|
|
|
.bind("otherList", policy).build();
|
|
|
XWPFTemplate template = XWPFTemplate.compile(absolutePath, config).render(propertyMap);
|
|
|
- String path = FileUtil.getAbsolutePath("财产清单(公司)" + guarantorName, ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
+ String path = FileUtil.getAbsolutePath("财产清单(公司)" + guarantorName + UUID.randomUUID(), ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
File estateFile = new File(path);
|
|
|
if (!estateFile.exists()) {
|
|
|
FileUtils.createParentDirectories(estateFile);
|
|
@@ -878,9 +878,9 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL));
|
|
|
String path = null;
|
|
|
if (type.equals(ConstantConversionUtil.IDENTITY_TYPE1)) {
|
|
|
- path = FileUtil.getAbsolutePath("动产抵押合同(个人)" + mortgagorName, ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
+ path = FileUtil.getAbsolutePath("动产抵押合同(个人)" + mortgagorName + UUID.randomUUID(), ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
} else if (type.equals(ConstantConversionUtil.IDENTITY_TYPE2)) {
|
|
|
- path = FileUtil.getAbsolutePath("动产抵押合同(公司)" + mortgagorName, ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
+ path = FileUtil.getAbsolutePath("动产抵押合同(公司)" + mortgagorName + UUID.randomUUID(), ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
}
|
|
|
XWPFTemplate template = XWPFTemplate.compile(absolutePath, config).render(map);
|
|
|
File file = new File(path);
|
|
@@ -997,9 +997,9 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
|
map.put("financingAmountCname", financingAmountCname);
|
|
|
String path = null;
|
|
|
if (type.equals(ConstantConversionUtil.IDENTITY_TYPE1)) {
|
|
|
- path = FileUtil.getAbsolutePath("股权质押合同(个人)" + mortgageBasicInfo.getMortgagorName(), ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
+ path = FileUtil.getAbsolutePath("股权质押合同(个人)" + mortgageBasicInfo.getMortgagorName() + UUID.randomUUID(), ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
} else if (type.equals(ConstantConversionUtil.IDENTITY_TYPE2)) {
|
|
|
- path = FileUtil.getAbsolutePath("股权质押合同(公司)" + mortgageBasicInfo.getMortgagorName(), ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
+ path = FileUtil.getAbsolutePath("股权质押合同(公司)" + mortgageBasicInfo.getMortgagorName() + UUID.randomUUID(), ".docx", FileModuleDict.ChildEnum.CONTRACT_FILE_PREVIEW);
|
|
|
}
|
|
|
File file = new File(path);
|
|
|
if (!file.exists()) {
|