任务拉取修改为basic_export_status

version1
admin 2 years ago
parent d86b90b684
commit 07eee3a080

@ -98,14 +98,14 @@ public class IdcServiceImpl implements IdcService {
@Override
public BaseResponse taskList(HttpServletRequest request,Map<String,Object> params) {
Map<String,Object> map = new HashMap<String,Object>();
map.put("sql", "select taskId from basic_upload_status where status='0'");
map.put("sql", "select id from basic_export_status where status='0'");
List<Map<String,Object>> list = dbDao.list(map);
return ResultVOUtils.success(list);
}
@Override
public BaseResponse download(HttpServletRequest request,Map<String,Object> params) {
Map<String,Object> map = dbDao.get("select * from basic_upload_status where taskId='"+params.get("taskId")+"'");
Map<String,Object> map = dbDao.get("select * from basic_export_status where id='"+params.get("taskId")+"'");
if(map==null)
ResultVOUtils.error(9000, "下载任务不存在");
String json = FileUtils.readFileAll(map.get("cacheFilePath").toString());

Loading…
Cancel
Save