1:为实时统计配置中jediscluster改为每次使用都获取一个新的
2:添加根据配置id获取编译,组,域等信息的接口 3:修改获取或释放redis分布式锁后,将redis连接释放 4:解决冲突
This commit is contained in:
@@ -306,12 +306,12 @@ public class DashboardService extends BaseService{
|
||||
* 协议统计报表
|
||||
* @return
|
||||
*/
|
||||
public List<Map> getProtocolList(){
|
||||
public List<Map> getProtocolList(String startTime,String endTime){
|
||||
TrafficProtocolStatistic maxStatTime = trafficProtocolStatisticDao.getMaxStatTime();
|
||||
List<Map> list=new ArrayList<Map>();
|
||||
if(maxStatTime!=null&&maxStatTime.getStatTime()!=null) {
|
||||
Date statTime = maxStatTime.getStatTime();
|
||||
list = trafficProtocolStatisticDao.getProtocolList(statTime);
|
||||
list = trafficProtocolStatisticDao.getProtocolList(statTime,startTime,endTime);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
@@ -339,12 +339,12 @@ public class DashboardService extends BaseService{
|
||||
* App统计报表
|
||||
* @return
|
||||
*/
|
||||
public List<Map> getAppList(){
|
||||
public List<Map> getAppList(String startTime,String endTime){
|
||||
TrafficAppStatistic maxStatTime = trafficAppStatisticDao.getMaxStatTime();
|
||||
List<Map> list=new ArrayList<Map>();
|
||||
if(maxStatTime!=null&&maxStatTime.getStatTime()!=null) {
|
||||
Date statTime = maxStatTime.getStatTime();
|
||||
list = trafficAppStatisticDao.getAppList(statTime);
|
||||
list = trafficAppStatisticDao.getAppList(statTime,startTime,endTime);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user