|
|
@@ -219,7 +219,7 @@ public class adminManagerAction extends ActionSupport implements ServletRequestA
|
|
|
int lastSlashIndex = file.getUrl().lastIndexOf("/");
|
|
|
if(lastSlashIndex >= 0){
|
|
|
String result = file.getUrl().substring(lastSlashIndex + 1);
|
|
|
- file.setName(result);
|
|
|
+ file.setName(result+"_营业执照");
|
|
|
}
|
|
|
fileService.insertFile(file);
|
|
|
}
|
|
|
@@ -316,6 +316,11 @@ public class adminManagerAction extends ActionSupport implements ServletRequestA
|
|
|
for(FileInfo file : fileInfoList){
|
|
|
FileInfo fileInfo = fileService.getById(file.getId());
|
|
|
file.setLinkId(String.valueOf(admin.getId()));
|
|
|
+ int lastSlashIndex = file.getUrl().lastIndexOf("/");
|
|
|
+ if(lastSlashIndex >= 0){
|
|
|
+ String result = file.getUrl().substring(lastSlashIndex + 1);
|
|
|
+ file.setName(result+"_营业执照");
|
|
|
+ }
|
|
|
if(fileInfo==null){
|
|
|
fileService.insertFile(file);
|
|
|
}else{
|