mirror of https://github.com/jeecgboot/jeecg-boot
Remove status setting in MabangOrderSyncJob since allstatus are now automatically added
parent
8e881edd54
commit
c4c9390acc
|
@ -58,10 +58,7 @@ public class MabangOrderSyncJob implements Job {
|
||||||
List<List<String>> platformOrderIdLists = Lists.partition(platformOrderIds, 10);
|
List<List<String>> platformOrderIdLists = Lists.partition(platformOrderIds, 10);
|
||||||
List<OrderListRequestBody> requests = new ArrayList<>();
|
List<OrderListRequestBody> requests = new ArrayList<>();
|
||||||
for (List<String> platformOrderIdList : platformOrderIdLists) {
|
for (List<String> platformOrderIdList : platformOrderIdLists) {
|
||||||
// There's no other way to sync orders of all statuses, so we duplicate requests to make sure
|
requests.add(new OrderListRequestBody().setPlatformOrderIds(platformOrderIdList));
|
||||||
// that we get all orders
|
|
||||||
requests.add(new OrderListRequestBody().setPlatformOrderIds(platformOrderIdList).setStatus(OrderStatus.AllUnshipped));
|
|
||||||
requests.add(new OrderListRequestBody().setPlatformOrderIds(platformOrderIdList).setStatus(OrderStatus.AllNonUnshipped));
|
|
||||||
}
|
}
|
||||||
List<Order> mabangOrders = new ArrayList<>();
|
List<Order> mabangOrders = new ArrayList<>();
|
||||||
ExecutorService executor = Executors.newFixedThreadPool(DEFAULT_NUMBER_OF_THREADS);
|
ExecutorService executor = Executors.newFixedThreadPool(DEFAULT_NUMBER_OF_THREADS);
|
||||||
|
|
Loading…
Reference in New Issue