流量统计app详情不返回运营商信息
This commit is contained in:
@@ -1082,11 +1082,11 @@ public class DashboardServiceController extends BaseRestController {
|
||||
ispNum = dashboardService.getIspNum(entity.getSearchIspCode());
|
||||
entity.setIspNum(ispNum);
|
||||
}
|
||||
List<SysDeviceInfo> sysDeviceInfo =dashboardService.getIspListByIspNum(ispNum);
|
||||
// List<SysDeviceInfo> sysDeviceInfo =dashboardService.getIspListByIspNum(ispNum);
|
||||
CustomerContextHolder.setCustomerType(CustomerContextHolder.DATA_SOURCE_B);
|
||||
list = dashboardService.appConnRecordTop100(entity);
|
||||
// 设置运营商编码
|
||||
if(list!=null&&list.size()>0&&sysDeviceInfo!=null&&sysDeviceInfo.size()>0){
|
||||
/*if(list!=null&&list.size()>0&&sysDeviceInfo!=null&&sysDeviceInfo.size()>0){
|
||||
for (AppConnRecordStatistic app : list) {
|
||||
for (SysDeviceInfo device : sysDeviceInfo) {
|
||||
if((app.getIspNum().trim()).equals(device.getIspNum().trim())){
|
||||
@@ -1095,7 +1095,7 @@ public class DashboardServiceController extends BaseRestController {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
CustomerContextHolder.clearCustomerType();
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
</select>
|
||||
<!-- App 活跃IP Top100 -->
|
||||
<select id="appConnRecordTop100" parameterType="com.nis.domain.restful.dashboard.AppConnRecordStatistic" resultType="com.nis.domain.restful.dashboard.AppConnRecordStatistic">
|
||||
select s_ip ipAddr,concat(toString(entrance_id),toString(device_id)) ispNum, sum(c2s_byte_num + s2c_byte_num) byteNum, sum(c2s_pkt_num + s2c_pkt_num) pktNum, count(s_ip) logNum
|
||||
select s_ip ipAddr, sum(c2s_byte_num + s2c_byte_num) byteNum, sum(c2s_pkt_num + s2c_pkt_num) pktNum, count(s_ip) logNum
|
||||
from tbs_ods_ntc_conn_record_log t where
|
||||
<![CDATA[ found_time>= toDateTime(#{searchStartTime}) and found_time< toDateTime(#{searchEndTime})
|
||||
and app_id=toInt64(#{searchAppId}) ]]>
|
||||
@@ -71,7 +71,7 @@
|
||||
<if test="ispNum !=null and ispNum != ''">
|
||||
<![CDATA[and concat(toString(entrance_id),toString(device_id)) in (${ispNum})]]>
|
||||
</if>
|
||||
group by s_ip,entrance_id,device_id
|
||||
group by s_ip
|
||||
order by
|
||||
<choose>
|
||||
<when test="searchQuota !=null and searchQuota != '' and searchQuota == 2 ">
|
||||
|
||||
Reference in New Issue
Block a user