更新到账信息

This commit is contained in:
yaooo 2023-11-08 09:18:40 +08:00
parent 747fe3a718
commit 10750f1628
1 changed files with 7 additions and 0 deletions

View File

@ -178,6 +178,13 @@ class FinanceIncome extends ApiController
->where(['i.inid'=>$id,'i.status'=>1])
->order('i.enter_time desc')
->select();
if($detail['file_ids'] !=''){
$fileArray = Db::name('File')->where('id','in',$detail['file_ids'])->select();
$detail['fileArray'] = $fileArray;
}
foreach($detail['income'] as $k=>$v) {
$detail['income'][$k]['enter_time'] = date('Y-m-d H:i:s', $v['enter_time']);
}
$detail['fileArray'] = [];
if($detail['file_ids'] !=''){
$fileArray = Db::name('File')->where('id','in',$detail['file_ids'])->select();