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
ae7a1330
authored
Jan 03, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
db1f2e73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
app/Http/Services/DataService.php
app/Http/routes.php
app/Http/Services/DataService.php
View file @
ae7a1330
...
...
@@ -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
();
}
...
...
app/Http/routes.php
View file @
ae7a1330
...
...
@@ -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();
...
...
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