Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f38611c4
authored
Mar 26, 2020
by
zhangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发票提交验证重复
parent
545f1e07
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
src/main/java/com/ctrip/fun/admin/service/basic/InvoiceRequestService.java
src/main/java/com/ctrip/fun/admin/service/basic/InvoiceRequestService.java
View file @
f38611c4
...
...
@@ -18,6 +18,7 @@ import com.ctrip.fun.common.vo.PagedResponseBean;
import
com.ctrip.fun.common.vo.Request
;
import
com.ctrip.fun.common.vo.Response
;
import
com.ctrip.fun.common.vo.ResponseStatusEnum
;
import
com.ctrip.fun.common.vo.basic.InvoiceOrderInfoBean
;
import
com.ctrip.fun.common.vo.basic.InvoiceRequestBean
;
import
com.ctrip.fun.common.vo.basic.InvoiceRequestQuery
;
...
...
@@ -76,6 +77,30 @@ public class InvoiceRequestService extends BaseService {
}
return
retKey
;
}
/**
* 根据发票支付凭证或者订单号查询该订单是否存在
* @return InvoiceOrderInfoBean
* @author lsj
*/
public
InvoiceOrderInfoBean
findInvoiceInfoByOrderNo
(
String
userId
,
String
orderNoOrNum
){
String
uri
=
super
.
getServiceUri
(
"uri.invoiceRequest.findInvoiceInfoByOrderNo"
);
InvoiceOrderInfoBean
invoiceRequestBean
=
null
;
Request
<
String
>
request
=
new
Request
<
String
>(
userId
,
orderNoOrNum
);
HttpEntity
<
Request
<
String
>>
entity
=
new
HttpEntity
<
Request
<
String
>>(
request
);
Response
<
InvoiceOrderInfoBean
>
response
=
super
.
exchange
(
uri
,
HttpMethod
.
POST
,
entity
,
new
ParameterizedTypeReference
<
Response
<
InvoiceOrderInfoBean
>>()
{
}).
getBody
();
if
(
null
!=
response
)
{
if
(
response
.
getStatus
()
==
0
)
{
invoiceRequestBean
=
response
.
getBody
();
}
else
{
Map
<
String
,
String
>
tags
=
new
HashMap
<>();
logger
.
error
(
"add异常"
,
String
.
format
(
"status: %d, msg: %s"
,
response
.
getStatus
(),
response
.
getMessage
()),
tags
);
}
}
return
invoiceRequestBean
;
}
/**
*获取发票申请
...
...
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