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
c84b9b59
authored
May 27, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
删除数据
parent
eae936ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
18 deletions
app/Http/Services/DataService.php
app/Http/routes.php
app/Http/Services/DataService.php
View file @
c84b9b59
...
...
@@ -3,31 +3,32 @@
namespace
App\Http\Services
;
//后台用户相关信息服务
use
App\Http\Transformers\SupplierTransformer
;
use
App\Model\BigData\DataManageModel
;
use
App\Model\DepartmentModel
;
use
App\Model\IntracodeModel
;
use
Carbon\Carbon
;
use
GuzzleHttp\Client
;
use
App\Model\LogModel
;
use
App\Model\Purchase\PurchaseOrderModel
;
use
App\Model\RedisModel
;
use
App\Model\SkuUploadItem
;
use
App\Model\SkuUploadLogModel
;
use
App\Model\SpuBrandModel
;
use
App\Model\StandardBrandMappingModel
;
use
App\Model\UserInfoModel
;
use
App\Model\IntracodeModel
;
use
App\Model\DepartmentModel
;
use
GuzzleHttp\RequestOptions
;
use
App\Model\SkuUploadLogModel
;
use
App\Model\StandardBrandModel
;
use
Illuminate\Support\Facades\DB
;
use
App\Model\SupplierAccountModel
;
use
App\Model\SupplierAddressModel
;
use
App\Model\SupplierAttachmentsModel
;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierContactModel
;
use
App\Model\SupplierReceiptModel
;
use
App\Model\UserInfoModel
;
use
Carbon\Carbon
;
use
GuzzleHttp\Client
;
use
GuzzleHttp\RequestOptions
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Redis
;
use
App\Model\SupplierContractModel
;
use
Maatwebsite\Excel\Facades\Excel
;
use
Illuminate\Support\Facades\Redis
;
use
App\Model\BigData\DataManageModel
;
use
App\Model\SupplierAttachmentsModel
;
use
App\Model\StandardBrandMappingModel
;
use
App\Model\Purchase\PurchaseOrderModel
;
use
App\Http\Transformers\SupplierTransformer
;
//这个服务是处理数据的,比如导出信息,或者临时修复数据,所以代码会比较多
class
DataService
...
...
@@ -724,4 +725,9 @@ class DataService
}
public
static
function
deleteSupplierContract
()
{
SupplierContractModel
::
where
(
'id'
,
10
)
->
delete
();
}
}
app/Http/routes.php
View file @
c84b9b59
...
...
@@ -17,6 +17,7 @@ use App\Http\Services\CrmService;
use
App\Http\Services\SkuService
;
use
App\Model\SupplierChannelModel
;
use
App\Http\Services\CompanyService
;
use
App\Http\Services\DataService
;
use
Illuminate\Support\Facades\Route
;
use
App\Http\Services\DepartmentService
;
...
...
@@ -89,8 +90,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
SupplierChannelModel
::
where
(
'supplier_id'
,
8956
)
->
update
([
'status'
=>
SupplierChannelModel
::
STATUS_PASSED
,
'is_entity'
=>
SupplierChannelModel
::
IS_ENTITY_FALSE
]);
DataService
::
deleteSupplierContract
();
});
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