Browse Source

活动商户排序、直播观看人数错误修复

沈静伟 3 years ago
parent
commit
450fe120f2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/dsb/com/cnd3b/restcontroller/customer/live/live.java

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/customer/live/live.java

@@ -362,6 +362,7 @@ public class live extends Controller {
         String channelid = content.getString("channelid");
         //String sql = "SELECT [count] FROM tlive_usercount WHERE [time]='" + getDateTime_Str() + "' AND channelid='" + channelid + "'";
         String sql = "select channelid,count as fcustcount from (select ROW_NUMBER()over(partition by t1.channelid order by t1.time desc)as num,t1.channelid,t1.count from tlive_usercount t1 where t1. channelid='" + channelid + "')t where t.num=1";
+        System.err.println(sql);
         Rows rows = dbConnect.runSqlQuery(sql);
         JSONObject resultObject = new JSONObject();
         resultObject.put("count", rows.isEmpty() ? 0 : rows.get(0).getLong("fcustcount"));