Commit cbc849b7 zshaohui

1.修改工单状态锁问题

1 个父辈 2a2ba78e
......@@ -157,6 +157,7 @@ public class DeviceController {
} else {
List<Storage> storageList = Lists.newArrayList();
List<String> cidList = Lists.newArrayList();
List<String> storageIds = dataCache.getAvailableStorageIds();
for (String cid : cids.split(",")) {
String notIntoCids = dataCache.getSettings().getNotIntoCids();
if (notIntoCids != null) {
......@@ -167,8 +168,12 @@ public class DeviceController {
}
Storage storage = dataCache.getStorage(cid);
if (storage != null) {
storageList.add(storage);
cidList.add(cid);
if (storageIds != null && !storageIds.isEmpty()){
if (storageIds.contains(storage.getId())){
storageList.add(storage);
cidList.add(cid);
}
}
}
}
if (storageList.isEmpty()) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!