Jelajahi Sumber

错误修复

沈静伟 4 tahun lalu
induk
melakukan
a79cd18eda

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/SQL/优质商品.sql

@@ -1,2 +1,3 @@
 select t1.tagents_productid,t1.tagentsid,t1.fintroduction,t1.fprodname,t1.fprodclassname from tagents_product t1
-where t1.fprodclassname=$saleprodclass$ and t1.siteid=$siteid$
+where --t1.fprodclassname=$saleprodclass$ and
+t1.siteid=$siteid$

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/homepage.java

@@ -147,6 +147,7 @@ public class homepage extends Controller {
     public String prodList() {
         SQLFactory prodlistSql = new SQLFactory(this, "ÓÅÖÊÉÌÆ·",pageSize,pageNumber,"t1.tagents_productid");
         prodlistSql.addParameter("siteid", siteid);
+        //prodlistSql.addParameter("saleprodclass", content.getString("saleprodclass"));
         Rows rows = prodlistSql.runSqlQuery();
         RowsMap map = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
         for (Row row : rows) {

+ 5 - 5
src/dsb/com/cnd3b/service/GetPolyvAnalysisBigData.java

@@ -22,13 +22,13 @@ public class GetPolyvAnalysisBigData extends BaseClass implements Runnable {
         try {
             if (new SQLiteJDBC().checkServicesUsed("GetPolyvAnalysisBigData", false)) {
                 System.err.println("start:getLiveData");
-                getLiveData();
+                getLiveData();//频道统计信息,占用资源少
                 System.err.println("start:getLiveviewLog");
-                getLiveviewLog();
+                getLiveviewLog();//观众信息,占用资源大
                 System.err.println("start:getLiveMessageList");
-                getLiveMessageList();
+                getLiveMessageList();//观众留言、占用资源较大
                 System.err.println("start:getSessionStats");
-                getSessionStats();
+                getSessionStats();//场次统计信息,占用资源少
             }
         } catch (Exception e) {
             e.printStackTrace();
@@ -101,7 +101,7 @@ public class GetPolyvAnalysisBigData extends BaseClass implements Runnable {
         GetPolyvAnalysisBigData getPolyvAnalysisBigData = new GetPolyvAnalysisBigData();
         Polyv polyv = new Polyv();
         //JSONObject object = polyv.getPageViewlog("2771246", getPolyvAnalysisBigData.getDate_Str(), "200", "1");
-        JSONArray object = polyv.getChannelSummary(new String[]{"2771246"}, "");
+        JSONArray object = polyv.getChannelSummary(new String[]{"2772308"}, "2022-01-08");
         System.err.println(object);
     }