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
42ad98dd
Commit
42ad98dd
authored
Feb 22, 2023
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务开票模块更新
parent
e67acac9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
server/app/Finance/Services/Api/BaiwangApiService.php
server/app/Finance/Services/Api/BaiwangApiService.php
+7
-2
server/app/Finance/Services/InvoiceService.php
server/app/Finance/Services/InvoiceService.php
+10
-3
No files found.
server/app/Finance/Services/Api/BaiwangApiService.php
View file @
42ad98dd
...
...
@@ -26,7 +26,7 @@ class BaiwangApiService extends PlatformAbstractService
/**
* 查询企业唯一标识
*/
public
function
queryQiyeUniqueSign
(
$platform
)
public
function
queryQiyeUniqueSign
()
{
try
{
if
(
$this
->
checkPlatformStatus
()){
...
...
@@ -47,7 +47,12 @@ class BaiwangApiService extends PlatformAbstractService
{
try
{
if
(
$this
->
checkPlatformStatus
()){
$queryParams
=
$params
;
$queryParams
=
array_merge
(
$params
,
[
'qyId'
=>
$this
->
platformInfo
[
'platform_params'
][
$this
->
invoicePlatform
][
'qyid'
]
]
);
$response
=
$this
->
sendPost
(
$this
->
getPlatformApiUrl
()
.
'/cloud/queryOrder'
,
$queryParams
);
return
$this
->
response
(
$response
);
}
...
...
server/app/Finance/Services/InvoiceService.php
View file @
42ad98dd
...
...
@@ -99,6 +99,9 @@ class InvoiceService
throw
new
\Exception
(
'购买方发票信息不存在'
,
502
);
}
//设置发票平台
$this
->
apiService
->
setInvoicePlatform
(
$invoiceParams
[
'invoice_platform'
]);
//查询是否存在发票记录
$invoiceInfo
=
null
;
switch
(
$invoiceParams
[
'invoice_platform'
]){
...
...
@@ -240,6 +243,9 @@ class InvoiceService
throw
new
\Exception
(
'开票平台不在允许范围内'
,
502
);
}
//设置发票平台
$this
->
apiService
->
setInvoicePlatform
(
$invoiceParams
[
'invoice_platform'
]);
//查询发票号码对应的数据
$invoiceInfo
=
$this
->
invoiceRecordRepository
->
getInvoiceRecordByRealNumber
(
$invoiceParams
[
'invoice_real_number'
]);
if
(
!
$invoiceInfo
){
...
...
@@ -286,12 +292,12 @@ class InvoiceService
}
public
function
queryInvoiceInfo
()
public
function
queryInvoiceInfo
(
$invoiceParams
)
{
$platformInfo
=
$this
->
apiService
->
getPlatformInfo
()[
'platform_params'
][
'rhawn'
];
//设置发票平台
$this
->
apiService
->
setInvoicePlatform
(
$invoiceParams
[
'invoice_platform'
]);
$cancelInvoiceParams
=
[];
$cancelInvoiceParams
[
'qyId'
]
=
$platformInfo
[
'qyid'
];
$cancelInvoiceParams
[
'ddlsh'
]
=
'00000000000002018020001720230222'
;
//记录请求参数
...
...
@@ -304,6 +310,7 @@ class InvoiceService
public
function
getQiyeInvoiceInfo
()
{
//设置发票平台
$info
=
$this
->
apiService
->
queryQiyeUniqueSign
(
'rhawn'
);
var_dump
(
$info
);
}
...
...
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