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
8024c113
authored
Nov 20, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加黑名单逻辑
parent
d1a3e94a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
app/Http/Controllers/Sync/SupplierSyncController.php
app/Http/Controllers/Sync/SupplierSyncController.php
View file @
8024c113
...
@@ -70,6 +70,18 @@ class SupplierSyncController extends BaseSyncController
...
@@ -70,6 +70,18 @@ class SupplierSyncController extends BaseSyncController
$this
->
syncResponse
(
-
1
,
$error
);
$this
->
syncResponse
(
-
1
,
$error
);
}
}
//这里还要去判断是是拉黑
if
(
true
)
{
$data
[
'status'
]
=
SupplierChannelModel
::
STATUS_BLOCK
;
$data
[
'block_reason'
]
=
'一体化系统黑名单供应商'
;
$data
[
'update_time'
]
=
time
();
$result
=
SupplierChannelModel
::
where
(
'supplier_name'
,
$resultData
[
'company_name'
])
->
update
(
$data
);
if
(
$result
)
{
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
}
}
(
new
SyncSupplierService
())
->
receiveEntityResult
(
$resultData
[
'company_name'
],
$resultData
[
'result'
]);
(
new
SyncSupplierService
())
->
receiveEntityResult
(
$resultData
[
'company_name'
],
$resultData
[
'result'
]);
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
...
@@ -94,7 +106,7 @@ class SupplierSyncController extends BaseSyncController
...
@@ -94,7 +106,7 @@ class SupplierSyncController extends BaseSyncController
$model
=
new
SupplierChannelModel
();
$model
=
new
SupplierChannelModel
();
$query
=
$model
->
orderBy
(
'update_time'
,
'desc'
);
$query
=
$model
->
orderBy
(
'update_time'
,
'desc'
);
$filter
=
new
SupplierFilter
();
$filter
=
new
SupplierFilter
();
$params
=
$request
->
except
(
'user'
,
'perms'
);
$params
=
$request
->
except
(
'user'
,
'perms'
);
$params
[
'need_audit'
]
=
1
;
$params
[
'need_audit'
]
=
1
;
$params
[
'source_type'
]
=
'all'
;
$params
[
'source_type'
]
=
'all'
;
$query
=
$filter
->
listFilter
(
$params
,
$query
);
$query
=
$filter
->
listFilter
(
$params
,
$query
);
...
...
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