Commit ae7a1330 by 杨树贤

fix

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