Commit 7d8e2ac0 by hcy

PhysicalStock

parent 44c63e35
Showing with 1 additions and 1 deletions
......@@ -289,7 +289,7 @@ func (ls *LyService) GetStock(sku model.LySku) (stock_all int64, jd_stock int64,
jd_stock_t := int64(0)
//这里还有一个逻辑
//如果是寄售的数据(source=12),获取的库存还要减去锁库的库存
if sku.Source == 12 || php2go.InArray(sku.Canal, []string{"L0018319", "L0013521", "L0018562", "L0017764", "L0003270", "L0012413", "L0013521"}) {
if sku.Source == 12 || php2go.InArray(sku.Canal, []string{"L0018319", "L0013521", "L0018562", "L0017764", "L0003270", "L0012413", "L0013521", "L0019677"}) {
//获取总锁库库存
redisCon, shouldClose := ls.getRedisConn("spu")
if shouldClose {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment