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
299865c1
authored
Jan 03, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调试脚本
parent
ce33544a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
app/Console/Commands/SetSupplierFollowUp.php
app/Http/Services/DataService.php
app/Console/Commands/SetSupplierFollowUp.php
View file @
299865c1
...
...
@@ -36,6 +36,6 @@ class SetSupplierFollowUp extends Command
//DealImageService::dealNewsImage();
//DealImageService::dealNewsImage();
//DealImageService::dealSkuDetailAndImage();
DataService
::
reInitSupplierCpTime
(
);
DataService
::
initHistoricalSupplierData
(
true
,
20000
);
}
}
app/Http/Services/DataService.php
View file @
299865c1
...
...
@@ -957,7 +957,7 @@ class DataService
* 2. 根据区域分配数据跟单员
* 3. 初始化数据跟单员的联系人信息
*/
public
static
function
initHistoricalSupplierData
(
$updateData
=
false
)
public
static
function
initHistoricalSupplierData
(
$updateData
=
false
,
$num
=
50
)
{
// 从CSV文件读取历史供应商数据
$csvFilePath
=
public_path
(
'data'
)
.
DIRECTORY_SEPARATOR
.
'数据跟单员.csv'
;
...
...
@@ -1024,7 +1024,7 @@ class DataService
return
;
}
$adminUserService
=
new
AdminUserService
();
$historicalSuppliers
=
array_slice
(
$historicalSuppliers
,
0
,
50
);
// 只处理前5个进行测试
$historicalSuppliers
=
array_slice
(
$historicalSuppliers
,
0
,
$num
);
// 只处理前5个进行测试
foreach
(
$historicalSuppliers
as
$supplierCode
=>
$supplierInfo
)
{
\dump
(
"----------------------------------------------------------------"
);
\dump
(
"开始处理供应商: "
.
$supplierCode
.
'----'
.
$supplierInfo
[
'name'
]);
...
...
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