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
c9e2e736
authored
Jun 14, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
批量修改内部编码采购员判断
parent
29ae6936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
app/Http/Controllers/Api/SkuApiController.php
app/Http/Controllers/Api/SkuApiController.php
View file @
c9e2e736
...
@@ -10,6 +10,7 @@ use App\Http\Transformers\SupplierContactTransformer;
...
@@ -10,6 +10,7 @@ use App\Http\Transformers\SupplierContactTransformer;
use
App\Http\Validators\SupplierContactValidator
;
use
App\Http\Validators\SupplierContactValidator
;
use
App\Model\RedisModel
;
use
App\Model\RedisModel
;
use
App\Model\SkuUploadLogModel
;
use
App\Model\SkuUploadLogModel
;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierContactModel
;
use
App\Model\SupplierContactModel
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
...
@@ -98,6 +99,12 @@ class SkuApiController extends Controller
...
@@ -98,6 +99,12 @@ class SkuApiController extends Controller
if
(
empty
(
$encoded
))
{
if
(
empty
(
$encoded
))
{
$this
->
response
(
-
1
,
'请选择供内部编码(采购员)'
);
$this
->
response
(
-
1
,
'请选择供内部编码(采购员)'
);
}
}
//判断采购员是否属于该供应商
$flag
=
SupplierChannelModel
::
where
(
'supplier_code'
,
$canal
)
->
where
(
'channel_uid'
,
'like'
,
"%
$encoded
%"
)
->
exists
();
if
(
!
$flag
)
{
$this
->
response
(
-
1
,
'选择的采购员不属于该供应商,请重新选择'
);
}
$data
=
[
$data
=
[
'canal'
=>
$canal
,
'canal'
=>
$canal
,
"encoded"
=>
$encoded
,
"encoded"
=>
$encoded
,
...
...
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