任务拉取修改

version1
admin 2 years ago
parent 5856493049
commit 7de9d27d9c

@ -98,7 +98,7 @@ public class IdcServiceImpl implements IdcService {
@Override @Override
public BaseResponse taskList(HttpServletRequest request,Map<String,Object> params) { public BaseResponse taskList(HttpServletRequest request,Map<String,Object> params) {
Map<String,Object> map = new HashMap<String,Object>(); Map<String,Object> map = new HashMap<String,Object>();
map.put("sql", "select id from basic_export_status where status='0'"); map.put("sql", "select id as taskId from basic_export_status where receiveStatus='0'");
List<Map<String,Object>> list = dbDao.list(map); List<Map<String,Object>> list = dbDao.list(map);
return ResultVOUtils.success(list); return ResultVOUtils.success(list);
} }
@ -288,7 +288,7 @@ public class IdcServiceImpl implements IdcService {
public BaseResponse downlaodSuccess(HttpServletRequest request,Map<String,Object> params) { public BaseResponse downlaodSuccess(HttpServletRequest request,Map<String,Object> params) {
String sql = "update basic_export_status set status='1' where id='"+params.get("taskId")+"'"; String sql = "update basic_export_status set receiveStatus='1' where id='"+params.get("taskId")+"'";
dbDao.update(sql); dbDao.update(sql);
return ResultVOUtils.success(); return ResultVOUtils.success();
} }
@ -382,7 +382,8 @@ public class IdcServiceImpl implements IdcService {
private void saveExportStatus(Map<String,Object> params) { private void saveExportStatus(Map<String,Object> params) {
Map<String,Object> map = new HashMap<String,Object>(); Map<String,Object> map = new HashMap<String,Object>();
map.put("status", "0"); map.put("status", "1");
map.put("receiveStatus", "0");
map.putAll(params); map.putAll(params);
map.put("id", CustomUtil.getId()); map.put("id", CustomUtil.getId());
map.put("updateTime", new Date()); map.put("updateTime", new Date());

Loading…
Cancel
Save