Authored by chenchao

add attributes

@@ -44,4 +44,6 @@ public class OrderBuilder { @@ -44,4 +44,6 @@ public class OrderBuilder {
44 * 使用的优惠券 44 * 使用的优惠券
45 */ 45 */
46 CouponBo couponBo; 46 CouponBo couponBo;
  47 +
  48 + Integer attributes;
47 } 49 }
@@ -3,6 +3,7 @@ package com.yohoufo.order.service.impl; @@ -3,6 +3,7 @@ package com.yohoufo.order.service.impl;
3 import com.yoho.core.rest.client.ServiceCaller; 3 import com.yoho.core.rest.client.ServiceCaller;
4 import com.yoho.error.ServiceError; 4 import com.yoho.error.ServiceError;
5 import com.yoho.error.exception.ServiceException; 5 import com.yoho.error.exception.ServiceException;
  6 +import com.yohobuy.ufo.model.order.common.OrderAttributes;
6 import com.yohobuy.ufo.model.promotion.UserCouponsBo; 7 import com.yohobuy.ufo.model.promotion.UserCouponsBo;
7 import com.yohoufo.common.alarm.EventBusPublisher; 8 import com.yohoufo.common.alarm.EventBusPublisher;
8 import com.yohoufo.common.utils.AddressUtil; 9 import com.yohoufo.common.utils.AddressUtil;
@@ -279,6 +280,7 @@ public class ShoppingServiceImpl implements IShoppingService { @@ -279,6 +280,7 @@ public class ShoppingServiceImpl implements IShoppingService {
279 .hiddenAddressInfo(hiddenAddress) 280 .hiddenAddressInfo(hiddenAddress)
280 .addressInfo(addressInfo) 281 .addressInfo(addressInfo)
281 .clientType(shoppingRequest.getClientType()) 282 .clientType(shoppingRequest.getClientType())
  283 + .attributes(OrderAttributes.COMMON_IN_STOCK.getCode())
282 .build(); 284 .build();
283 285
284 BuyerOrderSubmitResult submitResult = ordeCreationService.doSumbitOrder(orderBuilder); 286 BuyerOrderSubmitResult submitResult = ordeCreationService.doSumbitOrder(orderBuilder);
@@ -204,6 +204,7 @@ public class SubmitOrderServiceImpl implements ISubmitOrderService { @@ -204,6 +204,7 @@ public class SubmitOrderServiceImpl implements ISubmitOrderService {
204 buyerOrder.setStatus(OrderStatus.WAITING_PAY.getCode()); 204 buyerOrder.setStatus(OrderStatus.WAITING_PAY.getCode());
205 buyerOrder.setBuyerOrderStatus(DelStatus.NOT_DEL.getCode()); 205 buyerOrder.setBuyerOrderStatus(DelStatus.NOT_DEL.getCode());
206 buyerOrder.setSellerOrderStatus(DelStatus.NOT_DEL.getCode()); 206 buyerOrder.setSellerOrderStatus(DelStatus.NOT_DEL.getCode());
  207 + buyerOrder.setAttributes(orderBuilder.getAttributes());
207 buyerOrderMapper.insert(buyerOrder); 208 buyerOrderMapper.insert(buyerOrder);
208 } 209 }
209 210