- 修复GetEffectiveActStoreSkuInfo不返回平台信息的bug

This commit is contained in:
gazebo
2019-07-25 16:53:49 +08:00
parent 7ea9a4d493
commit f265e13c2c
2 changed files with 15 additions and 8 deletions

View File

@@ -295,12 +295,12 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao.
return err
}
actStoreSkuList, err := dao.GetEffectiveActStoreSkuInfo(db, 0, nil, []int{jxStoreID}, jxutils.IntMap2List(skuIDMap), order.OrderCreatedAt, order.OrderCreatedAt)
actStoreSkuList, err := dao.GetEffectiveActStoreSkuInfo(db, 0, []int{order.VendorID}, []int{jxStoreID}, jxutils.IntMap2List(skuIDMap), order.OrderCreatedAt, order.OrderCreatedAt)
if err != nil {
globals.SugarLogger.Errorf("updateOrderSkuOtherInfo can not get sku promotion info for error:%v", err)
return err
}
actStoreSkuMap = jxutils.NewActStoreSkuMap(actStoreSkuList, true)
actStoreSkuMap = jxutils.NewActStoreSkuMap(actStoreSkuList, false)
}
for _, v := range orderSkus {