|
@@ -55,13 +55,10 @@ public class GetPatentPictureFromWebService {
|
|
|
for (int i=0;i<pictureUrls.size();i++){
|
|
|
String pictureUrl =pictureUrls.get(i);
|
|
|
File file = FileUtils.getPictureFileByUrl(pictureUrl);
|
|
|
- String guid = FormatUtil.getPictureFormat(uploadPatentWebDTO.getStarPatentVO().getApplicationNo())+i;
|
|
|
+ String guid = FormatUtil.getPictureFormat(patent.getAppNo())+i;
|
|
|
fileManagerService.uploadFileWithGuid(file, guid);
|
|
|
- PatentVector patentVectorOrg = esService.getVectorByIndex(patent.getAppNo(), i);
|
|
|
- if (patentVectorOrg != null) {
|
|
|
- return;
|
|
|
- }
|
|
|
this.addPatentVector(uploadPatentWebDTO, file, i);
|
|
|
+ org.apache.commons.io.FileUtils.deleteQuietly(file);
|
|
|
}
|
|
|
|
|
|
}
|