|
|
|
@ -307,15 +307,18 @@ public class EamObjectServiceImpl implements EamObjectService { |
|
|
|
orderRef3 = "9.9"; |
|
|
|
} |
|
|
|
List<SysOssEntity> getFileData; |
|
|
|
String url = ""; |
|
|
|
if (orderRef3.equals("-2")){ |
|
|
|
getFileData = eamObjectMapper.getSopFileData(id); |
|
|
|
url = "G:" + getFileData.get(0).getUrl(); |
|
|
|
} else { |
|
|
|
getFileData = eamObjectMapper.getFileData(id); |
|
|
|
url = getFileData.get(0).getUrl(); |
|
|
|
} |
|
|
|
if (getFileData.isEmpty()) { |
|
|
|
throw new RuntimeException("该文件不存在,请刷新列表"); |
|
|
|
} |
|
|
|
File file = new File(getFileData.get(0).getUrl()); |
|
|
|
File file = new File(url); |
|
|
|
//读取缓存1kb |
|
|
|
byte[] buffer = new byte[1024]; |
|
|
|
FileInputStream fis = null; |
|
|
|
|