企微语料查询调整

This commit is contained in:
zren25
2025-03-24 16:21:35 +08:00
parent 2b16c69f8a
commit c1e44856e9
2 changed files with 11 additions and 10 deletions

View File

@@ -15,8 +15,8 @@
AND tovm.msg_time between #{statTime} and #{endTime}
AND tovm.chat_type = 0
GROUP BY
tovm.from_user_id,
tovm.accept_user_id
LEAST(tovm.from_user_id, tovm.accept_user_id),
GREATEST(tovm.from_user_id, tovm.accept_user_id);
) tab
</select>
@@ -33,8 +33,8 @@
AND tovm.msg_time between #{statTime} and #{endTime}
AND tovm.chat_type = 0
GROUP BY
tovm.from_user_id,
tovm.accept_user_id
LEAST(tovm.from_user_id, tovm.accept_user_id),
GREATEST(tovm.from_user_id, tovm.accept_user_id);
LIMIT #{offset}, #{pageSize}
</select>