更新细节
This commit is contained in:
parent
fd84b91a6a
commit
3c09f05bef
@ -128,9 +128,16 @@ class FinanceRefundApplyLogic extends BaseLogic
|
||||
$financeRefundApply = FinanceRefundApply::findOrEmpty($params['id']);
|
||||
$financeRefundApply->contract;
|
||||
$financeRefundApply->custom;
|
||||
$financeRefundApply->document = $financeRefundApply->contract->document;
|
||||
$financeRefundApply->project = $financeRefundApply->document->project;
|
||||
unset($financeRefundApply->contract->document, $financeRefundApply->document->project);
|
||||
$financeRefundApply->document = null;
|
||||
$financeRefundApply->project = null;
|
||||
if (!empty($financeRefundApply->contract->document)) {
|
||||
$financeRefundApply->document = $financeRefundApply->contract->document;
|
||||
unset($financeRefundApply->contract->document);
|
||||
}
|
||||
if (!empty($financeRefundApply->document->project)) {
|
||||
$financeRefundApply->project = $financeRefundApply->document->project;
|
||||
unset($financeRefundApply->document->project);
|
||||
}
|
||||
$financeRefundApply->annex = json_decode($financeRefundApply->annex, true);
|
||||
return $financeRefundApply->toArray();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user