update
This commit is contained in:
parent
a6b8a2259f
commit
96cdd209b3
@ -109,6 +109,14 @@
|
||||
}
|
||||
|
||||
public function lists(){
|
||||
|
||||
$params = $this->request->get(['invoice_id']);
|
||||
if(empty($params['id'])){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$data = Db::name('oa_invoice_income')->where('inid',$params['invoice_id'])->order('create_time desc')->select()->each(function($data){
|
||||
$data['enter_time'] = date('Y-m-d',$data['enter_time']);
|
||||
$data['admin_name'] = Admin::where('id',$data['admin_id'])?->value('name');
|
||||
});
|
||||
return $this->data($data);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user