...
|
...
|
@@ -105,6 +105,7 @@ public class ShoppingController { |
|
|
@RequestParam(name = "user_activity_id", required = false, defaultValue = "0") int userActivityId,
|
|
|
@RequestParam(name = "activity_type", required = false, defaultValue = "0") int activityType,
|
|
|
@RequestParam(name="depositRequirement", required = false, defaultValue = OrderConstant.N_STR)String depositRequirement,
|
|
|
@RequestParam(name="promotionId", required = false)Integer promotionId,
|
|
|
//接口版本,控制不同的动作
|
|
|
@RequestParam(name = "api_version", required = false, defaultValue = "0") int apiVersion,
|
|
|
@RequestParam(value = "app_version", required = false)String appVersion) {
|
...
|
...
|
@@ -120,6 +121,7 @@ public class ShoppingController { |
|
|
.appVersion(appVersion)
|
|
|
.depositRequirement(depositRequirement)
|
|
|
.apiVersion(apiVersion)
|
|
|
.promotionId(promotionId)
|
|
|
.build();
|
|
|
logger.info("in ufo.order.compute, req {}", req);
|
|
|
ComputeResponse resp = buyerOrderService.compute(req);
|
...
|
...
|
@@ -141,6 +143,7 @@ public class ShoppingController { |
|
|
@RequestParam(name = "user_activity_id", required = false, defaultValue = "0") int userActivityId,
|
|
|
@RequestParam(name = "activity_type", required = false, defaultValue = "0") int activityType,
|
|
|
@RequestParam(name="depositRequirement", required = false, defaultValue = OrderConstant.N_STR)String depositRequirement,
|
|
|
@RequestParam(name="promotionId", required = false)Integer promotionId,
|
|
|
@RequestParam(name = "client_type", required = false) String clientType){
|
|
|
if(StringUtils.isBlank(channelNo)){
|
|
|
channelNo = "2919";
|
...
|
...
|
@@ -154,6 +157,7 @@ public class ShoppingController { |
|
|
.channelNo(channelNo).clientType(clientType).addressId(addressId)
|
|
|
.userActivityId(userActivityId).activityType(activityTypeEnum)
|
|
|
.depositRequirement(depositRequirement)
|
|
|
.promotionId(promotionId)
|
|
|
.build();
|
|
|
logger.info("in ufo.order.submit, req {}", request);
|
|
|
OrderSubmitResponse submitResponse = buyerOrderService.submit(request);
|
...
|
...
|
@@ -180,17 +184,18 @@ public class ShoppingController { |
|
|
|
|
|
|
|
|
/**
|
|
|
* 券列表
|
|
|
*
|
|
|
* 推荐的券列表
|
|
|
* Deprecated from v6.9.11
|
|
|
* @return
|
|
|
*/
|
|
|
@Deprecated
|
|
|
@RequestMapping(params = "method=ufo.order.autoRecommendedCoupon")
|
|
|
public ApiResponse autoRecommendedCoupon(@RequestParam(name = "uid") int uid,
|
|
|
@RequestParam(name = "skup") int skup,
|
|
|
@RequestParam(name = "addressId") String addressId,
|
|
|
@RequestParam(name="depositRequirement", defaultValue = OrderConstant.N_STR)String depositRequirement) {
|
|
|
//活动类型
|
|
|
ActivityTypeEnum activityTypeEnum = ActivityTypeEnum.find(0);
|
|
|
ActivityTypeEnum activityTypeEnum = ActivityTypeEnum.COMMON;
|
|
|
ShoppingRequest req = ShoppingRequest.builder()
|
|
|
.uid(uid).skup(skup)
|
|
|
.userActivityId(0).activityType(activityTypeEnum)
|
...
|
...
|
|