Commit ae7a1330 by 杨树贤

fix

parent db1f2e73
...@@ -1034,7 +1034,7 @@ class DataService ...@@ -1034,7 +1034,7 @@ class DataService
\dump("供应商不存在: " . $supplierCode); \dump("供应商不存在: " . $supplierCode);
continue; continue;
} }
$onlinePurchaser = $supplierInfo['online_purchaser'];
$supplierId = $supplier->supplier_id; $supplierId = $supplier->supplier_id;
// 处理数据跟单员 // 处理数据跟单员
...@@ -1080,7 +1080,7 @@ class DataService ...@@ -1080,7 +1080,7 @@ class DataService
\dump('跟单采购员 : ' . implode(',', $followerList)); \dump('跟单采购员 : ' . implode(',', $followerList));
\dump('所有采购员 : ' . implode(',', $allChannelUids)); \dump('所有采购员 : ' . implode(',', $allChannelUids));
$onlinePurchaserCodeId = $adminUserService->getCodeIdByUserName($onlinePurchaser); $onlinePurchaserCodeId = $adminUserService->getCodeIdByUserName($onlinePurchaser);
\dump('需要获取联系人的采购员 : ' . $onlinePurchaserCodeId . ' 姓名 : '. $onlinePurchaser); \dump('需要获取联系人的采购员 : ' . $onlinePurchaserCodeId . ' 姓名 : ' . $onlinePurchaser);
if (empty($onlinePurchaserCodeId)) { if (empty($onlinePurchaserCodeId)) {
\dump('表格里的线上采购员不存在,跳过'); \dump('表格里的线上采购员不存在,跳过');
continue; continue;
...@@ -1089,7 +1089,7 @@ class DataService ...@@ -1089,7 +1089,7 @@ class DataService
//3.2 数据跟单员的联系人信息:初始化为【线上采购员】维护的联系人信息 //3.2 数据跟单员的联系人信息:初始化为【线上采购员】维护的联系人信息
//如果数据跟单员已经存在在供应商的采购员里,也需要把他对应的联系人初始化成线上采购员对应的联系人信息 //如果数据跟单员已经存在在供应商的采购员里,也需要把他对应的联系人初始化成线上采购员对应的联系人信息
foreach ($dataFollowersCodeIds as $followerCodeId) { foreach ($dataFollowersCodeIds as $followerCodeId) {
$onlinePurchaserContact = SupplierContactModel::where('can_check_uids', $onlinePurchaserCodeId)->where('supplier_id',$supplierId)->first(); $onlinePurchaserContact = SupplierContactModel::where('can_check_uids', $onlinePurchaserCodeId)->where('supplier_id', $supplierId)->first();
if (!empty($onlinePurchaserContact)) { if (!empty($onlinePurchaserContact)) {
$onlinePurchaserContact = $onlinePurchaserContact->toArray(); $onlinePurchaserContact = $onlinePurchaserContact->toArray();
} }
......
...@@ -25,6 +25,7 @@ use Illuminate\Support\Facades\Route; ...@@ -25,6 +25,7 @@ use Illuminate\Support\Facades\Route;
use App\Model\SupplierAttachmentsModel; use App\Model\SupplierAttachmentsModel;
use App\Http\Services\DepartmentService; use App\Http\Services\DepartmentService;
use App\Http\Services\SupplierAccountService; use App\Http\Services\SupplierAccountService;
use App\Model\SupplierContactModel;
Route::group(['middleware' => ['web', 'menu']], function () { Route::group(['middleware' => ['web', 'menu']], function () {
Route::get('/', 'WebController@Entrance'); Route::get('/', 'WebController@Entrance');
...@@ -97,6 +98,8 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function () ...@@ -97,6 +98,8 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
DataService::initHistoricalSupplierData(false); DataService::initHistoricalSupplierData(false);
if (request()->get('delete')) {
}
// DataService::initSupplierReceiptNationId(); // DataService::initSupplierReceiptNationId();
// SupplierAccountService::initYunxinAccountName(); // SupplierAccountService::initYunxinAccountName();
// DataService::syncSupplierToErp(); // DataService::syncSupplierToErp();
......
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