version1
chengqf 2 years ago
parent 5ceae5b746
commit 467b46ce27

@ -114,13 +114,15 @@ public class IdcServiceImpl implements IdcService {
@Override
public BaseResponse download(HttpServletRequest request,Map<String,Object> params) {
String id="";
String tableName = params.get("scheduleType")!=null&&params.get("scheduleType").equals("3") ? "basic_export_status" : "basic_export_status";
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+"'");
Map<String,Object> map = map = dbDao.get("select * from "+tableName+" where id='"+id+"'");
if(map==null)
return ResultVOUtils.error(9000, "下载任务不存在");

Loading…
Cancel
Save