Commit 2de6fe8f by chongli

小程序赛事下单前检测是否存在需要处理的订单

parent 3684e62b
......@@ -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;
......@@ -226,6 +227,16 @@ public class EventActivityMController {
}
@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)
@ResponseBody
public Object reserveSeatForOne(@RequestBody EventCustomerInfoGroupBean eventCustomerInfoGroupBean) {
......
......@@ -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 {
......@@ -123,6 +128,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");
HttpEntity<Request<EventCustomerInfoGroupBean>> entity = new HttpEntity<Request<EventCustomerInfoGroupBean>>(
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment