perf: 年度报告接口 - 增加用户信息字段返回

This commit is contained in:
weifashi 2024-01-08 09:32:28 +08:00
parent 322a855ba2
commit 937bc4ead3

View File

@ -2080,7 +2080,10 @@ class UsersController extends AbstractController
{$prefix}d.name as dialog_name,
{$prefix}d.type as dialog_type,
{$prefix}d.group_type as dialog_group_type,
{$prefix}m.chat_num
{$prefix}m.chat_num,
{$prefix}u.userid,
{$prefix}u.email as user_email,
{$prefix}u.nickname as user_nickname
")
->leftJoinSub(function ($query) use ($user, $year) {
$query->select('web_socket_dialog_msgs.dialog_id', DB::raw('count(*) as chat_num'))