文档库--下载和导入接口
This commit is contained in:
+7
-1
@@ -20,6 +20,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@@ -136,7 +137,12 @@ public class OSSFileServiceImpl extends ServiceImpl<OSSFileMapper, OSSFile> impl
|
||||
@Override
|
||||
public List<OSSFile> getFileInfosByConnectId(String connectId) {
|
||||
LambdaQueryWrapper<OSSFile> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(OSSFile::getConnectId,connectId);
|
||||
if(connectId.contains(",")){
|
||||
wrapper.eq(OSSFile::getConnectId, Arrays.asList(connectId.split(",")));
|
||||
}else{
|
||||
wrapper.eq(OSSFile::getConnectId,connectId);
|
||||
}
|
||||
|
||||
List<OSSFile> list = this.list(wrapper);
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user