更新细节
This commit is contained in:
parent
12c0e4cb1e
commit
a0c1a0eb07
@ -115,7 +115,6 @@ class RedemptionBillLogic extends BaseLogic
|
||||
*/
|
||||
public static function detail($params): array
|
||||
{
|
||||
return RedemptionBill::findOrEmpty($params['id'])->toArray();
|
||||
$redemptionBill = RedemptionBill::findOrEmpty($params['id']);
|
||||
$redemptionBill->org;
|
||||
$redemptionBill->dept;
|
||||
|
@ -40,7 +40,7 @@ class RedemptionBill extends BaseModel
|
||||
public function org()
|
||||
{
|
||||
return $this->hasOne(\app\common\model\dept\Orgs::class, 'id', 'org_id');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 关联dept
|
||||
@ -51,7 +51,7 @@ class RedemptionBill extends BaseModel
|
||||
public function dept()
|
||||
{
|
||||
return $this->hasOne(\app\common\model\dept\Dept::class, 'id', 'dept_id');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 关联acceptance
|
||||
@ -62,6 +62,6 @@ class RedemptionBill extends BaseModel
|
||||
public function acceptance()
|
||||
{
|
||||
return $this->hasOne(\app\common\model\bill\AcceptanceBill::class, 'id', 'acceptance_bill_id');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user