Commit 299865c1 by 杨树贤

调试脚本

parent ce33544a
......@@ -36,6 +36,6 @@ class SetSupplierFollowUp extends Command
//DealImageService::dealNewsImage();
//DealImageService::dealNewsImage();
//DealImageService::dealSkuDetailAndImage();
DataService::reInitSupplierCpTime();
DataService::initHistoricalSupplierData(true,20000);
}
}
......@@ -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']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment