|
|
@@ -283,8 +283,8 @@ class WorkClass extends BaseClass
|
|
|
$work->status = self::STATUS_COMPLETE;
|
|
|
$work->finishTime = date("Y-m-d H:i:s");
|
|
|
if (isset($staff) && !empty($staff)) {
|
|
|
- $currentStaffId = $staff->id ?? 0;
|
|
|
- $currentStaffName = $staff->name ?? '';
|
|
|
+ $currentStaffId = $staff['staffId'] ?? 0;
|
|
|
+ $currentStaffName = $staff['staffName'] ?? '';
|
|
|
} else {
|
|
|
$currentStaffId = $work->staffId ?? 0;
|
|
|
$currentStaffName = $work->staffName ?? '';
|