@Query(value="SELECT ACCOUNT,TRANS_CNT,TRANS_AVAIL_CNT,TRANS_TIME_AVG FROM (SELECT ACCOUNT,TRANS_CNT,TRANS_AVAIL_CNT,TRANS_TIME_AVG,RANK()OVER(ORDER BY STATS_TIME DESC) AS RANK FROM CCOLAP.app_sm_db_account_kpi_250_t)A WHERE RANK=1 ORDER BY TRANS_CNT DESC LIMIT 10",nativeQuery=true)
@Query(value="SELECT ACCOUNT,TRANS_CNT,TRANS_AVAIL_CNT,TRANS_TIME_AVG FROM ("+
"SELECT ACCOUNT,TRANS_CNT,TRANS_AVAIL_CNT,TRANS_TIME_AVG,RANK()OVER(ORDER BY STATS_TIME DESC) AS RANK FROM"+
" CCOLAP.app_sm_db_account_kpi_250_t where stats_time >=trunc(sysdate))A WHERE RANK=1 ORDER BY TRANS_CNT DESC LIMIT 10",nativeQuery=true)
List<Object[]>seatAnalysisTop();
List<Object[]>seatAnalysisTop();
//坐席分析后TOP10
//坐席分析后TOP10
@Query(value="SELECT ACCOUNT,TRANS_CNT,TRANS_AVAIL_CNT,TRANS_TIME_AVG FROM (SELECT ACCOUNT,TRANS_CNT,TRANS_AVAIL_CNT,TRANS_TIME_AVG,RANK()OVER(ORDER BY STATS_TIME DESC) AS RANK FROM CCOLAP.app_sm_db_account_kpi_250_t)A WHERE RANK=1 ORDER BY TRANS_CNT LIMIT 10",nativeQuery=true)
@Query(value="SELECT ACCOUNT,TRANS_CNT,TRANS_AVAIL_CNT,TRANS_TIME_AVG FROM ("+
"SELECT ACCOUNT,TRANS_CNT,TRANS_AVAIL_CNT,TRANS_TIME_AVG,RANK()OVER(ORDER BY STATS_TIME DESC) AS RANK FROM "+
"CCOLAP.app_sm_db_account_kpi_250_t where stats_time >=trunc(sysdate))A WHERE RANK=1 ORDER BY TRANS_CNT LIMIT 10",nativeQuery=true)
@Query(value="select STATS_TIME,sum(TIME1_MOBILE_CNT) as TIME1_MOBILE_CNT,sum(TIME2_MOBILE_CNT) as TIME2_MOBILE_CNT,sum(TIME3_MOBILE_CNT) as TIME3_MOBILE_CNT from ccolap.app_sm_db_account_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 group by STATS_TIME order by STATS_TIME",nativeQuery=true)
@Query(value="select STATS_TIME,sum(TIME1_MOBILE_CNT) as TIME1_MOBILE_CNT,sum(TIME2_MOBILE_CNT) as TIME2_MOBILE_CNT,"+
"sum(TIME3_MOBILE_CNT) as TIME3_MOBILE_CNT from ccolap.app_sm_db_account_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 group by STATS_TIME order by STATS_TIME",nativeQuery=true)
@@ -18,10 +18,10 @@ public interface FlowBrowserDao extends PagingAndSortingRepository<FlowBrowser,L
...
@@ -18,10 +18,10 @@ public interface FlowBrowserDao extends PagingAndSortingRepository<FlowBrowser,L
List<Object[]>clientCompatibilityMonth();
List<Object[]>clientCompatibilityMonth();
//服务器相关情况分析:HTTP状态码分析(数据中没有'代码号'字段)实时
//服务器相关情况分析:HTTP状态码分析(数据中没有'代码号'字段)实时
@Query(value="select SERVER_IP,SOTHER_CNT from (select SERVER_IP,SOTHER_CNT,rank()over(order by STATS_TIME desc) as rank from ccolap.app_sm_db_server_kpi_t where STATS_TIME>=trunc(sysdate))a where rank=1 order by SOTHER_CNT desc limit 10",nativeQuery=true)
@Query(value="select SERVER_IP,tot,thot,fof,blank from ccolap.f3_tmp",nativeQuery=true)
List<Object[]>httpInformation();
List<Object[]>httpInformation();
//服务器相关情况分析:HTTP状态码分析(数据中没有'代码号'字段)当月1号到当前时间
//服务器相关情况分析:HTTP状态码分析(数据中没有'代码号'字段)当月1号到当前时间
@Query(value="select SERVER_IP,sum(SOTHER_CNT) as SOTHER_CNT from ccolap.app_sm_db_server_kpi_t where STATS_TIME>=trunc(sysdate,'mm') group by SERVER_IP order by SOTHER_CNT desc limit 10",nativeQuery=true)
@Query(value="select SERVER_IP,tot,thot,fof,blank from ccolap.f3_old_tmp",nativeQuery=true)
@@ -22,29 +22,61 @@ public interface FlowClientDao extends PagingAndSortingRepository<FlowClient,Lon
...
@@ -22,29 +22,61 @@ public interface FlowClientDao extends PagingAndSortingRepository<FlowClient,Lon
List<Object[]>ipBusiness();
List<Object[]>ipBusiness();
//用户IP业务分布:TOP10当月1号到当前时间
//用户IP业务分布:TOP10当月1号到当前时间
@Query(value="SELECT CNT1,\n"+
@Query(value="SELECT CNT1,"+
"CNT2,\n"+
"CNT2,"+
"CNT3,\n"+
"CNT3,"+
"CNT4,\n"+
"CNT4,"+
"CNT5,\n"+
"CNT5,"+
"CNT6,\n"+
"CNT6,"+
"CNT7,\n"+
"CNT7,"+
"CNT8,\n"+
"CNT8,"+
"CNT9,\n"+
"CNT9,"+
"CNT10,\n"+
"CNT10,"+
"CLIENT_IP,\n"+
"CLIENT_IP,"+
"CNT FROM ccolap.YONGHU_OLD_TMP ORDER BY CNT DESC",nativeQuery=true)
"CNT FROM ccolap.YONGHU_OLD_TMP ORDER BY CNT DESC",nativeQuery=true)
List<Object[]>ipBusinessMonth();
List<Object[]>ipBusinessMonth();
//用户IP趋势分析:确定ip:
// //用户IP趋势分析:确定ip:
// @Query(value="SELECT CLIENT_IP from (SELECT CLIENT_IP,sum(TRANS_CNT) as CNT FROM ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 group by CLIENT_IP ORDER BY CNT DESC LIMIT 6)a", nativeQuery=true)
// List<String> findIp();
//
// //用户IP趋势分析:趋势图实时
// @Query(value="select sum(TRANS_CNT) as CNT,CLIENT_IP,STATS_TIME as time from ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 and CLIENT_IP =(?1) group by CLIENT_IP,STATS_TIME order by STATS_TIME", nativeQuery=true)
// List<Object[]> ipTrend(String ipList);
//
// //用户IP趋势分析:趋势图当月1号到当前时间
// @Query(value="select sum(TRANS_CNT) as CNT,CLIENT_IP,trunc(STATS_TIME,'dd') as time from ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=trunc(sysdate,'mm') and CLIENT_IP=(?1) group by CLIENT_IP,time order by time", nativeQuery=true)
// List<Object[]> ipTrendMonth(String ipList);
//用户IP趋势分析:确定ip:
@Query(value="SELECT CLIENT_IP from (SELECT CLIENT_IP,sum(TRANS_CNT) as CNT FROM ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 group by CLIENT_IP ORDER BY CNT DESC LIMIT 6)a",nativeQuery=true)
@Query(value="SELECT CLIENT_IP from (SELECT CLIENT_IP,sum(TRANS_CNT) as CNT FROM ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 group by CLIENT_IP ORDER BY CNT DESC LIMIT 6)a",nativeQuery=true)
List<String>findIp();
List<String>findIp();
//用户IP趋势分析:趋势图实时
//用户IP趋势分析:趋势图实时
@Query(value="select sum(TRANS_CNT) as CNT,CLIENT_IP,STATS_TIME as time from ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 and CLIENT_IP =(?1) group by CLIENT_IP,STATS_TIME order by STATS_TIME",nativeQuery=true)
@Query(value=" select sum(TRANS_CNT) as CNT,CLIENT_IP,STATS_TIME as time "+
List<Object[]>ipTrend(StringipList);
" from ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24"+
" and STATS_TIME<now()-4/24 and CLIENT_IP in (SELECT CLIENT_IP from (SELECT CLIENT_IP,sum(TRANS_CNT) as CNT FROM"+
" ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24"+
" group by CLIENT_IP ORDER BY CNT DESC LIMIT 10)a) group by CLIENT_IP,STATS_TIME order by CLIENT_IP",nativeQuery=true)
List<Object[]>ipTrend();
//用户IP趋势分析:趋势图当月1号到当前时间
//用户IP趋势分析:趋势图当月1号到当前时间
@Query(value="select sum(TRANS_CNT) as CNT,CLIENT_IP,trunc(STATS_TIME,'dd') as time from ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=trunc(sysdate,'mm') and CLIENT_IP=(?1) group by CLIENT_IP,time order by time",nativeQuery=true)
@Query(value="select sum(TRANS_CNT) as CNT,CLIENT_IP,trunc(STATS_TIME,'dd') as time from ccolap.app_sm_db_client_kpi_250_t "+
List<Object[]>ipTrendMonth(StringipList);
" where STATS_TIME>=trunc(sysdate,'mm') and CLIENT_IP in ((SELECT CLIENT_IP from (SELECT CLIENT_IP,sum(TRANS_CNT) as CNT FROM "+
" ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 "+
" group by CLIENT_IP ORDER BY CNT DESC LIMIT 10)a)) group by CLIENT_IP,time order by CLIENT_IP",nativeQuery=true)
List<Object[]>ipTrendMonth();
}
}
// select sum(TRANS_CNT) as CNT,CLIENT_IP,STATS_TIME as time
// from ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24
// and STATS_TIME<now()-4/24 and CLIENT_IP in (SELECT CLIENT_IP from (SELECT CLIENT_IP,sum(TRANS_CNT) as CNT FROM
// ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24
// group by CLIENT_IP ORDER BY CNT DESC LIMIT 6)a) group by CLIENT_IP,STATS_TIME order by CLIENT_IP
//
// SELECT CLIENT_IP from (SELECT CLIENT_IP,sum(TRANS_CNT) as CNT FROM
// ccolap.app_sm_db_client_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24
@@ -18,10 +18,10 @@ public interface FlowHallBusinessDao extends PagingAndSortingRepository<FlowHall
...
@@ -18,10 +18,10 @@ public interface FlowHallBusinessDao extends PagingAndSortingRepository<FlowHall
List<String>hallMonth();
List<String>hallMonth();
// 实时
// 实时
@Query(value="select sum(TRANS_CNT) as TRANS_CNT,HALL,STATS_TIME from ccolap.app_sm_db_hall_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 and hall =(?1) group by HALL,STATS_TIME order by STATS_TIME;",nativeQuery=true)
@Query(value="select sum(TRANS_CNT) as TRANS_CNT,HALL,STATS_TIME from ccolap.app_sm_db_hall_kpi_250_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 and hall in (select hall from (select sum(trans_cnt) as cnt,HALL from ccolap.app_sm_db_hall_kpi_250_t where STATS_TIME>=now()-34/24 group by HALL order by cnt desc limit 5)a) group by HALL,STATS_TIME order by HALL;",nativeQuery=true)
List<Object[]>businessOffice(Stringhall);
List<Object[]>businessOffice();
//营业厅业务量分析当月1号到当前时间
//营业厅业务量分析当月1号到当前时间
@Query(value="select sum(TRANS_CNT) as TRANS_CNT,HALL,TRUNC(STATS_TIME) as STATS_TIME from ccolap.app_sm_db_hall_kpi_250_t where STATS_TIME>=trunc(sysdate,'mm') and HALL =(?1) group by trunc(STATS_TIME),HALL order by STATS_TIME;",nativeQuery=true)
@Query(value="select sum(TRANS_CNT) as TRANS_CNT,HALL,TRUNC(STATS_TIME) as STATS_TIME from ccolap.app_sm_db_hall_kpi_250_t where STATS_TIME>=trunc(sysdate,'mm') and HALL in (select hall from (select sum(trans_cnt) as cnt,HALL from ccolap.app_sm_db_hall_kpi_250_t where STATS_TIME>=trunc(sysdate,'mm') group by HALL order by cnt desc limit 5)a) group by trunc(STATS_TIME),HALL order by HALL;",nativeQuery=true)
@Query(value="select STATS_TIME, sum(TIME1_ACCOUNT_CNT) as TIME1_ACCOUNT_CNT,sum(TIME2_ACCOUNT_CNT) as TIME2_ACCOUNT_CNT,sum(TIME3_ACCOUNT_CNT) as TIME3_ACCOUNT_CNT from ccolap.app_sm_db_province_kpi_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 group by STATS_TIME order by STATS_TIME",nativeQuery=true)
@Query(value="select STATS_TIME, sum(TIME1_ACCOUNT_CNT) as TIME1_ACCOUNT_CNT,sum(TIME2_ACCOUNT_CNT) as TIME2_ACCOUNT_CNT,"+
"sum(TIME3_ACCOUNT_CNT) as TIME3_ACCOUNT_CNT from "+
"ccolap.app_sm_db_province_kpi_t where STATS_TIME>=now()-34/24 and STATS_TIME<now()-4/24 group by STATS_TIME order by STATS_TIME",nativeQuery=true)