This commit is contained in:
邹宗楠
2024-10-09 16:14:31 +08:00
parent 8311d3996e
commit 1f6dc7185e
4 changed files with 8 additions and 11 deletions

View File

@@ -3734,13 +3734,10 @@ func GetTopSkusByStoreIDs(ctx *jxcontext.Context, storeIDs []int) (storeSkuNameE
if len(storeIDs) == 0 {
return storeSkuNameExt2, err
}
beginTime := time.Now()
storeSkuNameExt, err := dao.GetTopSkusByStoreIDs(db, storeIDs)
if err != nil {
return nil, err
}
usedMilliSecond := time.Now().Sub(beginTime) / time.Millisecond
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------1:%d", usedMilliSecond)
for _, v := range storeSkuNameExt {
if skuMap[v.SkuID] == nil {
@@ -3761,7 +3758,6 @@ func GetTopSkusByStoreIDs(ctx *jxcontext.Context, storeIDs []int) (storeSkuNameE
}
}
}
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------2:%d", time.Now().Sub(beginTime)/time.Millisecond)
return storeSkuNameExt2, err
}