|
@@ -19,6 +19,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 文件管理外部调用接口Service层
|
|
* 文件管理外部调用接口Service层
|
|
@@ -197,9 +198,9 @@ public class FileMangerService {
|
|
// }
|
|
// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- Boolean isDelete =true;
|
|
|
|
|
|
+ Boolean isDelete = true;
|
|
|
|
|
|
- if(deleteIds.size()!=0) {
|
|
|
|
|
|
+ if (deleteIds.size() != 0) {
|
|
isDelete = systemFileService.removeByIds(deleteIds);
|
|
isDelete = systemFileService.removeByIds(deleteIds);
|
|
}
|
|
}
|
|
if (isDelete != true) {
|
|
if (isDelete != true) {
|
|
@@ -213,4 +214,15 @@ public class FileMangerService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ public List<String> getPatentPictureGuids(String appNo) {
|
|
|
|
+ String likeGuid = "%" + appNo + "_p" + "%";
|
|
|
|
+ LambdaQueryWrapper<SystemFile> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ queryWrapper.select(SystemFile::getGuid);
|
|
|
|
+ queryWrapper.like(SystemFile::getGuid, likeGuid);
|
|
|
|
+ List<SystemFile> systemFiles =systemFileService.list(queryWrapper);
|
|
|
|
+ List<String> guids =systemFiles.stream().map(SystemFile::getGuid).collect(Collectors.toList());
|
|
|
|
+ return guids;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|