mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 04:32:49 +00:00
perf: 年度报告接口 - 增加用户信息字段返回
This commit is contained in:
parent
322a855ba2
commit
937bc4ead3
@ -2080,7 +2080,10 @@ class UsersController extends AbstractController
|
|||||||
{$prefix}d.name as dialog_name,
|
{$prefix}d.name as dialog_name,
|
||||||
{$prefix}d.type as dialog_type,
|
{$prefix}d.type as dialog_type,
|
||||||
{$prefix}d.group_type as dialog_group_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) {
|
->leftJoinSub(function ($query) use ($user, $year) {
|
||||||
$query->select('web_socket_dialog_msgs.dialog_id', DB::raw('count(*) as chat_num'))
|
$query->select('web_socket_dialog_msgs.dialog_id', DB::raw('count(*) as chat_num'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user