新增潜水排行
This commit is contained in:
@@ -724,6 +724,7 @@ class ContactsDBOperator(BaseDBOperator):
|
||||
WHEN latest_active_time IS NULL THEN 999999
|
||||
ELSE TIMESTAMPDIFF(DAY, latest_active_time, NOW())
|
||||
END AS inactivity_days
|
||||
, CASE WHEN latest_active_time IS NULL THEN 1 ELSE 0 END AS never_spoken
|
||||
FROM t_chatroom_member
|
||||
WHERE chatroom_id = %s
|
||||
AND (latest_active_time IS NULL OR latest_active_time <= DATE_SUB(NOW(), INTERVAL %s DAY))
|
||||
|
||||
Reference in New Issue
Block a user