This commit is contained in:
weiz 2024-05-27 19:40:07 +08:00
parent ba95e6bb9d
commit ce3f2378cf

View File

@ -180,7 +180,7 @@
}else{
$where[] = ['check_status','in','0,1,2,3,4,5,10'];
}
$lists = Db::name('oa_invoice')->field('id,type,invoice_subject,amount,invoice_type,check_status,admin_id,create_time,check_admin_ids,open_admin_id,open_time,code')->where('admin_id',$this->adminId)->where($where)
$lists = Db::name('oa_invoice')->field('id,type,invoice_title,invoice_subject,amount,invoice_type,check_status,admin_id,create_time,check_admin_ids,open_admin_id,open_time,code')->where('admin_id',$this->adminId)->where($where)
->page($page_no, $page_size)->order('id desc')->select()->each(function($data){
$admin = Admin::field('name,dept_id')->where('id',$data['admin_id'])->findOrEmpty();
$dept = Dept::where('id',$admin['dept_id'])->value('name');