瀏覽代碼

直播相关返回品牌名

吴志根 3 年之前
父節點
當前提交
e2380ed456

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

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

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/展会直播详情.sql

@@ -20,7 +20,8 @@ select t1.tliveid,
        t1.secretkey,
        t1.livestatus,
        t1.channelcoverimageurl,
-       t3.ftitle
+       t3.ftitle,
+       t2.fbrand
 from tlive t1
          inner join tagents t2 on t1.siteid = t2.siteid and t1.tagentsid = t2.tagentsid
          inner join tactivity t3 on t1.siteid = t3.siteid and t1.tactivityid = t3.tactivityid and t3.fstatus = '»î¶¯ÖÐ'

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/直播列表查询.sql

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

+ 27 - 5
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/直播详情查询.sql

@@ -1,5 +1,27 @@
-select t1.tliveid, t1.siteid, t1.createby, t1.changeby, t1.createdate, t1.changedate,
-       t1.tactivityid, t1.tliveapplyid, t1.tagentsid, t1.fliveurl_web,t1.fliveurl_client, t1.fliveshowurl,
-       t1.categoryid,t1.categoryname, t1.channelname, t1.channelpasswd, t1.channelid,t1.fassistanturl,t1.fisneedauth,t1.secretkey,t1.livestatus,t1.channelcoverimageurl from tlive t1
-inner join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
-where t1.siteid=$siteid$ and t1.tliveid=$tliveid$
+select t1.tliveid,
+       t1.siteid,
+       t1.createby,
+       t1.changeby,
+       t1.createdate,
+       t1.changedate,
+       t1.tactivityid,
+       t1.tliveapplyid,
+       t1.tagentsid,
+       t1.fliveurl_web,
+       t1.fliveurl_client,
+       t1.fliveshowurl,
+       t1.categoryid,
+       t1.categoryname,
+       t1.channelname,
+       t1.channelpasswd,
+       t1.channelid,
+       t1.fassistanturl,
+       t1.fisneedauth,
+       t1.secretkey,
+       t1.livestatus,
+       t1.channelcoverimageurl,
+       t2.fbrand
+from tlive t1
+         inner join tagents t2 on t1.siteid = t2.siteid and t1.tagentsid = t2.tagentsid
+where t1.siteid = $siteid$
+  and t1.tliveid = $tliveid$

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/customer/live/SQL/私域直播详情.sql

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

+ 30 - 7
src/dsb/com/cnd3b/restcontroller/enterprise/live/SQL/直播列表查询.sql

@@ -1,7 +1,30 @@
-select t1.tliveid, t1.siteid, t1.createby, t1.changeby, t1.createdate, t1.changedate,
-       t1.tactivityid, t1.tliveapplyid, t1.tagentsid, t1.fliveurl_web,t1.fliveurl_client, t1.fliveshowurl,
-       t1.categoryid,t1.categoryname, t1.channelname, t1.channelpasswd, t1.channelid,t1.fassistanturl,t1.fisneedauth,
-       t1.secretkey,t1.livestatus,t1.channelcoverimageurl,t3.ftitle,t2.fbrand,t2.fagentname from tlive t1
-inner join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
-left join tactivity t3 on t1.siteid=t3.siteid and t1.tactivityid=t3.tactivityid
-where t1.siteid=$siteid$ and $where$
+select t1.tliveid,
+       t1.siteid,
+       t1.createby,
+       t1.changeby,
+       t1.createdate,
+       t1.changedate,
+       t1.tactivityid,
+       t1.tliveapplyid,
+       t1.tagentsid,
+       t1.fliveurl_web,
+       t1.fliveurl_client,
+       t1.fliveshowurl,
+       t1.categoryid,
+       t1.categoryname,
+       t1.channelname,
+       t1.channelpasswd,
+       t1.channelid,
+       t1.fassistanturl,
+       t1.fisneedauth,
+       t1.secretkey,
+       t1.livestatus,
+       t1.channelcoverimageurl,
+       t3.ftitle,
+       t2.fbrand,
+       t2.fagentname
+from tlive t1
+         inner join tagents t2 on t1.siteid = t2.siteid and t1.tagentsid = t2.tagentsid
+         left join tactivity t3 on t1.siteid = t3.siteid and t1.tactivityid = t3.tactivityid
+where t1.siteid = $siteid$
+  and $where$

+ 20 - 4
src/dsb/com/cnd3b/restcontroller/enterprise/live/SQL/直播申请列表查询.sql

@@ -1,4 +1,20 @@
-select t1.tliveapplyid,t1.createby,t1.createdate,t1.siteid,t1.changeby,t1.changedate,
-t1.tagentsid,t1.tactivityid,t1.checkby,t1.checkdate,t1.fstatus,t1.fnotes,t1.fissecret,t2.tliveid,t2.channelid,t3.fagentname,t3.fbrand from tliveapply t1
-left join tlive t2 on t1.tliveapplyid=t2.tliveapplyid and t1.siteid=t2.siteid
-left join tagents t3 on t1.siteid=t3.siteid and t1.tagentsid=t3.tagentsid
+select t1.tliveapplyid,
+       t1.createby,
+       t1.createdate,
+       t1.siteid,
+       t1.changeby,
+       t1.changedate,
+       t1.tagentsid,
+       t1.tactivityid,
+       t1.checkby,
+       t1.checkdate,
+       t1.fstatus,
+       t1.fnotes,
+       t1.fissecret,
+       t2.tliveid,
+       t2.channelid,
+       t3.fagentname,
+       t3.fbrand
+from tliveapply t1
+         left join tlive t2 on t1.tliveapplyid = t2.tliveapplyid and t1.siteid = t2.siteid
+         left join tagents t3 on t1.siteid = t3.siteid and t1.tagentsid = t3.tagentsid

+ 30 - 7
src/dsb/com/cnd3b/restcontroller/enterprise/live/SQL/直播详情查询.sql

@@ -1,7 +1,30 @@
-select t1.tliveid, t1.siteid, t1.createby, t1.changeby, t1.createdate, t1.changedate,
-       t1.tactivityid, t1.tliveapplyid, t1.tagentsid, t1.fliveurl_web,t1.fliveurl_client, t1.fliveshowurl,
-       t1.categoryid,t1.categoryname, t1.channelname, t1.channelpasswd, t1.channelid,t1.fassistanturl,t1.fisneedauth,
-       t1.secretkey,t1.livestatus,t1.channelcoverimageurl,t3.ftitle,t2.fbrand,t2.fagentname from tlive t1
-inner join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
-left join tactivity t3 on t1.siteid=t3.siteid and t1.tactivityid=t3.tactivityid
-where t1.siteid=$siteid$ and t1.tliveid=$tliveid$
+select t1.tliveid,
+       t1.siteid,
+       t1.createby,
+       t1.changeby,
+       t1.createdate,
+       t1.changedate,
+       t1.tactivityid,
+       t1.tliveapplyid,
+       t1.tagentsid,
+       t1.fliveurl_web,
+       t1.fliveurl_client,
+       t1.fliveshowurl,
+       t1.categoryid,
+       t1.categoryname,
+       t1.channelname,
+       t1.channelpasswd,
+       t1.channelid,
+       t1.fassistanturl,
+       t1.fisneedauth,
+       t1.secretkey,
+       t1.livestatus,
+       t1.channelcoverimageurl,
+       t3.ftitle,
+       t2.fbrand,
+       t2.fagentname
+from tlive t1
+         inner join tagents t2 on t1.siteid = t2.siteid and t1.tagentsid = t2.tagentsid
+         left join tactivity t3 on t1.siteid = t3.siteid and t1.tactivityid = t3.tactivityid
+where t1.siteid = $siteid$
+  and t1.tliveid = $tliveid$