Commit e95b2dbb authored by 廖旭伟's avatar 廖旭伟

数据汇聚增加应用接口访问统计

parent b63c504c
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
<profiles.kafka.brokers>192.168.0.251:9092</profiles.kafka.brokers> <profiles.kafka.brokers>192.168.0.251:9092</profiles.kafka.brokers>
<profiles.rabbitmq.host>192.168.0.98</profiles.rabbitmq.host> <profiles.rabbitmq.host>192.168.0.98</profiles.rabbitmq.host>
<profiles.rabbitmq.port>5672</profiles.rabbitmq.port> <profiles.rabbitmq.port>5672</profiles.rabbitmq.port>
<profiles.rabbitmq.username>taxi_mq</profiles.rabbitmq.username>
<profiles.rabbitmq.password>admin@2020</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>/</profiles.rabbitmq.virtualhost>
<profiles.nacos.server-addr>192.168.0.252:8848</profiles.nacos.server-addr> <profiles.nacos.server-addr>192.168.0.252:8848</profiles.nacos.server-addr>
<profiles.nacos.group>DEFAULT_GROUP</profiles.nacos.group> <profiles.nacos.group>DEFAULT_GROUP</profiles.nacos.group>
<profiles.nacos.namespace>smart-gov</profiles.nacos.namespace> <profiles.nacos.namespace>smart-gov</profiles.nacos.namespace>
......
...@@ -75,7 +75,7 @@ public class ConvergeSiteServiceImpl extends AbstractCRUDServiceImpl<ConvergeSit ...@@ -75,7 +75,7 @@ public class ConvergeSiteServiceImpl extends AbstractCRUDServiceImpl<ConvergeSit
query.setApplicationId(item.getAppEname()); query.setApplicationId(item.getAppEname());
List<InterfaceStatsVO> interfaceEntityList = convergeAppsInterfaceService.getTotalInvokeSum(query); List<InterfaceStatsVO> interfaceEntityList = convergeAppsInterfaceService.getTotalInvokeSum(query);
if(CollectionUtils.isEmpty(interfaceEntityList) || interfaceEntityList.get(0) == null){ if(CollectionUtils.isEmpty(interfaceEntityList) || interfaceEntityList.get(0) == null){
continue; interfaceEntityList=null;
} }
item.setInterfaceEntityList(interfaceEntityList); item.setInterfaceEntityList(interfaceEntityList);
} }
...@@ -164,7 +164,7 @@ public class ConvergeSiteServiceImpl extends AbstractCRUDServiceImpl<ConvergeSit ...@@ -164,7 +164,7 @@ public class ConvergeSiteServiceImpl extends AbstractCRUDServiceImpl<ConvergeSit
List<AppVO> voList = new ArrayList<>(); List<AppVO> voList = new ArrayList<>();
for (ConvergeAppsEntity item:apps){ for (ConvergeAppsEntity item:apps){
if(CollectionUtils.isEmpty(item.getInterfaceEntityList()) || item.getInterfaceEntityList().get(0) == null){ if(CollectionUtils.isEmpty(item.getInterfaceEntityList()) || item.getInterfaceEntityList().get(0) == null){
continue; item.setInterfaceEntityList(Collections.emptyList());
} }
AppVO vo = new AppVO(); AppVO vo = new AppVO();
BeanUtils.copyProperties(item,vo,BeanUtil.getNullPropertyNames(item)); BeanUtils.copyProperties(item,vo,BeanUtil.getNullPropertyNames(item));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment