From 3ad1cd2bb0394b499d1ab929efafcb96bcb1b1e7 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Sun, 18 Feb 2024 17:44:59 +0800 Subject: [PATCH] update --- app/adminapi/lists/oa/FlowApproveLists.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/adminapi/lists/oa/FlowApproveLists.php b/app/adminapi/lists/oa/FlowApproveLists.php index 7465589b5..a2fc70aeb 100644 --- a/app/adminapi/lists/oa/FlowApproveLists.php +++ b/app/adminapi/lists/oa/FlowApproveLists.php @@ -80,14 +80,14 @@ class FlowApproveLists extends BaseAdminDataLists implements ListsSearchInterfac break; } return FlowApprove::where($this->searchWhere)->where($where) - ->field(['id', 'title', 'flow_type_id', 'flow_id', 'content_id', 'path', 'create_user', 'check_status', 'create_time']) + ->field(['id', 'title', 'flow_id', 'content_id', 'path', 'create_user', 'check_status', 'create_time']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select()->each(function($data){ - //获取审批类型 - $flow_type = FlowType::field('title')->where('id',$data['flow_type_id'])->findOrEmpty(); //获取审批流程信息 - $flow = Flow::field('name,copy_uids')->where('id',$data['flow_id'])->findOrEmpty(); + $flow = Flow::field('name,copy_uids,flow_cate')->where('id',$data['flow_id'])->findOrEmpty(); + //获取审批类型 + $flow_type = FlowType::field('title')->where('id',$flow['flow_cate'])->findOrEmpty(); //获取创建人信息 $create_user = Admin::field('name')->where('id',$data['create_user'])->findOrEmpty(); //获取抄送人信息