Browse Source

社区代理点统计-修改查询

master
liangyuyan 5 years ago
parent
commit
7f215dddfc
  1. 3
      app/Admin/Repositories/v3/ReportCommunity.php

3
app/Admin/Repositories/v3/ReportCommunity.php

@ -112,7 +112,6 @@ class ReportCommunity extends EloquentRepository
->orWhere('user_id', '=', $employee['user_id']);
})
->get()
// ->map(function ($value) {return (array)$value;})
->toArray();
// 新增绑定用户数 Statistics
@ -126,7 +125,6 @@ class ReportCommunity extends EloquentRepository
$allCsBindUsers = UserRelationBindModel::where('bind_type', '=', 1)
->whereIn('source_id', array_values(array_column($allCsInfos, 'admin_user_id')))
->get()
// ->map(function ($value) {return (array)$value;})
->toArray();
// 平台新增用户数 Statistics
@ -137,7 +135,6 @@ class ReportCommunity extends EloquentRepository
->groupBy('user_id')
->havingRaw('MIN(created_at)>='.strtotime($startTime).' AND MIN(created_at)<='.strtotime($endTime).'')
->get()
->map(function ($value) {return (array)$value;})
->toArray();
$platNewUserCount = count($platNewUsers);

Loading…
Cancel
Save