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
d1f5bcd7
authored
Jun 09, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化代码
parent
83beea0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
16 deletions
app/Http/Services/SupplierService.php
app/Http/Services/SupplierService.php
View file @
d1f5bcd7
...
...
@@ -22,6 +22,7 @@ class SupplierService
public
$newSupplierId
=
0
;
//获取供应商列表
public
function
getSupplierList
(
$map
)
{
$model
=
new
SupplierChannelModel
();
...
...
@@ -43,6 +44,7 @@ class SupplierService
return
$list
;
}
public
function
getSupplier
(
$supplierId
,
$getExtraInfo
=
false
)
{
$model
=
new
SupplierChannelModel
();
...
...
@@ -57,6 +59,7 @@ class SupplierService
}
public
function
saveSupplier
(
$channel
)
{
$supplierTransformer
=
new
SupplierTransformer
();
...
...
@@ -671,22 +674,6 @@ class SupplierService
return
true
;
}
//申请审核供应商
public
function
applyInReviewSupplier
(
$supplierId
,
$channel
)
{
$model
=
new
SupplierChannelModel
();
$needAudit
=
(
new
SupplierAuditService
())
->
checkNeedAudit
(
$supplierId
,
$channel
);
$result
=
$model
->
where
(
'supplier_id'
,
$data
[
'supplier_id'
])
->
update
([
'update_time'
=>
time
(),
'apply_audit_reason'
=>
$data
[
'apply_audit_reason'
],
'status'
=>
SupplierChannelModel
::
STATUS_IN_REVIEW
]);
if
(
!
$result
)
{
return
$result
;
}
return
true
;
}
//判断是否自动转正,并且还要修改为待提审状态给相关人员进行补充资料
public
function
autoChangeIsType
(
$supplier
)
{
...
...
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