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