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
2de6fe8f
authored
Sep 13, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序赛事下单前检测是否存在需要处理的订单
parent
3684e62b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
src/main/java/com/ctrip/fun/golf/api/eventActivity/EventActivityMController.java
src/main/java/com/ctrip/fun/golf/service/eventActivity/EventActivityMService.java
src/main/resources/rpc.properties
src/main/java/com/ctrip/fun/golf/api/eventActivity/EventActivityMController.java
View file @
2de6fe8f
...
...
@@ -31,6 +31,7 @@ import com.ctrip.fun.common.vo.order.EventOrderHistoryInfoBean;
import
com.ctrip.fun.common.vo.order.EventOrderHistoryInfoQuery
;
import
com.ctrip.fun.common.vo.order.LatestOnGoingOrderOverTimeInfoQuery
;
import
com.ctrip.fun.common.vo.order.LatestOnGoingOrderOverTimeInfoResponseBean
;
import
com.ctrip.fun.common.vo.product.EventActivityCheckQuery
;
import
com.ctrip.fun.common.vo.user.UserBean
;
import
com.ctrip.fun.common.vo.user.UserQuery
;
import
com.ctrip.fun.golf.secrity.Security
;
...
...
@@ -224,6 +225,16 @@ public class EventActivityMController {
return
errorBean
;
}
}
@Security
(
index
=
1
,
field
=
"token"
)
@RequestMapping
(
value
=
"/checkHasWaittingDealOrders"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
checkHasWaittingDealOrders
(
@RequestBody
EventActivityCheckQuery
eventActivityCheckQuery
)
{
Request
<
EventActivityCheckQuery
>
request
=
new
Request
<
EventActivityCheckQuery
>();
request
.
setBody
(
eventActivityCheckQuery
);
return
eventActivityMService
.
checkHasWaittingDealOrders
(
request
);
}
@Security
(
index
=
1
,
field
=
"token"
)
@RequestMapping
(
value
=
"/reserveSeatForOne"
,
method
=
RequestMethod
.
POST
)
...
...
src/main/java/com/ctrip/fun/golf/service/eventActivity/EventActivityMService.java
View file @
2de6fe8f
...
...
@@ -8,11 +8,15 @@ import org.slf4j.LoggerFactory;
import
org.springframework.core.ParameterizedTypeReference
;
import
org.springframework.http.HttpEntity
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
com.ctrip.fun.common.core.util.SysUtil
;
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.order.EventCustomerInfoBean
;
import
com.ctrip.fun.common.vo.order.EventCustomerInfoGroupBean
;
import
com.ctrip.fun.common.vo.order.EventCustomerInfoQuery
;
...
...
@@ -21,6 +25,7 @@ import com.ctrip.fun.common.vo.order.EventOrderHistoryInfoBean;
import
com.ctrip.fun.common.vo.order.EventOrderHistoryInfoQuery
;
import
com.ctrip.fun.common.vo.order.LatestOnGoingOrderOverTimeInfoQuery
;
import
com.ctrip.fun.common.vo.order.LatestOnGoingOrderOverTimeInfoResponseBean
;
import
com.ctrip.fun.common.vo.product.EventActivityCheckQuery
;
import
com.ctrip.fun.golf.service.BaseService
;
public
class
EventActivityMService
extends
BaseService
{
...
...
@@ -122,6 +127,16 @@ public class EventActivityMService extends BaseService {
return
response
;
}
public
Response
<
String
>
checkHasWaittingDealOrders
(
Request
<
EventActivityCheckQuery
>
request
)
{
String
uri
=
super
.
getServiceUri
(
"uri.eventActivityOrder.checkHasWaittingDealOrders"
);
HttpEntity
<
Request
<
EventActivityCheckQuery
>>
entity
=
new
HttpEntity
<
Request
<
EventActivityCheckQuery
>>(
request
);
Response
<
String
>
response
=
super
.
exchange
(
uri
,
HttpMethod
.
POST
,
entity
,
new
ParameterizedTypeReference
<
Response
<
String
>>()
{}).
getBody
();
return
response
;
}
public
Response
<
Serializable
>
reserveSeatForOne
(
Request
<
EventCustomerInfoGroupBean
>
request
)
{
String
uri
=
super
.
getServiceUri
(
"uri.eventCustomerInfo.reserveSeatForOne"
);
...
...
src/main/resources/rpc.properties
View file @
2de6fe8f
...
...
@@ -382,6 +382,7 @@ uri.eventCustomerInfo.getCustomerInfoGroupInfoList=/fun-golf-service/eventCustom
#分组
uri.eventActivityOrder.getLatestOnGoingOrderOverTimeInfo
=
/fun-golf-service/eventActivityOrder/getLatestOnGoingOrderOverTimeInfo
uri.eventActivityOrder.checkHasWaittingDealOrders
=
/fun-golf-service/eventActivityOrder/checkHasWaittingDealOrders
uri.eventCustomerInfo.reserveSeatForOne
=
/fun-golf-service/eventCustomerInfo/reserveSeatForOne
uri.eventCustomerInfo.reserveSeat
=
/fun-golf-service/eventCustomerInfo/reserveSeatForMultiple
uri.eventCustomerInfo.cancelSeatForOne
=
/fun-golf-service/eventCustomerInfo/cancelSeatForOne
...
...
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