Explorar el Código

合作商户直播列表返回观看次数,商户名称

吴志根 hace 4 años
padre
commit
0b601fdf05

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/合作商直播列表.sql

@@ -19,7 +19,8 @@ select t1.tliveid,
        t1.fisneedauth,
        t1.secretkey,
        t1.livestatus,
-       t1.channelcoverimageurl
+       t1.channelcoverimageurl,
+       t2.fagentname
 from tlive t1
          inner join tagents t2 on t1.siteid = t2.siteid and t1.tagentsid = t2.tagentsid
 where t1.siteid = $siteid$

+ 10 - 0
src/dsb/com/cnd3b/restcontroller/customer/live/live.java

@@ -417,6 +417,16 @@ public class live extends Controller {
         sqlFactory.addParameter_in("tagentsidList", tagentsidList);
         Rows agentRows = dbConnect.runSqlQuery(sqlFactory.getSQL());
 
+        for(Row row:agentRows){
+            //观看次数(次)
+            String channelid = row.getString("channelid");
+            long viewCounts = getCount("观看次数", "num", channelid);
+            row.put("viewCounts", viewCounts);
+        }
+
+
+
+
         return getSucReturnObject().setData(agentRows).toString();
     }