任务拉取修改

master
admin 2 years ago
parent 4840b592a5
commit e1f23fbb7c

@ -98,7 +98,7 @@ 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 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);
return ResultVOUtils.success(list);
}
@ -113,7 +113,6 @@ public class IdcServiceImpl implements IdcService {
return ResultVOUtils.success(object);
}
/*UDI系统上传自助平台*/
@Override
@ -289,7 +288,7 @@ public class IdcServiceImpl implements IdcService {
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);
return ResultVOUtils.success();
}
@ -383,7 +382,8 @@ public class IdcServiceImpl implements IdcService {
private void saveExportStatus(Map<String,Object> params) {
Map<String,Object> map = new HashMap<String,Object>();
map.put("status", "0");
map.put("status", "1");
map.put("receiveStatus", "0");
map.putAll(params);
map.put("id", CustomUtil.getId());
map.put("updateTime", new Date());

Loading…
Cancel
Save