...
|
...
|
@@ -170,7 +170,8 @@ public class MObjectInfoCtrl { |
|
|
String typeIdsStr = request.getTypeIds();
|
|
|
String hostIdsStr = request.getSearchHostIps();
|
|
|
Map<String,Object> paramMap = new HashMap<>();
|
|
|
if(StringUtils.isNotBlank(typeIdsStr) && !StringUtils.equals("0",typeIdsStr)){
|
|
|
|
|
|
if(StringUtils.isNotBlank(typeIdsStr) && !StringUtils.equals("0",typeIdsStr)){//为0表示 首次加载 整颗树
|
|
|
List<String> typeIdList = Arrays.asList(StringUtils.split(typeIdsStr, ","));
|
|
|
paramMap.put("typeIdList", typeIdList);
|
|
|
}
|
...
|
...
|
@@ -182,6 +183,7 @@ public class MObjectInfoCtrl { |
|
|
try{
|
|
|
int totalCount = mobjectService.countByCondition(pageBean);
|
|
|
List<MObjectInfo> moListByType = mobjectService.selectPageByCondition(pageBean);
|
|
|
//在原来方法的基础上修改的----展示监控对象全路径
|
|
|
List<MObjectModel> resultList = buildMObjectModelList(moListByType);
|
|
|
PageResponse pageResponse = new PageResponse();
|
|
|
pageResponse.setCurrentPage(request.getCurrentPage());
|
...
|
...
|
@@ -281,7 +283,11 @@ public class MObjectInfoCtrl { |
|
|
|
|
|
BeanUtils.copyProperties(mObjectInfo, model);
|
|
|
|
|
|
model.setMoTypeName(typeInfoService.queryTypeInfo(mObjectInfo.getMoTypeId()).getTypeName());
|
|
|
//获取当前监控对象 在监控树中的全路径
|
|
|
String fullpath = typeInfoService.getFullPathByTypeId(mObjectInfo.getMoTypeId());
|
|
|
model.setMoTypeName(fullpath);
|
|
|
// model.setMoTypeName(typeInfoService.queryTypeInfo(mObjectInfo.getMoTypeId()).getTypeName());
|
|
|
|
|
|
|
|
|
model.setMoStatus("normal");
|
|
|
|
...
|
...
|
|