|
|
@ -248,7 +248,7 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
public List<TaskDto> queryAllUnfinished(Map whereJson) { |
|
|
|
WQLObject wo = WQLObject.getWQLObject("acs_task"); |
|
|
|
JSONArray arr = wo.query("task_status < 2 ").getResultJSONArray(0); |
|
|
|
List<TaskDto> list =arr.toJavaList(TaskDto.class); |
|
|
|
List<TaskDto> list = arr.toJavaList(TaskDto.class); |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
@ -273,6 +273,19 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<TaskDto> queryTaskByStartDeviceCode(String start_device_code) { |
|
|
|
List<TaskDto> list = new ArrayList<>(); |
|
|
|
Iterator<TaskDto> iterator = tasks.iterator(); |
|
|
|
while (iterator.hasNext()) { |
|
|
|
TaskDto task = iterator.next(); |
|
|
|
if (task.getStart_device_code().equals(start_device_code)) { |
|
|
|
list.add(task); |
|
|
|
} |
|
|
|
} |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public TaskDto queryTaskByLinkNum(String link_num) { |
|
|
|
return null; |
|
|
|