Przeglądaj źródła

新增品类观众人数占比

沈静伟 4 lat temu
rodzic
commit
071ee0c657

+ 5 - 0
src/dsb/com/cnd3b/restcontroller/publicmethod/live/SQL/品类观众人数占比.sql

@@ -0,0 +1,5 @@
+select t3.flocationclass,count(0)fcount from tlive_viewlog t1
+inner join tlive t2 on t1.channelid=t2.channelid
+inner join tactivity_agentmsg t3 on t2.siteid=t3.siteid and t2.tactivityid=t3.tactivityid and t2.tagentsid=t3.tagentsid
+--where currentday=convert(varchar(10),getdate(),120)
+group by t3.flocationclass

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

@@ -104,10 +104,15 @@ public class live extends Controller {
         sql3.addParameter("tactivityid", tactivityid);
         Rows rows3 = sql3.runSqlQuery();
 
+        SQLFactory sql4 = new SQLFactory(this, "Æ·Àà¹ÛÖÚÈËÊýÕ¼±È");
+        sql4.addParameter("tactivityid", tactivityid);
+        Rows rows4 = sql4.runSqlQuery();
+
         JSONObject object = new JSONObject();
         object.put("custcount", rows1);
         object.put("citycount", rows2);
         object.put("channelcount", rows3);
+        object.put("saleprodclasscount", rows4);
         return getSucReturnObject().setData(object).saveToDataPool(1).toString();
     }
 }