Authored by chenjian

线下店接口支持促销

... ... @@ -53,12 +53,14 @@ public class OfflineShoppingController {
public ApiResponse offlineCompute(@RequestParam(name = "uid") Integer uid,
@RequestParam(name = "skup") Integer skup,
@RequestParam(name = "coupon_code",required = false) String couponCode,
@RequestParam(name="promotionId", required = false)Integer promotionId,
@RequestParam(value = "business_client", required = false,defaultValue = "ufo") String businessClient) {
OfflineShoppingRequest req = new OfflineShoppingRequest();
req.setUid(uid);
req.setSkup(skup);
req.setCouponCodes(CouponCodeUtils.asList(couponCode));
req.setPromotionId(promotionId);
req.setBusinessClient(businessClient);
logger.info("in ufo.order.offlineCompute, req {}", req);
... ... @@ -74,6 +76,7 @@ public class OfflineShoppingController {
public ApiResponse offlineSubmit(@RequestParam(name = "uid") Integer uid,
@RequestParam(name = "skup") Integer skup,
@RequestParam(name = "coupon_code",required = false) String couponCode,
@RequestParam(name="promotionId", required = false)Integer promotionId,
@RequestParam(name = "channelNo", required = false) String channelNo,
@RequestParam(name = "store_id") Integer storeId,
@RequestParam(name = "user_longitude") Double userLongitude,
... ... @@ -88,6 +91,7 @@ public class OfflineShoppingController {
request.setUid(uid);
request.setSkup(skup);
request.setCouponCodes(CouponCodeUtils.asList(couponCode));
request.setPromotionId(promotionId);
request.setChannelNo(channelNo);
request.setAddressId("0"); //门店自提,不需addressId
request.setStoreId(storeId);
... ...