This commit is contained in:
邹宗楠
2024-10-10 08:57:55 +08:00
parent 46e8b26ef8
commit 64064afc0e
2 changed files with 4 additions and 4 deletions

View File

@@ -3749,6 +3749,7 @@ func GetTopSkusByStoreIDs(ctx *jxcontext.Context, storeIDs []int) (storeSkuNameE
for _, v := range skuMap {
storeSkuNameExt2 = append(storeSkuNameExt2, v)
}
globals.SugarLogger.Debugf("----------storeSkuNameExt2:%s", utils.Format4Output(storeSkuNameExt2, false))
for i := 0; i < len(storeSkuNameExt2)-1; i++ {
for j := 0; j < len(storeSkuNameExt2)-i-1; j++ {
if storeSkuNameExt2[j].Count < storeSkuNameExt2[j+1].Count {
@@ -3758,6 +3759,7 @@ func GetTopSkusByStoreIDs(ctx *jxcontext.Context, storeIDs []int) (storeSkuNameE
}
}
}
globals.SugarLogger.Debugf("----------storeSkuNameExt255:%s", utils.Format4Output(storeSkuNameExt2, false))
return storeSkuNameExt2, err
}