StringBuilderstringBuilder=newStringBuilder("select count(1) as total_num ,event_type,to_char(event_dt,'HH24') as hour from tb_event_data WHERE 1=1 ");
//StringBuilder stringBuilder = new StringBuilder("select count(1) as total_num ,event_type,to_char(event_dt,'HH24') as hour from tb_event_data WHERE 1=1 and event_date='behavior' ");
StringBuilderstringBuilder=newStringBuilder("select count(1) as total_num ,to_char((event_dt AT TIME ZONE 'utc')AT TIME ZONE 'asia/shanghai','HH24') as hour from tb_event_data WHERE 1=1 and event_cate='behavior' ");
stringBuilder.append(" and event_dt>='").append(behaviorStatisticsVo.getStartDt()).append("'");
StringBuilderstringBuilder=newStringBuilder("select count(1) as total_num from tb_traffic inner JOIN tb_event_data on tb_event_data.event_unid=tb_traffic.event_unid where 1=1 and event_cate='traffic' ");
StringBuilderstringBuilder=newStringBuilder("select count(1) as total_num,to_char((event_dt AT TIME ZONE 'utc')AT TIME ZONE 'asia/shanghai','HH24') as hour from tb_traffic inner JOIN tb_event_data on tb_event_data.event_unid=tb_traffic.event_unid where 1=1 and event_cate='traffic' ");
StringBuilderstringBuilder=newStringBuilder("select count(1) as total_num,to_char((event_dt AT TIME ZONE 'utc')AT TIME ZONE 'asia/shanghai','HH24') as hour from tb_traffic inner JOIN tb_event_data on tb_event_data.event_unid=tb_traffic.event_unid where 1=1 and event_cate='traffic' ");
StringBuilderstringBuilder=newStringBuilder("select count(1) as total_num,to_char((event_dt AT TIME ZONE 'utc')AT TIME ZONE 'asia/shanghai','HH24') as hour from tb_event_data where 1=1 and event_cate='traffic' ");