Bladeren bron

Merge remote-tracking branch 'origin/develop' into develop

吴志根 3 jaren geleden
bovenliggende
commit
b50c82a895
1 gewijzigde bestanden met toevoegingen van 7 en 4 verwijderingen
  1. 7 4
      src/dsb/com/cnd3b/restcontroller/publicmethod/live/live.java

+ 7 - 4
src/dsb/com/cnd3b/restcontroller/publicmethod/live/live.java

@@ -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");
             //观看人数(人)