Commit 0386e0f2 authored by wanghao's avatar wanghao

1 老化过程中 获取卡号,获取IOT状态调整中

parent dcd40833
...@@ -243,6 +243,9 @@ public class AllCommandHandler { ...@@ -243,6 +243,9 @@ public class AllCommandHandler {
// 处理 nbCode 为空的(直接设状态为 2,加入待更新列表) // 处理 nbCode 为空的(直接设状态为 2,加入待更新列表)
List<PalletDeviceBinding> needUpdateList = bindings.stream().filter(b -> StringUtils.isBlank(b.getNbCode())).collect(Collectors.toList()); List<PalletDeviceBinding> needUpdateList = bindings.stream().filter(b -> StringUtils.isBlank(b.getNbCode())).collect(Collectors.toList());
for (PalletDeviceBinding palletDeviceBinding : needUpdateList) {
palletDeviceBinding.setIotStatus(2);
}
if (groupByMotherboard.isEmpty()) { if (groupByMotherboard.isEmpty()) {
// 如果没有需要调接口的,直接批量更新后返回 // 如果没有需要调接口的,直接批量更新后返回
if (!needUpdateList.isEmpty()) { if (!needUpdateList.isEmpty()) {
...@@ -275,8 +278,6 @@ public class AllCommandHandler { ...@@ -275,8 +278,6 @@ public class AllCommandHandler {
String nbCode = palletDeviceBinding.getNbCode(); String nbCode = palletDeviceBinding.getNbCode();
// 如果 nbCode 为空,则设状态为 2,加入待更新列表 // 如果 nbCode 为空,则设状态为 2,加入待更新列表
if (StringUtils.isBlank(nbCode)) { if (StringUtils.isBlank(nbCode)) {
palletDeviceBinding.setIotStatus(2);
needUpdateList.add(palletDeviceBinding);
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment