update
This commit is contained in:
parent
27e1740dea
commit
73a440ed38
@ -129,7 +129,7 @@
|
||||
public static function detail($params): array
|
||||
{
|
||||
$data = ProjectAttendanceDetail::findOrEmpty($params['id'])->toArray();
|
||||
$attendance = ProjectAttendanceRecord::field('attendance_code')->where('id', $params['attendance_id'])->findOrEmpty();
|
||||
$attendance = ProjectAttendanceRecord::field('attendance_code')->where('id', $data['attendance_id'])->findOrEmpty();
|
||||
$project = Project::field('name,project_code')->where('id', $data['project_id'])->findOrEmpty();
|
||||
$person = ProjectPersonnel::field('name,idcard,work_type')->where('id', $data['person_id'])->findOrEmpty();
|
||||
$data['attendance_code'] = $attendance['attendance_code'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user