Authored by chenchao

add attributes

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