去掉打印

This commit is contained in:
苏尹岚
2020-09-09 16:45:10 +08:00
parent b1fb265c2a
commit d2ba87920f

View File

@@ -476,6 +476,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
}
var bareSku *partner.StoreSkuInfo
isNeedReorder := false
if storeID == 667481 {
fmt.Println("fffffffffffffffffffffffffffffffffffffffffffffff", *sku)
}
if isStoreSkuSyncNeedDelete(sku) {
if !dao.IsVendorThingIDEmpty(sku.VendorSkuID) {
bareSku = storeSkuSyncInfo2Bare(sku)
@@ -517,9 +520,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
}
isNeedReorder = true
} else {
if storeID == 667481 {
fmt.Println("fffffffffffffffffffffffffffffffffffffffffffffff")
}
if dao.IsVendorThingIDEmpty(sku.VendorSkuID) && vendorID != model.VendorIDJDShop {
// err = fmt.Errorf("门店:%d修改没有创建的商品:%d", storeID, sku.SkuID)
if vendorID != model.VendorIDJDShop || (vendorID == model.VendorIDJDShop && storeID == model.JdShopMainStoreID && sku.StoreSkuStatus != model.SkuStatusDontSale) {
@@ -542,13 +542,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
updateList = append(updateList, calVendorPrice4StoreSku(sku, storeDetail.PricePercentagePackObj, int(storeDetail.PricePercentage)))
}
}
if storeID == 667481 {
fmt.Println("hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh", sku.SkuSyncStatus)
}
if model.IsSyncStatusPrice(sku.SkuSyncStatus) {
if storeID == 667481 {
fmt.Println("gggggggggggggggggggggggggggggggggggggggg", sku.SkuSyncStatus)
}
bareSku = storeSkuSyncInfo2Bare(calVendorPrice4StoreSku(sku, storeDetail.PricePercentagePackObj, int(storeDetail.PricePercentage)))
priceList = append(priceList, bareSku)
}