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
f45c1612
authored
Dec 22, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
数据处理
parent
4418b366
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
app/Http/Services/DataService.php
app/Http/routes.php
app/Http/Services/DataService.php
View file @
f45c1612
...
...
@@ -3,6 +3,7 @@
namespace
App\Http\Services
;
//后台用户相关信息服务
use
Log
;
use
Carbon\Carbon
;
use
GuzzleHttp\Client
;
use
App\Model\LogModel
;
...
...
@@ -899,7 +900,7 @@ class DataService
SupplierChannelModel
::
where
(
'supplier_code'
,
'L0005670'
)
->
update
([
'group_code'
=>
'G003815'
]);
}
//重新初始化供应商的有效时间
public
static
function
reInitSupplierCpTime
()
{
...
...
@@ -915,4 +916,11 @@ class DataService
\dump
(
'重新初始化供应商有效时间:'
.
$supplierId
.
' '
.
$supplierCode
);
}
}
//重新初始化销售员
public
static
function
initUserOauthSalesId
()
{
DB
::
connection
(
'liexin'
)
->
table
(
'user_oauth'
)
->
update
([
'sales_id'
=>
0
]);
Log
::
info
(
'已将所有用户oauth的sales_id重置为0'
);
}
}
app/Http/routes.php
View file @
f45c1612
...
...
@@ -96,7 +96,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
DataService
::
reInitSupplierCpTime
();
DataService
::
initUserOauthSalesId
();
// 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