|
@@ -474,7 +474,7 @@ public class PersonService {
|
|
String saveFileName = DateUtils.getCurrYyyyMMddHHmmssDate() + "_" + UUID.randomUUID().toString() + fileName.substring(fileName.lastIndexOf("."), fileName.length());
|
|
String saveFileName = DateUtils.getCurrYyyyMMddHHmmssDate() + "_" + UUID.randomUUID().toString() + fileName.substring(fileName.lastIndexOf("."), fileName.length());
|
|
String uploadDir = idenRoot + "data/final/person/image/" + idenCommunity.getCode() + "/";
|
|
String uploadDir = idenRoot + "data/final/person/image/" + idenCommunity.getCode() + "/";
|
|
File uploadDirFile = new File(uploadDir);
|
|
File uploadDirFile = new File(uploadDir);
|
|
- if (uploadDirFile.exists()){
|
|
|
|
|
|
+ if (!uploadDirFile.exists()){
|
|
uploadDirFile.mkdirs();
|
|
uploadDirFile.mkdirs();
|
|
}
|
|
}
|
|
FileOutputStream fos = new FileOutputStream(uploadDir + saveFileName);
|
|
FileOutputStream fos = new FileOutputStream(uploadDir + saveFileName);
|