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