update
This commit is contained in:
parent
44ba741552
commit
c719d596ec
@ -65,13 +65,13 @@ class ProjectAttendanceRecordLists extends BaseAdminDataLists implements ListsSe
|
||||
$project = Project::field('name,project_code')->where('id',$item['project_id'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
$item['work_record_num_total'] = ProjectAttendanceDetail::field('id')->where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('work_record_num');
|
||||
$item['daily_salary_total'] = ProjectAttendanceDetail::field('id')->where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_salary');
|
||||
$item['daily_living_total'] = ProjectAttendanceDetail::field('id')->where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_living');
|
||||
$item['daily_subsidy_total'] = ProjectAttendanceDetail::field('id')->where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_subsidy');
|
||||
$item['daily_other_total'] = ProjectAttendanceDetail::field('id')->where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_other');
|
||||
$item['daily_income_total'] = ProjectAttendanceDetail::field('id')->where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_income');
|
||||
$item['cqrs'] = ProjectAttendanceDetail::field('id')->where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->count();
|
||||
$item['work_record_num_total'] = ProjectAttendanceDetail::where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('work_record_num');
|
||||
$item['daily_salary_total'] = ProjectAttendanceDetail::where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_salary');
|
||||
$item['daily_living_total'] = ProjectAttendanceDetail::where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_living');
|
||||
$item['daily_subsidy_total'] = ProjectAttendanceDetail::where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_subsidy');
|
||||
$item['daily_other_total'] = ProjectAttendanceDetail::where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_other');
|
||||
$item['daily_income_total'] = ProjectAttendanceDetail::where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->sum('daily_income');
|
||||
$item['cqrs'] = ProjectAttendanceDetail::where('attendance_id',$item['id'])->where('attendance_date',$item['attendance_date'])->count();
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user