|
|
@@ -34,11 +34,13 @@ public class GetPolyvAnalysisBigData extends BaseClass implements Runnable {
|
|
|
* 获取频道直播概览统计数据表
|
|
|
*/
|
|
|
public void getLiveData() {
|
|
|
+ System.err.println("getLiveData");
|
|
|
DBConnect dbConnect = new DBConnect();
|
|
|
String[] channelids = dbConnect.runSqlQuery("select channelid from tlive where livestatus in('live','waiting') and convert(varchar(10),lastlivedate,120)=convert(varchar(10),getDate(),120) ").toArray("channelid");
|
|
|
Polyv polyv = new Polyv();
|
|
|
ArrayList<String> sqllist = new ArrayList<>();
|
|
|
JSONArray dataArray = polyv.getChannelSummary(channelids, getDate_Str());
|
|
|
+ System.err.println(dataArray);
|
|
|
if (dataArray == null) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -92,12 +94,14 @@ public class GetPolyvAnalysisBigData extends BaseClass implements Runnable {
|
|
|
* 查询频道多场次概览统计数据
|
|
|
*/
|
|
|
public void getSessionStats() {
|
|
|
+ System.err.println("getSessionStats");
|
|
|
DBConnect dbConnect = new DBConnect();
|
|
|
String[] channelids = dbConnect.runSqlQuery("select channelid from tlive where livestatus in('live','waiting') and convert(varchar(10),lastlivedate,120)=convert(varchar(10),getDate(),120) ").toArray("channelid");
|
|
|
for (String channelid : channelids) {
|
|
|
Polyv polyv = new Polyv();
|
|
|
ArrayList<String> sqllist = new ArrayList<>();
|
|
|
JSONArray dataArray = polyv.getSessionStats(channelid);
|
|
|
+ System.err.println(dataArray);
|
|
|
if (dataArray == null) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -134,6 +138,7 @@ public class GetPolyvAnalysisBigData extends BaseClass implements Runnable {
|
|
|
* 获取频道直播观看详情数据
|
|
|
*/
|
|
|
public void getLiveviewLog() {
|
|
|
+ System.err.println("getLiveviewLog");
|
|
|
DBConnect dbConnect = new DBConnect();
|
|
|
String[] channelids = dbConnect.runSqlQuery("select channelid from tlive where livestatus in('live','waiting') and convert(varchar(10),lastlivedate,120)=convert(varchar(10),getDate(),120) ").toArray("channelid");
|
|
|
Polyv polyv = new Polyv();
|
|
|
@@ -144,6 +149,7 @@ public class GetPolyvAnalysisBigData extends BaseClass implements Runnable {
|
|
|
int pageNumber = 1;
|
|
|
do {
|
|
|
JSONObject object = polyv.getPageViewlog(channelid, getDate_Str(), "200", String.valueOf(pageNumber++));
|
|
|
+ System.err.println(object);
|
|
|
if (object == null) {
|
|
|
continue out;
|
|
|
}
|
|
|
@@ -217,6 +223,7 @@ public class GetPolyvAnalysisBigData extends BaseClass implements Runnable {
|
|
|
* 获取频道直播观众聊天记录
|
|
|
*/
|
|
|
public void getLiveMessageList() {
|
|
|
+ System.err.println("getLiveMessageList");
|
|
|
DBConnect dbConnect = new DBConnect();
|
|
|
String[] channelids = dbConnect.runSqlQuery("select channelid from tlive where livestatus in('live','waiting') and convert(varchar(10),lastlivedate,120)=convert(varchar(10),getDate(),120) ").toArray("channelid");
|
|
|
Polyv polyv = new Polyv();
|
|
|
@@ -234,6 +241,7 @@ public class GetPolyvAnalysisBigData extends BaseClass implements Runnable {
|
|
|
int pageNumber = 1;
|
|
|
do {
|
|
|
JSONObject object = polyv.getPageMessageList(channelid, startdate, getDate_Str(), "200", String.valueOf(pageNumber++));
|
|
|
+ System.err.println(object);
|
|
|
if (object == null) {
|
|
|
continue out;
|
|
|
}
|