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
d29646e4
authored
Mar 12, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
忽略复审步骤
parent
0a5b65ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
.gitignore
app/Http/Services/SupplierAuditService.php
.gitignore
View file @
d29646e4
...
@@ -7,3 +7,4 @@ Homestead.json
...
@@ -7,3 +7,4 @@ Homestead.json
/.history
/.history
/vendor/_laravel_idea/*
/vendor/_laravel_idea/*
/vendor/_laravel_idea
/vendor/_laravel_idea
/storage/framework/views
\ No newline at end of file
app/Http/Services/SupplierAuditService.php
View file @
d29646e4
...
@@ -19,10 +19,10 @@ class SupplierAuditService
...
@@ -19,10 +19,10 @@ class SupplierAuditService
$supplier
=
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
first
()
->
toArray
();
$supplier
=
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
first
()
->
toArray
();
//如果需要复审并且审核状态为审核中,则代表这次审核为第一次审核或者供应商类型从临时修改为正式
//如果需要复审并且审核状态为审核中,则代表这次审核为第一次审核或者供应商类型从临时修改为正式
if
(
$supplier
[
'status'
]
==
SupplierChannelModel
::
STATUS_IN_REVIEW
&&
$supplier
[
'need_review'
]
==
1
)
{
if
(
$supplier
[
'status'
]
==
SupplierChannelModel
::
STATUS_IN_REVIEW
&&
$supplier
[
'need_review'
]
==
1
)
{
//第一次审核,通过是将审核状态置为待复审
//第一次审核,通过是将审核状态置为待复审
(现在要改成直接通过复审了)
//通过
//通过
if
(
$status
==
SupplierChannelModel
::
STATUS_PASSED
)
{
if
(
$status
==
SupplierChannelModel
::
STATUS_PASSED
)
{
$dbStatus
=
SupplierChannelModel
::
STATUS_
NEED_REVIEW
;
$dbStatus
=
SupplierChannelModel
::
STATUS_
PASSED
;
}
else
{
}
else
{
//不通过
//不通过
$dbStatus
=
$status
;
$dbStatus
=
$status
;
...
@@ -30,6 +30,7 @@ class SupplierAuditService
...
@@ -30,6 +30,7 @@ class SupplierAuditService
$update
=
[
$update
=
[
'update_time'
=>
time
(),
'update_time'
=>
time
(),
'status'
=>
$dbStatus
,
'status'
=>
$dbStatus
,
'need_review'
=>
0
,
'reject_reason'
=>
$rejectReason
,
'reject_reason'
=>
$rejectReason
,
];
];
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
(
$update
);
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
(
$update
);
...
@@ -51,8 +52,8 @@ class SupplierAuditService
...
@@ -51,8 +52,8 @@ class SupplierAuditService
'reject_reason'
=>
$rejectReason
,
'reject_reason'
=>
$rejectReason
,
]);
]);
}
}
//剩下的就是普通的审核
}
else
{
}
else
{
//剩下的就是普通的审核
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'update_time'
=>
time
(),
'update_time'
=>
time
(),
'status'
=>
$status
,
'status'
=>
$status
,
...
...
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