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
9ece2044
authored
Jan 04, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
6c7cebeb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
app/Console/Commands/SetSupplierFollowUp.php
app/Http/Services/DataService.php
app/Console/Commands/SetSupplierFollowUp.php
View file @
9ece2044
...
@@ -36,6 +36,6 @@ class SetSupplierFollowUp extends Command
...
@@ -36,6 +36,6 @@ class SetSupplierFollowUp extends Command
//DealImageService::dealNewsImage();
//DealImageService::dealNewsImage();
//DealImageService::dealNewsImage();
//DealImageService::dealNewsImage();
//DealImageService::dealSkuDetailAndImage();
//DealImageService::dealSkuDetailAndImage();
DataService
::
fixSupplierContacts
(
true
,
40
0
);
DataService
::
replaceInventoryUser
(
false
,
1
0
);
}
}
}
}
app/Http/Services/DataService.php
View file @
9ece2044
...
@@ -1485,7 +1485,7 @@ class DataService
...
@@ -1485,7 +1485,7 @@ class DataService
// 2、附件表格里面,跟单采购员全部改为欧阳海梅,需要判断
// 2、附件表格里面,跟单采购员全部改为欧阳海梅,需要判断
// 1.3号之前黄瑜娜存在在联系人信息里,则更改黄瑜娜类型为猎芯采购
// 1.3号之前黄瑜娜存在在联系人信息里,则更改黄瑜娜类型为猎芯采购
// 1.3号之后黄瑜娜存在在联系人信息里,则把黄瑜娜删掉,改成欧阳海梅,表格见附件
// 1.3号之后黄瑜娜存在在联系人信息里,则把黄瑜娜删掉,改成欧阳海梅,表格见附件
public
static
function
replaceInventoryUser
(
$updateData
=
false
)
public
static
function
replaceInventoryUser
(
$updateData
=
false
,
$num
=
10
)
{
{
ini_set
(
'memory_limit'
,
-
1
);
ini_set
(
'memory_limit'
,
-
1
);
// 从CSV文件读取历史供应商数据
// 从CSV文件读取历史供应商数据
...
@@ -1541,7 +1541,7 @@ class DataService
...
@@ -1541,7 +1541,7 @@ class DataService
}
}
}
}
fclose
(
$stream
);
fclose
(
$stream
);
$historicalSuppliers
=
array_slice
(
$historicalSuppliers
,
0
,
$num
,
true
);
// 2、附件表格里面,跟单采购员全部改为欧阳海梅,需要判断
// 2、附件表格里面,跟单采购员全部改为欧阳海梅,需要判断
// 1.3号之前黄瑜娜存在在联系人信息里,则更改黄瑜娜类型为猎芯采购
// 1.3号之前黄瑜娜存在在联系人信息里,则更改黄瑜娜类型为猎芯采购
// 1.3号之后黄瑜娜存在在联系人信息里,则把黄瑜娜删掉,改成欧阳海梅,表格见附件
// 1.3号之后黄瑜娜存在在联系人信息里,则把黄瑜娜删掉,改成欧阳海梅,表格见附件
...
@@ -1556,7 +1556,7 @@ class DataService
...
@@ -1556,7 +1556,7 @@ class DataService
}
}
$newExist
=
SupplierContactModel
::
where
(
'supplier_id'
,
$supplierId
)
->
where
(
'can_check_uids'
,
'10326'
)
->
where
(
'channel_user_type'
,
4
)
$newExist
=
SupplierContactModel
::
where
(
'supplier_id'
,
$supplierId
)
->
where
(
'can_check_uids'
,
'10326'
)
->
where
(
'channel_user_type'
,
4
)
->
where
(
'add_time'
,
'>'
,
strtotime
(
'2025-01-02'
))
->
first
();
->
where
(
'add_time'
,
'>'
,
strtotime
(
'2025-01-02'
))
->
first
();
if
(
$newExist
)
{
if
(
$newExist
)
{
\dump
(
'黄瑜娜已存在,替换成欧阳海梅'
);
\dump
(
'黄瑜娜已存在,替换成欧阳海梅'
);
...
@@ -1567,7 +1567,7 @@ class DataService
...
@@ -1567,7 +1567,7 @@ class DataService
]);
]);
}
}
}
else
{
}
else
{
$existingContact
=
SupplierContactModel
::
where
(
'supplier_id'
,
$supplierId
)
->
where
(
'can_check_uids'
,
$followerCodeId
)
->
where
(
'channel_user_type'
,
1
)
$existingContact
=
SupplierContactModel
::
where
(
'supplier_id'
,
$supplierId
)
->
where
(
'can_check_uids'
,
$followerCodeId
)
->
where
(
'channel_user_type'
,
1
)
->
first
();
->
first
();
if
(
$existingContact
)
{
if
(
$existingContact
)
{
// 如果欧阳海梅已存在,修改类型
// 如果欧阳海梅已存在,修改类型
...
...
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