|
@@ -8,7 +8,6 @@ import com.cnd3b.common.data.RowsMap;
|
|
|
import com.cnd3b.common.data.SQLFactory;
|
|
|
|
|
|
|
|
|
-
|
|
|
public class live extends Controller {
|
|
|
public live(JSONObject content) {
|
|
|
super(content);
|
|
@@ -84,22 +83,26 @@ public class live extends Controller {
|
|
|
}
|
|
|
//商户观众总数排行
|
|
|
resultObject.put("brandcustcount", brandcustcountrows);
|
|
|
+ //参展商户总数
|
|
|
+ Rows fagentcountrows = dbConnect.runSqlQuery("select tagentsid from tactivity_agentmsg where siteid='" + siteid + "' and tactivityid='" + tactivityid + "' ");
|
|
|
+ resultObject.put("fagentcount", fagentcountrows.size());
|
|
|
return getSucReturnObject().setData(resultObject).toString();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 通过直播状态获取门户直播列表
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
- public String getHomeLive(){
|
|
|
+ public String getHomeLive() {
|
|
|
//直播状态 unStart:未开始 live:直播中 end:已结束 waiting:等待中 playback:回放中
|
|
|
String livestatus = content.getString("livestatus");
|
|
|
- SQLFactory sqlFactory = new SQLFactory(this, "门户直播列表",pageSize,pageNumber,"t1.createdate");
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this, "门户直播列表", pageSize, pageNumber, "t1.createdate");
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("livestatus", "%" + livestatus + "%");
|
|
|
System.err.println(sqlFactory.getSQL());
|
|
|
Rows agentRows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
|
- for(Row row:agentRows){
|
|
|
+ for (Row row : agentRows) {
|
|
|
//观看次数(次)
|
|
|
String channelid = row.getString("channelid");
|
|
|
//观看人数(人)
|