|
|
|
@ -203,9 +203,17 @@ public class EamObjectServiceImpl implements EamObjectService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void downLoadObjectFile(Integer id, HttpServletResponse response) throws UnsupportedEncodingException { |
|
|
|
public void downLoadObjectFile(Integer id,String orderRef3, HttpServletResponse response) throws UnsupportedEncodingException { |
|
|
|
//处理路径和名称 |
|
|
|
List<SysOssEntity> getFileData = eamObjectMapper.getFileData(id); |
|
|
|
if (orderRef3 == null){ |
|
|
|
orderRef3 = "9.9"; |
|
|
|
} |
|
|
|
List<SysOssEntity> getFileData; |
|
|
|
if (orderRef3.equals("-2")){ |
|
|
|
getFileData = eamObjectMapper.getSopFileData(id); |
|
|
|
} else { |
|
|
|
getFileData = eamObjectMapper.getFileData(id); |
|
|
|
} |
|
|
|
if (getFileData.isEmpty()) { |
|
|
|
throw new RuntimeException("该文件不存在,请刷新列表"); |
|
|
|
} |
|
|
|
|