修改 時間參數及排序

This commit is contained in:
zhanghongqing
2018-12-18 06:52:52 +08:00
parent 2d9404f63b
commit 77b6873bd3
2 changed files with 3 additions and 3 deletions

View File

@@ -903,9 +903,9 @@ public class DashboardServiceController extends BaseRestController {
} else {
Calendar cal = Calendar.getInstance();
cal.setTime(new Date());
Date begin1 = cal.getTime();// 获取到完整的时间
Date end1 = cal.getTime();// 获取到完整的时间
cal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 1);
Date end1 = cal.getTime();
Date begin1 = cal.getTime();
// 带查询时间查询所有
List<Map> websiteChart = dashboardService.getTopicDetails(begin1, end1);
if (websiteChart != null && websiteChart.size() > 0) {

View File

@@ -132,7 +132,7 @@ FROM
<if test="entranceId!=null">
and entrance_id=#{entranceId}
</if>
group by web_id order by uniqueNum
group by web_id order by unique_num
</select>
<select id="getDomainTrans" resultType="com.nis.domain.restful.dashboard.TrafficHttpFocusStatistic">
select stat_time time, unique_num count from traffic_http_focus_statistic t where