Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
435111f0
authored
Apr 03, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改公用审核逻辑
parent
b7e41686
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
app/Http/Services/SupplierShareApplyService.php
app/Http/Services/SupplierShareApplyService.php
View file @
435111f0
...
...
@@ -132,10 +132,14 @@ class SupplierShareApplyService
'apply_user'
])
->
where
(
function
(
$q
)
use
(
$departmentId
)
{
//当要判断申请者所在部门的时候,要审核人为空,因为审核这一步是所在部门的人审核的
$q
->
where
(
'department_id'
,
$departmentId
)
->
where
(
'audit_uid'
,
0
);
// $q->where('department_id', $departmentId)->where('audit_uid', 0);
//情况有变,现在采购部老大又不在上一层了,所以直接不判断部门算了
$q
->
where
(
'audit_uid'
,
0
);
})
->
orWhere
(
function
(
$q
)
use
(
$departmentId
)
{
//当要判断申请者申请的部门的时候,要复审人为空,因为复审这一步是被申请部门的人审核的
$q
->
where
(
'apply_department_id'
,
$departmentId
)
->
where
(
'review_uid'
,
0
)
->
where
(
'audit_uid'
,
'!='
,
0
)
// $q->where('apply_department_id', $departmentId)->where('review_uid', 0)->where('audit_uid', '!=', 0)
//情况有变,现在采购部老大又不在上一层了,所以直接不判断部门算了
$q
->
where
(
'review_uid'
,
0
)
->
where
(
'audit_uid'
,
'!='
,
0
)
->
where
(
'status'
,
SupplierShareApplyModel
::
STATUS_NEED_REVIEW
);
})
->
orderBy
(
'id'
,
'desc'
);
$limit
=
request
()
->
get
(
'limit'
,
20
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment