diff --git a/src/main/java/neatlogic/module/cmdb/matrix/handler/CiDataSourceHandler.java b/src/main/java/neatlogic/module/cmdb/matrix/handler/CiDataSourceHandler.java index b6dfba14e0d8346ecdeb84cd152fbadf2d94082a..858eeb1a6124322cf81ccad31ae0916961b47511 100644 --- a/src/main/java/neatlogic/module/cmdb/matrix/handler/CiDataSourceHandler.java +++ b/src/main/java/neatlogic/module/cmdb/matrix/handler/CiDataSourceHandler.java @@ -875,6 +875,8 @@ public class CiDataSourceHandler extends MatrixDataSourceHandlerBase { CiVo ciVo = ciMapper.getCiByLabel(ciLabel); if (ciVo != null) { ciEntityVo.setFilterCiId(ciVo.getId()); + } else { + ciEntityVo.setFilterCiId(-1L); } } break; @@ -954,6 +956,8 @@ public class CiDataSourceHandler extends MatrixDataSourceHandlerBase { CiVo ciVo = ciMapper.getCiByLabel(ciLabel); if (ciVo != null) { ciEntityVo.setFilterCiId(ciVo.getId()); + } else { + ciEntityVo.setFilterCiId(-1L); } } break;