Explorar o código

直播间列表查询新增直播间url
调整热门展品接口

沈静伟 %!s(int64=4) %!d(string=hai) anos
pai
achega
71786989f8

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

@@ -1,5 +1,6 @@
-select channelid,tagentsid,t.fbrand,t.saleprodclass,count as fcount,t.channelcoverimageurl from (
-select ROW_NUMBER()over(partition by t1.channelid order by t1.time desc)as num,t1.channelid,t2.tagentsid,t1.count,t2.channelcoverimageurl,
+select channelid,tagentsid,t.fbrand,t.saleprodclass,count as fcount,t.channelcoverimageurl,fliveshowurl from (
+select ROW_NUMBER()over(partition by t1.channelid order by t1.time desc)as num,t1.channelid,t2.tagentsid,
+t1.count,t2.channelcoverimageurl,t2.fliveshowurl,
 t3.fbrand,t3.saleprodclass
 from tlive_usercount t1
 inner join tlive t2 on t1.channelid=t2.channelid --and t2.livestatus='live'

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/publicmethod/live/SQL/热门展品.sql

@@ -1,2 +1,3 @@
-select t1.tactivity_agentmsgid,t1.tagentsid,t1.flocationclass,t1.flocation,t1.fbrand,t1.fintroduction from tactivity_agentmsg t1
+select t1.tactivity_agentproductsid,t2.tagents_productid,t1.tagentsid,t1.fintroduction,t2.fprodname,t2.fprodclassname from tactivity_agentproducts t1
+inner join tagents_product t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid and t1.tagents_productid=t2.tagents_productid
 where t1.tactivityid=$tactivityid$

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

@@ -73,9 +73,9 @@ public class live extends Controller {
         SQLFactory agentlistSql = new SQLFactory(this, "ÈÈÃÅչƷ");
         agentlistSql.addParameter("tactivityid", tactivityid);
         Rows rows = agentlistSql.runSqlQuery();
-        RowsMap map = getAttachmentUrl("tactivity_agentmsg", rows.toArrayList("tactivity_agentmsgid"));
+        RowsMap map = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
         for (Row row : rows) {
-            row.put("attinfos", map.get(row.getString("tactivity_agentmsgid")));
+            row.put("attinfos", map.get(row.getString("tagents_productid")));
         }
         return getSucReturnObject().setData(rows).saveToDataPool(10).toString();
     }