mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
perf: 年度报告接口 - 查询条件优化
This commit is contained in:
parent
24d90b93e2
commit
e53242613b
@ -2115,7 +2115,7 @@ class UsersController extends AbstractController
|
||||
'latest_online_time' => date(
|
||||
'Y-m-d H:i:s',
|
||||
UserCheckinRecord::whereUserid($user->userid)
|
||||
->whereYear('created_at', $year)
|
||||
->whereYear(DB::raw('from_unixtime(report_time)'), $year)
|
||||
->where(function ($query) {
|
||||
$query->where(function ($query) {
|
||||
$query->whereRaw('HOUR(FROM_UNIXTIME(report_time)) < 6');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user