拣货完成,更改参数
This commit is contained in:
parent
6398635707
commit
1112033ed8
@ -466,7 +466,7 @@ public class ShopOrderInfoServiceImpl extends BaseServiceImpl<ShopOrderInfoMappe
|
||||
}
|
||||
|
||||
Map<String, Object> requestParams = new HashMap<>();
|
||||
requestParams.put("order_id", sfOrderId);
|
||||
requestParams.put("order_id", sfOrderId); // 顺丰订单号
|
||||
requestParams.put("store_id", storeId);
|
||||
|
||||
ThirdApiRes response = sfExpressApiService.notifyProductReady(requestParams);
|
||||
|
||||
@ -822,7 +822,7 @@ public class SFExpressApiServiceImpl implements SFExpressApiService {
|
||||
|
||||
params.put("order_type", 1); // 1表示顺丰订单号、2表示商家订单号
|
||||
params.put("shop_id", shopStoreSameCityTransportBase.getShop_id());
|
||||
params.put("shop_type", 2);// 1表示顺丰店铺id、2表示接入方店铺id
|
||||
params.put("shop_type", 1);// 1表示顺丰店铺id、2表示接入方店铺id
|
||||
params.put("notice_ready_time", System.currentTimeMillis() / 1000);
|
||||
params.putAll(buildCommonParams());
|
||||
|
||||
@ -1017,14 +1017,14 @@ public class SFExpressApiServiceImpl implements SFExpressApiService {
|
||||
//出库扣减思迅库存star
|
||||
// RMK 第三方数据同步相关:redis 给这个商品减去对应的库存
|
||||
QueryWrapper<ShopOrderItem> itemQueryWrapper = new QueryWrapper<>();
|
||||
String order_id=shopStoreSfOrder.getShop_order_id();
|
||||
String order_id = shopStoreSfOrder.getShop_order_id();
|
||||
itemQueryWrapper.eq("order_id", order_id);
|
||||
List<ShopOrderItem> order_item_rows = shopOrderItemService.find(itemQueryWrapper);
|
||||
if(!order_item_rows.isEmpty()){
|
||||
if (!order_item_rows.isEmpty()) {
|
||||
for (ShopOrderItem shopOrderItem : order_item_rows) {
|
||||
Map<String, Integer> stockDeltaMap = new HashMap<>();
|
||||
String item_src_id= shopOrderItem.getItem_src_id();
|
||||
Integer order_item_quantity=shopOrderItem.getOrder_item_quantity();
|
||||
String item_src_id = shopOrderItem.getItem_src_id();
|
||||
Integer order_item_quantity = shopOrderItem.getOrder_item_quantity();
|
||||
stockDeltaMap.put(item_src_id + "-" + shopStoreSfOrder.getShop_order_id(), -order_item_quantity);
|
||||
syncThirdDataService.incrProductStockToRedis(stockDeltaMap);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user