|
|
@@ -206,13 +206,19 @@ class MasterWorkerTeamLogic extends BaseLogic
|
|
|
$start_time = strtotime($month.'-01');
|
|
|
$end_time = $start_time + 31 * 86400;
|
|
|
}
|
|
|
- $lists = ServiceWork::whereIn('master_worker_id',
|
|
|
+ // 临时测试数据UI 测试数据,正式上线去掉这段代码
|
|
|
+ $lists = ServiceWork::field('DATE(FROM_UNIXTIME(create_time)) as days, COUNT(id) as count_num')
|
|
|
+ ->where('create_time','between',[$start_time,$end_time])
|
|
|
+ ->group('DATE(FROM_UNIXTIME(create_time))')
|
|
|
+ ->order('create_time desc')
|
|
|
+ ->select()->toArray();
|
|
|
+ /*$lists = ServiceWork::whereIn('master_worker_id',
|
|
|
MasterWorker::where('team_id', $userInfo['team_id'])->where('team_role', 2)->column('id')
|
|
|
)->group('DATE(FROM_UNIXTIME(create_time))')
|
|
|
->field('DATE(FROM_UNIXTIME(create_time)) as days, COUNT(id) as count_num')
|
|
|
->where('create_time','between',[$start_time,$end_time])
|
|
|
->order('create_time desc')
|
|
|
- ->select()->toArray();
|
|
|
+ ->select()->toArray();*/
|
|
|
return array_column($lists,'count_num','days');
|
|
|
}
|
|
|
}
|