Commit b025b6a3 zshaohui

获取所有虚拟仓出库列表

1 个父辈 56c592d3
...@@ -618,6 +618,36 @@ public class OutLineController { ...@@ -618,6 +618,36 @@ public class OutLineController {
} }
@ApiOperation("获取虚拟仓正在出库的列表")
@RequestMapping("/getAllVirtualOutTask")
@AnonymousAccess
public ResultBean getAllVirtualOutTask() {
String storageId = "";
for (Storage storage : dataCache.getAllStorage().values()) {
if (storage.isVirtual()){
storageId = storage.getId();
}
}
List<DataLog> taskList = new ArrayList<>();
for (DataLog task : taskService.getAllTasks()) {
if (task.getStorageId().equals(storageId)){
if (!task.isFinished() && !task.isCancel()){
taskList.add(task);
}
}
}
if (taskList != null && !taskList.isEmpty()){
taskList = taskList.stream().sorted(Comparator.comparing(DataLog :: getPosName)).collect(Collectors.toList());
}
return ResultBean.newOkResult(taskList);
}
@ApiOperation("料箱中的数量") @ApiOperation("料箱中的数量")
@RequestMapping("/getOutBoxNum") @RequestMapping("/getOutBoxNum")
@AnonymousAccess @AnonymousAccess
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!