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
a5ddaeb7
authored
Jan 03, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
507d4c2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
app/Http/Services/DataService.php
app/Http/Services/DataService.php
View file @
a5ddaeb7
...
...
@@ -1241,7 +1241,8 @@ class DataService
$supplierList
=
SupplierChannelModel
::
whereNotIn
(
'supplier_code'
,
$inXslSupplierCodes
)
->
select
([
'supplier_id'
,
'channel_uid'
,
'supplier_code'
'supplier_code'
,
'region'
])
->
limit
(
$num
)
->
get
();
$adminUserService
=
new
AdminUserService
();
foreach
(
$supplierList
as
$key
=>
$supplier
)
{
...
...
@@ -1263,13 +1264,17 @@ class DataService
}
}
//判断是否已经存在,不存在就新增,存在就更新
$exist
=
SupplierContactModel
::
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
->
where
(
'can_check_uids'
,
$dataFollowersCodeId
)
->
value
(
'contact_id'
);
$exist
=
SupplierContactModel
::
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
->
whereIn
(
'can_check_uids'
,
[
'10009'
,
'10546'
])
->
value
(
'contact_id'
);
if
(
$exist
)
{
\dump
(
'供应商 :'
.
$supplier
[
'supplier_code'
]
.
' 存在'
.
$dataFollowersCodeId
.
' 直接更新'
);
if
(
$updateData
)
{
SupplierContactModel
::
where
(
'contact_id'
,
$exist
)
->
update
([
'channel_user_type'
=>
4
'channel_user_type'
=>
4
,
'can_check_uids'
=>
$dataFollowersCodeId
]);
}
}
else
{
...
...
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