Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
67d675dc
Commit
67d675dc
authored
Oct 10, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openapi 1.1
parent
3953e4d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
server/app/Rhawn/Services/ZhenkhService.php
server/app/Rhawn/Services/ZhenkhService.php
+6
-6
No files found.
server/app/Rhawn/Services/ZhenkhService.php
View file @
67d675dc
...
...
@@ -11,8 +11,8 @@
namespace
App\Rhawn\Services
;
use
App\Rhawn\Repositories\
Contracts\RhawnSoitemsRepository
;
use
App\Rhawn\Repositories\
Contracts\RhawnSordersRepository
;
use
App\Rhawn\Repositories\
Eloquent\RhawnSoitemsRepositoryEloquent
;
use
App\Rhawn\Repositories\
Eloquent\RhawnSordersRepositoryEloquent
;
use
App\Services\PlatformDataEntriesService
;
use
App\Support\Facades\SimpleLogs
;
use
Illuminate\Support\Facades\DB
;
...
...
@@ -22,8 +22,8 @@ class ZhenkhService
public
function
__construct
()
{
$this
->
dataEntries
=
app
(
PlatformDataEntriesService
::
class
);
$this
->
rhawnOrdersRepository
=
app
(
RhawnSordersRepository
::
class
);
$this
->
rhawnSoitemsrepository
=
app
(
RhawnSoitemsRepository
::
class
);
$this
->
rhawnOrdersRepository
=
app
(
RhawnSordersRepository
Eloquent
::
class
);
$this
->
rhawnSoitemsrepository
=
app
(
RhawnSoitemsRepository
Eloquent
::
class
);
}
/**
...
...
@@ -104,7 +104,7 @@ class ZhenkhService
$dbConnect
=
DB
::
connection
(
$this
->
rhawnOrdersRepository
->
getConnectionName
());
//判断订单是否已经存在
$oneOrder
=
$dbConnect
->
table
(
'sorders'
)
$oneOrder
=
$dbConnect
->
table
(
$this
->
rhawnOrdersRepository
->
getTableName
()
)
->
where
(
'so_cus_po'
,
$order
[
'purchaseOrderId'
])
->
get
()
->
toArray
();
if
(
$oneOrder
){
...
...
@@ -113,7 +113,7 @@ class ZhenkhService
}
//获取订单发票信息
$dataEntries
=
app
(
ZhenKhService
::
class
)
->
apiService
->
getPlatformDataEntries
(
'zkh_order_invoice'
,
'data_values'
);
$dataEntries
=
app
(
\App\Services\ThirdPlatform\
ZhenKhService
::
class
)
->
apiService
->
getPlatformDataEntries
(
'zkh_order_invoice'
,
'data_values'
);
$updateOrderArray
=
[];
$updateOrderArray
[
'cus_id'
]
=
$dataEntries
[
'id'
];
...
...
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