- 去除无用代码,主要是promotion相关的

This commit is contained in:
gazebo
2019-08-14 11:12:33 +08:00
parent 667e27d62e
commit 4c484a6280
17 changed files with 179 additions and 1878 deletions

View File

@@ -433,11 +433,7 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, isFocus bo
storeIDs, skuIDs = GetStoreAndSkuIDsFromInfo(skuNamesInfo)
}
beginTime := time.Now()
if globals.EnableNewAct {
err = updateActPrice4StoreSkuNameNew(db, storeIDs, skuIDs, skuNamesInfo)
} else {
// err = updateActPrice4StoreSkuName(db, storeIDs, skuIDs, skuNamesInfo)
}
err = updateActPrice4StoreSkuNameNew(db, storeIDs, skuIDs, skuNamesInfo)
globals.SugarLogger.Debugf("GetStoresSkusNew updateActPrice4StoreSkuName:%v", time.Now().Sub(beginTime))
if !isFocus {
err = updateUnitPrice4StoreSkuNameNew(db, skuNamesInfo)