...
|
...
|
@@ -41,7 +41,8 @@ public class ShoppingController { |
|
|
@RequestParam(name="depositRequirement", required = false, defaultValue = OrderConstant.N_STR)String depositRequirement,
|
|
|
//接口版本,控制不同的动作
|
|
|
@RequestParam(name = "api_version", required = false, defaultValue = "0") int apiVersion,
|
|
|
@RequestParam(value = "app_version", required = false)String appVersion){
|
|
|
@RequestParam(value = "app_version", required = false)String appVersion,
|
|
|
@RequestParam(value = "business_client", required = false) String businessClient){
|
|
|
|
|
|
//活动类型
|
|
|
ActivityTypeEnum activityTypeEnum = ActivityTypeEnum.find(activityType);
|
...
|
...
|
@@ -54,6 +55,7 @@ public class ShoppingController { |
|
|
.apiVersion(apiVersion)
|
|
|
.appVersion(appVersion)
|
|
|
.addressId(addressId)
|
|
|
.businessClient(businessClient)
|
|
|
.build();
|
|
|
logger.info("in ufo.order.payment, req {}", req);
|
|
|
PaymentResponse paymentResponse = buyerOrderService.payment(req);
|
...
|
...
|
@@ -72,7 +74,8 @@ public class ShoppingController { |
|
|
@RequestParam(name = "skup") int skup,
|
|
|
@RequestParam(name = "addressId", required = false) String addressId,
|
|
|
@RequestParam(name = "coupon_code",required = false) String couponCode,
|
|
|
@RequestParam(name="depositRequirement", required = false, defaultValue = OrderConstant.N_STR)String depositRequirement) {
|
|
|
@RequestParam(name="depositRequirement", required = false, defaultValue = OrderConstant.N_STR)String depositRequirement,
|
|
|
@RequestParam(value = "business_client", required = false) String businessClient) {
|
|
|
//活动类型
|
|
|
ActivityTypeEnum activityTypeEnum = ActivityTypeEnum.find(0);
|
|
|
|
...
|
...
|
@@ -82,6 +85,7 @@ public class ShoppingController { |
|
|
.userActivityId(0).activityType(activityTypeEnum)
|
|
|
.depositRequirement(depositRequirement)
|
|
|
.addressId(addressId)
|
|
|
.businessClient(businessClient)
|
|
|
.build();
|
|
|
logger.info("in ufo.order.selectCoupon, req {}", req);
|
|
|
ShoppingCouponListResp resp = buyerOrderService.selectCoupon(req);
|
...
|
...
|
@@ -104,7 +108,8 @@ public class ShoppingController { |
|
|
@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) {
|
|
|
@RequestParam(value = "app_version", required = false)String appVersion,
|
|
|
@RequestParam(value = "business_client", required = false) String businessClient) {
|
|
|
|
|
|
//活动类型
|
|
|
ActivityTypeEnum activityTypeEnum = ActivityTypeEnum.find(activityType);
|
...
|
...
|
@@ -118,6 +123,7 @@ public class ShoppingController { |
|
|
.depositRequirement(depositRequirement)
|
|
|
.apiVersion(apiVersion)
|
|
|
.promotionId(promotionId)
|
|
|
.businessClient(businessClient)
|
|
|
.build();
|
|
|
logger.info("in ufo.order.compute, req {}", req);
|
|
|
ComputeResponse resp = buyerOrderService.compute(req);
|
...
|
...
|
@@ -176,7 +182,8 @@ public class ShoppingController { |
|
|
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) {
|
|
|
@RequestParam(name="depositRequirement", defaultValue = OrderConstant.N_STR)String depositRequirement,
|
|
|
@RequestParam(value = "business_client", required = false) String businessClient) {
|
|
|
//活动类型
|
|
|
ActivityTypeEnum activityTypeEnum = ActivityTypeEnum.COMMON;
|
|
|
ShoppingRequest req = ShoppingRequest.builder()
|
...
|
...
|
|