去除日志
parent
d242237936
commit
70803db54c
|
@ -207,11 +207,6 @@ public class InstanceServiceImpl implements InstanceService {
|
|||
String table = CmdbUtils.CMDB_INSTANCE + moduleCode.toLowerCase();
|
||||
String valueTable = CmdbUtils.CMDB_INSTANCE_VALUE + moduleCode.toLowerCase();
|
||||
boolean hasAdminRole = checkAdminRole(userId);
|
||||
log.info("pager:{}",JSON.toJSONString(pager));
|
||||
log.info("table:{}",JSON.toJSONString(table));
|
||||
log.info("valueTable:{}",JSON.toJSONString(valueTable));
|
||||
log.info("userId:{}",JSON.toJSONString(userId));
|
||||
log.info("hasAdminRole:{}",JSON.toJSONString(hasAdminRole));
|
||||
int total = instanceRepository.count(pager.getParams(), table, valueTable, userId, hasAdminRole);
|
||||
list = this.instanceRepository.list(pager, table, valueTable, userId, hasAdminRole);
|
||||
convertInstanceValue(list, moduleId, userId, hasAdminRole);
|
||||
|
|
|
@ -432,8 +432,6 @@ public class ModuleServiceImpl implements ModuleService {
|
|||
List<String> nameList = Arrays.asList("网络设备", "物理服务器", "安全设备");
|
||||
//查询根节点
|
||||
List<ModuleGroup> rootGroups = moduleGroupRepository.queryRootInName(nameList);
|
||||
log.info("rootGroups:{}", JSON.toJSONString(rootGroups));
|
||||
log.info("context:{}", JSON.toJSONString(context));
|
||||
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
|
||||
|
@ -468,7 +466,6 @@ public class ModuleServiceImpl implements ModuleService {
|
|||
}
|
||||
|
||||
private void getInstaceCount(ModuleGroup rootGroup, Map<String, Object> resultMap, Long userId) throws Exception {
|
||||
log.info("rootGroup:{}", JSON.toJSONString(rootGroup));
|
||||
//获取当前ModuleGroup下所有的modle
|
||||
Pager pager = new Pager();
|
||||
List<Param> modelParamList = new ArrayList<>();
|
||||
|
@ -498,7 +495,6 @@ public class ModuleServiceImpl implements ModuleService {
|
|||
paramList.add(param);
|
||||
boolean adminRole = instanceService.checkAdminRole(userId);
|
||||
int count = instanceRepository.count(paramList, table, valueTable, userId, adminRole);
|
||||
log.info("count:{}", count);
|
||||
total += count;
|
||||
}
|
||||
resultMap.put(rootGroup.getCode(), total);
|
||||
|
|
Loading…
Reference in New Issue