|
|
@@ -25,17 +25,20 @@ public class live extends Controller {
|
|
|
//参展商
|
|
|
SQLFactory agentcountSql = new SQLFactory(this, "活动直播间总数查询");
|
|
|
agentcountSql.addParameter("tactivityid", tactivityid);
|
|
|
+ agentcountSql.addParameter("siteid", siteid);
|
|
|
Rows agentCountRows = agentcountSql.runSqlQuery();
|
|
|
resultObject.put("fagentcount", agentCountRows.isEmpty() ? 0 : agentCountRows.get(0).getInteger("fcount"));
|
|
|
|
|
|
//观众总人数
|
|
|
SQLFactory custcountSql = new SQLFactory(this, "活动直播间观众总数查询");
|
|
|
custcountSql.addParameter("tactivityid", tactivityid);
|
|
|
+ custcountSql.addParameter("siteid", siteid);
|
|
|
Rows totalcustCountrows = custcountSql.runSqlQuery();
|
|
|
resultObject.put("ftotalcustcount", totalcustCountrows.isEmpty() ? 0 : totalcustCountrows.get(0).getInteger("fcount"));
|
|
|
|
|
|
SQLFactory livecustcount = new SQLFactory(this, "当前线上观众人数查询");
|
|
|
livecustcount.addParameter("tactivityid", tactivityid);
|
|
|
+ livecustcount.addParameter("siteid", siteid);
|
|
|
Rows liverows = dbConnect.runSqlQuery(livecustcount.getSQL());
|
|
|
//正在直播数
|
|
|
resultObject.put("flivecount", liverows.size());
|
|
|
@@ -57,6 +60,7 @@ public class live extends Controller {
|
|
|
String tactivityid = content.getString("tactivityid");
|
|
|
SQLFactory agentlistSql = new SQLFactory(this, "热门展商");
|
|
|
agentlistSql.addParameter("tactivityid", tactivityid);
|
|
|
+ agentlistSql.addParameter("siteid", siteid);
|
|
|
Rows rows = agentlistSql.runSqlQuery();
|
|
|
RowsMap map = getAttachmentUrl("tactivity_agentmsg", rows.toArrayList("tactivity_agentmsgid"));
|
|
|
for (Row row : rows) {
|
|
|
@@ -73,9 +77,10 @@ public class live extends Controller {
|
|
|
public String prodList() {
|
|
|
this.siteid = content.getString("siteid");
|
|
|
String tactivityid = content.getString("tactivityid");
|
|
|
- SQLFactory agentlistSql = new SQLFactory(this, "热门展品");
|
|
|
- agentlistSql.addParameter("tactivityid", tactivityid);
|
|
|
- Rows rows = agentlistSql.runSqlQuery();
|
|
|
+ SQLFactory prodlistSql = new SQLFactory(this, "热门展品");
|
|
|
+ prodlistSql.addParameter("tactivityid", tactivityid);
|
|
|
+ prodlistSql.addParameter("siteid", siteid);
|
|
|
+ Rows rows = prodlistSql.runSqlQuery();
|
|
|
RowsMap map = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
|
|
|
for (Row row : rows) {
|
|
|
row.put("attinfos", map.get(row.getString("tagents_productid")));
|