Browse Source

数据调整

沈静伟 3 years ago
parent
commit
8cff9359a9

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/publicmethod/live/SQL/当前线上观众人数查询.sql

@@ -6,6 +6,7 @@ select channelid,
        t.fintroduction,
        t.livestatus,
        count as fcustcount,
+       count as viewers,
        t.channelcoverimageurl,
        t4.saleprodclass,
        t4.faddress,

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

@@ -58,13 +58,13 @@ public class live extends Controller {
         resultObject.put("flivecount", flivecount);
         //当前在线观众人数
         resultObject.put("fcustcount", liverows.isEmpty() ? 0 : liverows.sum("fcustcount"));
-        for (Row row : liverows) {
-            //观看次数(次)
-            String channelid = row.getString("channelid");
-            //观看人数(人)
-            long viewers = getCount("直播观看人数", "num", channelid);
-            row.put("viewers", viewers);
-        }
+//        for (Row row : liverows) {
+//            //观看次数(次)
+//            String channelid = row.getString("channelid");
+//            //观看人数(人)
+//            long viewers = getCount("直播观看人数", "num", channelid);
+//            row.put("viewers", viewers);
+//        }
         //直播列表
         int pageSize = content.getIntValue("pageSize");
         int pageNumber = content.getIntValue("pageNumber");