|
|
@@ -39,12 +39,20 @@ public class live extends Controller {
|
|
|
livecustcount.addParameter("tactivityid", tactivityid);
|
|
|
livecustcount.addParameter("siteid", siteid);
|
|
|
Rows liverows = dbConnect.runSqlQuery(livecustcount.getSQL());
|
|
|
+
|
|
|
+ SQLFactory brandcustcount = new SQLFactory(this, "商户观众总数排行");
|
|
|
+ brandcustcount.addParameter("tactivityid", tactivityid);
|
|
|
+ brandcustcount.addParameter("siteid", siteid);
|
|
|
+ Rows brandcustcountrows = dbConnect.runSqlQuery(brandcustcount.getSQL());
|
|
|
+
|
|
|
//正在直播数
|
|
|
resultObject.put("flivecount", liverows.size());
|
|
|
//当前在线观众人数
|
|
|
resultObject.put("fcustcount", liverows.isEmpty() ? 0 : liverows.sum("fcount"));
|
|
|
//直播列表
|
|
|
resultObject.put("tlivelist", liverows);
|
|
|
+ //商户观众总数排行
|
|
|
+ resultObject.put("brandcustcount", brandcustcountrows);
|
|
|
return getSucReturnObject().setData(resultObject).toString();
|
|
|
}
|
|
|
|