version1
admin 2 years ago
parent c8b3b5b4c5
commit 0f4b195fc2

@ -113,7 +113,13 @@ public class IdcServiceImpl implements IdcService {
@Override
public BaseResponse download(HttpServletRequest request,Map<String,Object> params) {
Map<String,Object> map = dbDao.get("select * from basic_export_status where id='"+params.get("taskId")+"'");
String id="";
if(params.containsKey("taskId")&&params.get("taskId")!=null) {
id = params.get("taskId").toString();
} else {
id = params.get("id").toString();
}
Map<String,Object> map = dbDao.get("select * from basic_export_status where id='"+id+"'");
if(map==null)
ResultVOUtils.error(9000, "下载任务不存在");
if(!FileUtils.isFileExist(map.get("cacheFilePath").toString()))

Loading…
Cancel
Save