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
5fbcd9a6
authored
Jul 12, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
审核校验跳过助理用户id
parent
11663ccf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
app/Http/Services/SupplierAuditService.php
config/field.php
app/Http/Services/SupplierAuditService.php
View file @
5fbcd9a6
...
...
@@ -138,6 +138,8 @@ class SupplierAuditService
if
(
checkPerm
(
'IgnoreAuditCheck'
))
{
return
true
;
}
$supplierModel
=
new
SupplierChannelModel
();
$supplier
=
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
first
()
->
toArray
();
$auditUserId
=
request
()
->
user
->
userId
;
...
...
@@ -156,6 +158,12 @@ class SupplierAuditService
return
true
;
}
}
//专门给采购助理这个账号要做特殊逻辑,采购系统那边没有按照正常流程去判断,导致这个账号的部门分布完全不合理,所以供应商系统这边只能恶心自己去加特殊跳过了
if
(
$lastUpdateUserId
==
config
(
'field.AssistantUserId'
))
{
return
true
;
}
//审批人只能审批自己的部下修改的供应商
$departmentService
=
new
DepartmentService
();
$subordinateUserIds
=
$departmentService
->
getSubordinateUserIds
(
$auditUserId
);
...
...
config/field.php
View file @
5fbcd9a6
...
...
@@ -181,5 +181,8 @@ return [
'分销平台'
=>
'分销平台'
,
'代工厂'
=>
'代工厂'
,
],
'NeedCheckCompanyRegion'
=>
[
2
,
4
]
'NeedCheckCompanyRegion'
=>
[
2
,
4
],
//专门给采购助理这个账号要做特殊逻辑,采购系统那边没有按照正常流程去判断,导致这个账号的部门分布完全不合理,所以供应商系统这边只能恶心自己去加特殊跳过了
'AssistantUserId'
=>
1635
,
];
\ No newline at end of file
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