更新细节

This commit is contained in:
yaooo 2023-12-22 14:32:01 +08:00
parent 3bfa3958fc
commit 142cbe6eb5
2 changed files with 12 additions and 0 deletions

View File

@ -186,6 +186,8 @@ class ExpenseReimbursementLogic extends BaseLogic
$expenseReimbursement->detail;
$expenseReimbursement->invoice;
$expenseReimbursement->custom;
$expenseReimbursement->org;
$expenseReimbursement->dept;
return $expenseReimbursement->toArray();
}
}

View File

@ -58,4 +58,14 @@ class ExpenseReimbursement extends BaseModel
return $this->belongsTo(\app\common\model\custom\Custom::class, 'customer_id');
}
public function org()
{
return $this->hasOne(\app\common\model\dept\Orgs::class, 'id', 'org_id');
}
public function dept()
{
return $this->hasOne(\app\common\model\dept\Dept::class, 'id', 'dept_id');
}
}