|
@@ -6,7 +6,7 @@ class MysqlUserLiving(DbMysql):
|
6
|
6
|
super().__test__()
|
7
|
7
|
|
8
|
8
|
def get_living_info(self):
|
9
|
|
- sql = 'SELECT `room_id`,l.`uid`,u.`sec_uid` FROM douyin_live as l left join douyin_users as u on l.`uid`=u.`uid` WHERE `finish_time`=0 order by u.`follower_count` desc LIMIT 1'
|
|
9
|
+ sql = 'SELECT `room_id`,l.`uid`,u.`sec_uid` FROM douyin_live as l left join douyin_users as u on l.`uid`=u.`uid` WHERE `finish_time`=0 and `has_commerce_goods`=1 order by l.`sell_count_sum` desc LIMIT 1'
|
10
|
10
|
try:
|
11
|
11
|
# 查询数据
|
12
|
12
|
self.test.execute(sql)
|