1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user