rev 设备导入

This commit is contained in:
USER-20220102CG\noblelift
2023-07-28 09:41:01 +08:00
parent 17b80da888
commit 0913a4aad7
3 changed files with 19 additions and 11 deletions

View File

@@ -250,7 +250,7 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
// allDevice.remove(deviceByCode);
log.info("设备删除成功!");
if (deviceByCode != null) {
if (deviceByCode != null && ObjectUtil.isNotEmpty(deviceByCode.getDeviceDriverDefination())) {
if (StrUtil.equals("storage", deviceByCode.getDeviceDriverDefination().getFitDeviceTypes().get(0).name())) {
storageTab.delete("substring_index( storage_code,'-',1)= '" + device_code + "'");