Authored by chenchao

add businessClient in DAO

@@ -25,11 +25,12 @@ @@ -25,11 +25,12 @@
25 <result column="seller_delivery_deal_again" jdbcType="INTEGER" property="sellerDeliveryDealAgain" /> 25 <result column="seller_delivery_deal_again" jdbcType="INTEGER" property="sellerDeliveryDealAgain" />
26 <result column="activity_type" jdbcType="INTEGER" property="activityType" /> 26 <result column="activity_type" jdbcType="INTEGER" property="activityType" />
27 <result column="bid_type" jdbcType="INTEGER" property="bidType" /> 27 <result column="bid_type" jdbcType="INTEGER" property="bidType" />
  28 + <result column="business_client" jdbcType="INTEGER" property="businessClient" />
28 </resultMap> 29 </resultMap>
29 <sql id="Base_Column_List"> 30 <sql id="Base_Column_List">
30 id, uid, order_code, seller_uid, client_type, payment, payment_type, is_cancel, amount, 31 id, uid, order_code, seller_uid, client_type, payment, payment_type, is_cancel, amount,
31 ship_fee, status, create_time, update_time, buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status, 32 ship_fee, status, create_time, update_time, buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status,
32 - seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type, bid_type 33 + seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type, bid_type, business_client
33 </sql> 34 </sql>
34 35
35 36
@@ -144,7 +145,7 @@ @@ -144,7 +145,7 @@
144 is_cancel, amount, ship_fee, 145 is_cancel, amount, ship_fee,
145 status, create_time, update_time, 146 status, create_time, update_time,
146 buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status, 147 buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status,
147 - seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type, bid_type) 148 + seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type, bid_type,business_client)
148 values (#{uid,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT}, #{sellerUid,jdbcType=INTEGER}, 149 values (#{uid,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT}, #{sellerUid,jdbcType=INTEGER},
149 #{clientType,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, #{paymentType,jdbcType=TINYINT}, 150 #{clientType,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, #{paymentType,jdbcType=TINYINT},
150 #{isCancel,jdbcType=TINYINT}, #{amount,jdbcType=DECIMAL}, #{shipFee,jdbcType=DECIMAL}, 151 #{isCancel,jdbcType=TINYINT}, #{amount,jdbcType=DECIMAL}, #{shipFee,jdbcType=DECIMAL},
@@ -152,7 +153,8 @@ @@ -152,7 +153,8 @@
152 #{buyerOrderStatus,jdbcType=INTEGER}, #{sellerOrderStatus,jdbcType=INTEGER}, #{channelNo,jdbcType=VARCHAR}, 153 #{buyerOrderStatus,jdbcType=INTEGER}, #{sellerOrderStatus,jdbcType=INTEGER}, #{channelNo,jdbcType=VARCHAR},
153 #{attributes,jdbcType=INTEGER},#{platformDeliveryStatus,jdbcType=INTEGER}, 154 #{attributes,jdbcType=INTEGER},#{platformDeliveryStatus,jdbcType=INTEGER},
154 #{sellerDeliveryStatus,jdbcType=INTEGER},#{sellerDeliveryDeal,jdbcType=INTEGER}, 155 #{sellerDeliveryStatus,jdbcType=INTEGER},#{sellerDeliveryDeal,jdbcType=INTEGER},
155 - #{sellerDeliveryDealAgain,jdbcType=INTEGER},#{activityType,jdbcType=INTEGER},#{bidType,jdbcType=INTEGER}) 156 + #{sellerDeliveryDealAgain,jdbcType=INTEGER},#{activityType,jdbcType=INTEGER},
  157 + #{bidType,jdbcType=INTEGER},#{businessClient,jdbcType=INTEGER})
156 </insert> 158 </insert>
157 <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.BuyerOrder" useGeneratedKeys="true"> 159 <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.BuyerOrder" useGeneratedKeys="true">
158 insert into buyer_order 160 insert into buyer_order
@@ -134,6 +134,7 @@ public class BuyerBidOrderSubmitService { @@ -134,6 +134,7 @@ public class BuyerBidOrderSubmitService {
134 //活动类型 134 //活动类型
135 buyerOrder.setActivityType(orderBuilder.getActivityBo().getActivityType()); 135 buyerOrder.setActivityType(orderBuilder.getActivityBo().getActivityType());
136 buyerOrder.setBidType(OrderConstant.BUYER_BID_TYPE); 136 buyerOrder.setBidType(OrderConstant.BUYER_BID_TYPE);
  137 + buyerOrder.setBusinessClient(orderBuilder.getBusinessClient());
137 buyerOrderMapper.insert(buyerOrder); 138 buyerOrderMapper.insert(buyerOrder);
138 return buyerOrder; 139 return buyerOrder;
139 } 140 }
@@ -313,6 +313,7 @@ public class SubmitOrderServiceImpl implements ISubmitOrderService { @@ -313,6 +313,7 @@ public class SubmitOrderServiceImpl implements ISubmitOrderService {
313 buyerOrder.setSellerDeliveryDealAgain(0); 313 buyerOrder.setSellerDeliveryDealAgain(0);
314 //活动类型 314 //活动类型
315 buyerOrder.setActivityType(orderBuilder.getActivityBo().getActivityType()); 315 buyerOrder.setActivityType(orderBuilder.getActivityBo().getActivityType());
  316 + buyerOrder.setBusinessClient(orderBuilder.getBusinessClient());
316 buyerOrderMapper.insert(buyerOrder); 317 buyerOrderMapper.insert(buyerOrder);
317 return buyerOrder; 318 return buyerOrder;
318 } 319 }