update 81707 车型项目库导出
This commit is contained in:
+13
-1
@@ -224,11 +224,23 @@ public class LawsSpecialProjectLibraryServiceImpl extends ServiceImpl<LawsSpecia
|
||||
//导出描述依据和佐证材料
|
||||
if (!termUserList.isEmpty()) {
|
||||
//标准编号+条款号的文件夹
|
||||
String termUserUrl = url + File.separator + standardNumber + (StringUtils.isBlank(termNumber)?"":termNumber) ;
|
||||
String termUserUrl = url + File.separator + standardNumber.replaceAll("[/\\\\:*?|\"<>]", "") + File.separator + (StringUtils.isBlank(termNumber)?"":termNumber) ;
|
||||
File termUserFile = new File(termUserUrl);
|
||||
if (!termUserFile.exists()){
|
||||
boolean mkdirs = termUserFile.mkdirs();
|
||||
log.info("创建临时子目录:{}", mkdirs);
|
||||
}else {
|
||||
int i = 1;
|
||||
while (true){
|
||||
String newFileUrl = (termUserUrl.endsWith(File.separator) ? termUserUrl.substring(0, termUserUrl.length() - 1) : termUserUrl) + " (" + i + ")";
|
||||
termUserFile = new File(newFileUrl);
|
||||
if (!termUserFile.exists()){
|
||||
boolean mkdirs = termUserFile.mkdirs();
|
||||
log.info("创建临时子目录:{}", mkdirs);
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
//佐证材料
|
||||
for (ProcessProjectStandardTermUser standardTermUser : termUserList) {
|
||||
|
||||
Reference in New Issue
Block a user