Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-mobile
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
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
fd86ed04
authored
Mar 08, 2018
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the voucher for tour
parent
c6e1d694
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
src/main/java/com/ctrip/fun/golf/service/basic/VoucherMService.java
src/main/resources/rpc.properties
src/main/java/com/ctrip/fun/golf/service/basic/VoucherMService.java
View file @
fd86ed04
...
@@ -81,7 +81,23 @@ public class VoucherMService extends BaseService {
...
@@ -81,7 +81,23 @@ public class VoucherMService extends BaseService {
public
PagedResponseBean
<
VoucherItemDTO
>
queryListForTourOrder
(
VoucherQueryDto
query
)
{
public
PagedResponseBean
<
VoucherItemDTO
>
queryListForTourOrder
(
VoucherQueryDto
query
)
{
PagedResponseBean
<
VoucherItemDTO
>
pagedResponseBean
=
new
PagedResponseBean
<
VoucherItemDTO
>(
0
,
new
ArrayList
<
VoucherItemDTO
>());
PagedResponseBean
<
VoucherItemDTO
>
pagedResponseBean
=
new
PagedResponseBean
<
VoucherItemDTO
>(
0
,
new
ArrayList
<
VoucherItemDTO
>());
return
pagedResponseBean
;
if
(!
StringUtils
.
hasText
(
query
.
getUid
()))
{
return
pagedResponseBean
;
}
String
uri
=
super
.
getServiceUri
(
"uri.voucher.queryListForTourOrder"
);
HttpEntity
<
Request
<
VoucherQueryDto
>>
entity
=
new
HttpEntity
<
Request
<
VoucherQueryDto
>>(
new
Request
<
VoucherQueryDto
>(
null
,
query
));
Response
<
PagedResponseBean
<
VoucherItemDTO
>>
response
=
null
;
try
{
response
=
super
.
exchange
(
uri
,
HttpMethod
.
POST
,
entity
,
new
ParameterizedTypeReference
<
Response
<
PagedResponseBean
<
VoucherItemDTO
>>>()
{
}).
getBody
();
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
());
return
pagedResponseBean
;
}
if
(
response
==
null
||
response
.
getStatus
()
!=
0
||
response
.
getBody
()
==
null
)
{
return
pagedResponseBean
;
}
return
response
.
getBody
();
}
}
public
PagedResponseBean
<
VoucherItemDTO
>
queryListForEventActivityOrder
(
VoucherQueryDto
query
)
{
public
PagedResponseBean
<
VoucherItemDTO
>
queryListForEventActivityOrder
(
VoucherQueryDto
query
)
{
...
...
src/main/resources/rpc.properties
View file @
fd86ed04
...
@@ -95,6 +95,7 @@ uri.district.GetDistrictWeatherForecast=/fun-golf-service/district/weatherForeca
...
@@ -95,6 +95,7 @@ uri.district.GetDistrictWeatherForecast=/fun-golf-service/district/weatherForeca
uri.voucher.voucherSearch
=
/fun-golf-service/Voucher/QueryVoucherList
uri.voucher.voucherSearch
=
/fun-golf-service/Voucher/QueryVoucherList
uri.voucher.queryListForPersonalCenter
=
/fun-golf-service/Voucher/queryListForPersonalCenter
uri.voucher.queryListForPersonalCenter
=
/fun-golf-service/Voucher/queryListForPersonalCenter
uri.voucher.queryListForCourseOrder
=
/fun-golf-service/Voucher/queryListForCourseOrder
uri.voucher.queryListForCourseOrder
=
/fun-golf-service/Voucher/queryListForCourseOrder
uri.voucher.queryListForTourOrder
=
/fun-golf-service/Voucher/queryListForTourOrder
uri.voucher.queryListForEventActivityOrder
=
/fun-golf-service/Voucher/queryListForEventActivityOrder
uri.voucher.queryListForEventActivityOrder
=
/fun-golf-service/Voucher/queryListForEventActivityOrder
uri.voucher.queryListForMallOrder
=
/fun-golf-service/Voucher/queryListForMallOrder
uri.voucher.queryListForMallOrder
=
/fun-golf-service/Voucher/queryListForMallOrder
uri.voucher.getRedeemCodeForMallOrder
=
/fun-golf-service/Voucher/getRedeemCodeForMallOrder
uri.voucher.getRedeemCodeForMallOrder
=
/fun-golf-service/Voucher/getRedeemCodeForMallOrder
...
...
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