调试
This commit is contained in:
@@ -1164,19 +1164,14 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
|
||||
if inSkuBind != nil {
|
||||
if inSkuBind.Stock != nil {
|
||||
skuBind.Stock = *inSkuBind.Stock
|
||||
fmt.Println("skuBind.Stock", *inSkuBind.Stock)
|
||||
} else {
|
||||
fmt.Println("test1")
|
||||
goto setStock
|
||||
if tmpStatus == model.StoreSkuBindStatusNormal {
|
||||
skuBind.Stock = model.MaxStoreSkuStockQty
|
||||
} else {
|
||||
skuBind.Stock = 0
|
||||
}
|
||||
}
|
||||
} else {
|
||||
fmt.Println("test2")
|
||||
goto setStock
|
||||
}
|
||||
setStock:
|
||||
{
|
||||
fmt.Println("test3")
|
||||
//关注设置默认库存
|
||||
if tmpStatus == model.StoreSkuBindStatusNormal {
|
||||
skuBind.Stock = model.MaxStoreSkuStockQty
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user