|
@@ -5,7 +5,10 @@ import com.alibaba.fastjson.JSONObject; |
|
@@ -5,7 +5,10 @@ import com.alibaba.fastjson.JSONObject; |
5
|
import com.yoho.error.ServiceError;
|
5
|
import com.yoho.error.ServiceError;
|
6
|
import com.yoho.error.exception.ServiceException;
|
6
|
import com.yoho.error.exception.ServiceException;
|
7
|
import com.yohobuy.ufo.model.order.bo.OrderInfo;
|
7
|
import com.yohobuy.ufo.model.order.bo.OrderInfo;
|
8
|
-import com.yohobuy.ufo.model.order.common.*;
|
8
|
+import com.yohobuy.ufo.model.order.common.OrderAttributes;
|
|
|
9
|
+import com.yohobuy.ufo.model.order.common.OrderCodeType;
|
|
|
10
|
+import com.yohobuy.ufo.model.order.common.OrderStatus;
|
|
|
11
|
+import com.yohobuy.ufo.model.order.common.TabType;
|
9
|
import com.yohobuy.ufo.model.order.constants.SkupType;
|
12
|
import com.yohobuy.ufo.model.order.constants.SkupType;
|
10
|
import com.yohoufo.common.alarm.EventBusPublisher;
|
13
|
import com.yohoufo.common.alarm.EventBusPublisher;
|
11
|
import com.yohoufo.common.utils.DateUtil;
|
14
|
import com.yohoufo.common.utils.DateUtil;
|
|
@@ -72,7 +75,6 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
@@ -72,7 +75,6 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
72
|
@Autowired
|
75
|
@Autowired
|
73
|
private SellerOrderGoodsMapper sellerOrderGoodsMapper;
|
76
|
private SellerOrderGoodsMapper sellerOrderGoodsMapper;
|
74
|
|
77
|
|
75
|
-
|
|
|
76
|
@Autowired
|
78
|
@Autowired
|
77
|
private CacheCleaner cacheCleaner;
|
79
|
private CacheCleaner cacheCleaner;
|
78
|
|
80
|
|
|
@@ -168,7 +170,11 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
@@ -168,7 +170,11 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
168
|
processInStockOrder(buyerOrder, sellerOrderGoods);
|
170
|
processInStockOrder(buyerOrder, sellerOrderGoods);
|
169
|
}
|
171
|
}
|
170
|
|
172
|
|
171
|
-
|
173
|
+ /**
|
|
|
174
|
+ *
|
|
|
175
|
+ * @param buyerOrder
|
|
|
176
|
+ * @param sellerOrderGoods
|
|
|
177
|
+ */
|
172
|
private void processDepositOrder(BuyerOrder buyerOrder, SellerOrderGoods sellerOrderGoods){
|
178
|
private void processDepositOrder(BuyerOrder buyerOrder, SellerOrderGoods sellerOrderGoods){
|
173
|
SkupType skupType = SkupType.getSkupType(sellerOrderGoods.getAttributes());
|
179
|
SkupType skupType = SkupType.getSkupType(sellerOrderGoods.getAttributes());
|
174
|
//寄存订单 & 闪购商品
|
180
|
//寄存订单 & 闪购商品
|
|
@@ -182,6 +188,11 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
@@ -182,6 +188,11 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
182
|
}
|
188
|
}
|
183
|
}
|
189
|
}
|
184
|
|
190
|
|
|
|
191
|
+ /**
|
|
|
192
|
+ * 现货
|
|
|
193
|
+ * @param orderInfo
|
|
|
194
|
+ * @param sellerOrderGoods
|
|
|
195
|
+ */
|
185
|
private void processInStockOrder(BuyerOrder orderInfo, SellerOrderGoods sellerOrderGoods){
|
196
|
private void processInStockOrder(BuyerOrder orderInfo, SellerOrderGoods sellerOrderGoods){
|
186
|
Integer uid = orderInfo.getUid();
|
197
|
Integer uid = orderInfo.getUid();
|
187
|
Integer sellerUid = orderInfo.getSellerUid();
|
198
|
Integer sellerUid = orderInfo.getSellerUid();
|
|
@@ -231,26 +242,27 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
@@ -231,26 +242,27 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
231
|
orderOverTimeService.insertDeliveryTime(new OrderOverTime(orderCode, ts + secondsOfLimit, minutes));
|
242
|
orderOverTimeService.insertDeliveryTime(new OrderOverTime(orderCode, ts + secondsOfLimit, minutes));
|
232
|
}
|
243
|
}
|
233
|
|
244
|
|
|
|
245
|
+ /**
|
|
|
246
|
+ * 急速发货非寄存订单,商品:闪购
|
|
|
247
|
+ * @param buyerOrder
|
|
|
248
|
+ * @param sellerOrderGoods
|
|
|
249
|
+ */
|
234
|
private void processQuickDeliverOrder(BuyerOrder buyerOrder, SellerOrderGoods sellerOrderGoods){
|
250
|
private void processQuickDeliverOrder(BuyerOrder buyerOrder, SellerOrderGoods sellerOrderGoods){
|
235
|
-
|
|
|
236
|
// notice
|
251
|
// notice
|
237
|
inBoxFacade.noticeWhenQuickDeliverOrderPaid(buyerOrder.getUid(), buyerOrder.getOrderCode(), sellerOrderGoods);
|
252
|
inBoxFacade.noticeWhenQuickDeliverOrderPaid(buyerOrder.getUid(), buyerOrder.getOrderCode(), sellerOrderGoods);
|
238
|
Integer sellerUid = buyerOrder.getSellerUid();
|
253
|
Integer sellerUid = buyerOrder.getSellerUid();
|
239
|
Integer buyerUid = buyerOrder.getUid();
|
254
|
Integer buyerUid = buyerOrder.getUid();
|
240
|
Long orderCode = buyerOrder.getOrderCode();
|
255
|
Long orderCode = buyerOrder.getOrderCode();
|
241
|
Integer skup = sellerOrderGoods.getId();
|
256
|
Integer skup = sellerOrderGoods.getId();
|
242
|
-
|
|
|
243
|
- if (BuyerOrderUtils.isQuickDeliver(buyerOrder.getAttributes())) {
|
|
|
244
|
- try {
|
|
|
245
|
- // 插入物流调拨信息
|
|
|
246
|
- expressInfoService.saveOperateTransferExpressInfo(buyerUid, orderCode,
|
|
|
247
|
- EXPRESS_TYPE_JUDGE_CENTER.getCode(), operate_transfer, platform_receive);
|
|
|
248
|
- expressInfoService.saveOperateTransferExpressInfo(buyerUid, orderCode,
|
|
|
249
|
- EXPRESS_TYPE_JUDGE_CENTER.getCode(), operate_transfer, judge_pass);
|
|
|
250
|
- } catch (Exception ex) {
|
|
|
251
|
- logger.warn("pay successful, processQuickDeliverOrder invoke save transfer express info fail, sellerUid {}, buyerUid {},orderCode {},skup {}",
|
|
|
252
|
- sellerUid, buyerUid, orderCode, skup);
|
|
|
253
|
- }
|
257
|
+ try {
|
|
|
258
|
+ // 插入物流调拨信息
|
|
|
259
|
+ expressInfoService.saveOperateTransferExpressInfo(buyerUid, orderCode,
|
|
|
260
|
+ EXPRESS_TYPE_JUDGE_CENTER.getCode(), operate_transfer, platform_receive);
|
|
|
261
|
+ expressInfoService.saveOperateTransferExpressInfo(buyerUid, orderCode,
|
|
|
262
|
+ EXPRESS_TYPE_JUDGE_CENTER.getCode(), operate_transfer, judge_pass);
|
|
|
263
|
+ } catch (Exception ex) {
|
|
|
264
|
+ logger.warn("pay successful, processQuickDeliverOrder invoke save transfer express info fail, sellerUid {}, buyerUid {},orderCode {},skup {}",
|
|
|
265
|
+ sellerUid, buyerUid, orderCode, skup);
|
254
|
}
|
266
|
}
|
255
|
}
|
267
|
}
|
256
|
|
268
|
|