Authored by chenchao

add businessClient in DAO

... ... @@ -25,11 +25,12 @@
<result column="seller_delivery_deal_again" jdbcType="INTEGER" property="sellerDeliveryDealAgain" />
<result column="activity_type" jdbcType="INTEGER" property="activityType" />
<result column="bid_type" jdbcType="INTEGER" property="bidType" />
<result column="business_client" jdbcType="INTEGER" property="businessClient" />
</resultMap>
<sql id="Base_Column_List">
id, uid, order_code, seller_uid, client_type, payment, payment_type, is_cancel, amount,
ship_fee, status, create_time, update_time, buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status,
seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type, bid_type
seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type, bid_type, business_client
</sql>
... ... @@ -144,7 +145,7 @@
is_cancel, amount, ship_fee,
status, create_time, update_time,
buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status,
seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type, bid_type)
seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type, bid_type,business_client)
values (#{uid,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT}, #{sellerUid,jdbcType=INTEGER},
#{clientType,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, #{paymentType,jdbcType=TINYINT},
#{isCancel,jdbcType=TINYINT}, #{amount,jdbcType=DECIMAL}, #{shipFee,jdbcType=DECIMAL},
... ... @@ -152,7 +153,8 @@
#{buyerOrderStatus,jdbcType=INTEGER}, #{sellerOrderStatus,jdbcType=INTEGER}, #{channelNo,jdbcType=VARCHAR},
#{attributes,jdbcType=INTEGER},#{platformDeliveryStatus,jdbcType=INTEGER},
#{sellerDeliveryStatus,jdbcType=INTEGER},#{sellerDeliveryDeal,jdbcType=INTEGER},
#{sellerDeliveryDealAgain,jdbcType=INTEGER},#{activityType,jdbcType=INTEGER},#{bidType,jdbcType=INTEGER})
#{sellerDeliveryDealAgain,jdbcType=INTEGER},#{activityType,jdbcType=INTEGER},
#{bidType,jdbcType=INTEGER},#{businessClient,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.BuyerOrder" useGeneratedKeys="true">
insert into buyer_order
... ...
... ... @@ -134,6 +134,7 @@ public class BuyerBidOrderSubmitService {
//活动类型
buyerOrder.setActivityType(orderBuilder.getActivityBo().getActivityType());
buyerOrder.setBidType(OrderConstant.BUYER_BID_TYPE);
buyerOrder.setBusinessClient(orderBuilder.getBusinessClient());
buyerOrderMapper.insert(buyerOrder);
return buyerOrder;
}
... ...
... ... @@ -313,6 +313,7 @@ public class SubmitOrderServiceImpl implements ISubmitOrderService {
buyerOrder.setSellerDeliveryDealAgain(0);
//活动类型
buyerOrder.setActivityType(orderBuilder.getActivityBo().getActivityType());
buyerOrder.setBusinessClient(orderBuilder.getBusinessClient());
buyerOrderMapper.insert(buyerOrder);
return buyerOrder;
}
... ...