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
79255e14
authored
Aug 05, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改审核后的状态
parent
f69a1d67
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
app/Http/Controllers/Api/SupplierApiController.php
app/Http/Controllers/Api/SupplierReceiptApiController.php
app/Http/Services/BlacklistService.php
app/Http/Services/SupplierContactService.php
app/Http/Services/SupplierService.php
app/Http/Controllers/Api/SupplierApiController.php
View file @
79255e14
...
...
@@ -390,7 +390,7 @@ class SupplierApiController extends Controller
//修改供应商状态
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'update_time'
=>
time
(),
'status'
=>
SupplierChannelModel
::
STATUS_
IN_REVIEW
,
'status'
=>
SupplierChannelModel
::
STATUS_
PENDING
,
]);
$adminService
=
new
AdminUserService
();
$user
=
$adminService
->
getAdminUserInfoByCodeId
(
$channelUid
);
...
...
@@ -448,7 +448,7 @@ class SupplierApiController extends Controller
$supplierId
=
$request
->
get
(
'supplier_id'
);
$channelModel
=
new
SupplierChannelModel
();
$result
=
$channelModel
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'status'
=>
1
,
'status'
=>
SupplierChannelModel
::
STATUS_IN_REVIEW
,
'update_time'
=>
time
(),
]);
if
(
$result
)
{
...
...
app/Http/Controllers/Api/SupplierReceiptApiController.php
View file @
79255e14
...
...
@@ -81,7 +81,7 @@ class SupplierReceiptApiController extends Controller
//修改供应商为审核状态
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'update_time'
=>
time
(),
'status'
=>
1
,
'status'
=>
SupplierChannelModel
::
STATUS_PENDING
,
]);
}
...
...
app/Http/Services/BlacklistService.php
View file @
79255e14
...
...
@@ -15,7 +15,7 @@ class BlacklistService
{
$supplierModel
=
new
SupplierChannelModel
();
$result
=
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'status'
=>
-
3
,
'status'
=>
SupplierChannelModel
::
STATUS_BLOCK
,
'update_time'
=>
time
(),
]);
if
(
$result
)
{
...
...
app/Http/Services/SupplierContactService.php
View file @
79255e14
...
...
@@ -94,7 +94,7 @@ class SupplierContactService
//修改供应商为审核状态
$supplierModel
->
where
(
'supplier_id'
,
$contact
[
'supplier_id'
])
->
update
([
'update_time'
=>
time
(),
'status'
=>
1
,
'status'
=>
SupplierChannelModel
::
STATUS_PENDING
,
]);
}
...
...
app/Http/Services/SupplierService.php
View file @
79255e14
...
...
@@ -130,7 +130,7 @@ class SupplierService
$auditService
=
new
SupplierAuditService
();
$needAudit
=
$auditService
->
checkNeedAudit
(
$supplierId
,
$channel
,
$attachment
);
if
(
$needAudit
)
{
$channel
[
'status'
]
=
SupplierChannelModel
::
STATUS_
IN_REVIEW
;
$channel
[
'status'
]
=
SupplierChannelModel
::
STATUS_
PENDING
;
}
$channel
[
'update_time'
]
=
time
();
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
(
$channel
);
...
...
@@ -368,7 +368,7 @@ class SupplierService
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'update_time'
=>
time
(),
'is_type'
=>
$isType
,
'status'
=>
1
,
'status'
=>
SupplierChannelModel
::
STATUS_PENDING
,
]);
if
(
$result
)
{
$logService
=
new
LogService
();
...
...
@@ -408,7 +408,7 @@ class SupplierService
foreach
(
$supplierIds
as
$supplierId
)
{
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'update_time'
=>
time
(),
'status'
=>
1
'status'
=>
SupplierChannelModel
::
STATUS_IN_REVIEW
]);
if
(
!
$result
)
{
return
$result
;
...
...
@@ -424,7 +424,7 @@ class SupplierService
$model
=
new
SupplierChannelModel
();
$model
->
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
->
update
([
'update_time'
=>
time
(),
'status'
=>
0
,
'status'
=>
SupplierChannelModel
::
STATUS_PENDING
,
'is_type'
=>
0
]);
}
...
...
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