1
This commit is contained in:
@@ -6059,6 +6059,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
|||||||
if scores, err := GetWeeklyStoreScore(v.ID, 0); err == nil && len(scores) > 0 {
|
if scores, err := GetWeeklyStoreScore(v.ID, 0); err == nil && len(scores) > 0 {
|
||||||
storeScore = scores[0].TotalScore
|
storeScore = scores[0].TotalScore
|
||||||
}
|
}
|
||||||
|
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------3.5:%d,%s", time.Now().Sub(beginTime)/time.Millisecond, v.ID)
|
||||||
|
|
||||||
storeInfo := StoreInfo{
|
storeInfo := StoreInfo{
|
||||||
StoreID: v.ID,
|
StoreID: v.ID,
|
||||||
@@ -6080,6 +6081,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, "获取门店减免策略失败", err
|
return nil, "获取门店减免策略失败", err
|
||||||
}
|
}
|
||||||
|
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------3.6:%d", time.Now().Sub(beginTime)/time.Millisecond)
|
||||||
for _, k := range storePolicy {
|
for _, k := range storePolicy {
|
||||||
if k.StoreID == v.ID {
|
if k.StoreID == v.ID {
|
||||||
storeDeductionInfo = StoreDeductionInfo{
|
storeDeductionInfo = StoreDeductionInfo{
|
||||||
@@ -6091,6 +6093,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
|||||||
storeDeductionInfos = append(storeDeductionInfos, storeDeductionInfo)
|
storeDeductionInfos = append(storeDeductionInfos, storeDeductionInfo)
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
|
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------3.7:%d", time.Now().Sub(beginTime)/time.Millisecond)
|
||||||
|
|
||||||
}
|
}
|
||||||
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------4:%d", time.Now().Sub(beginTime)/time.Millisecond)
|
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------4:%d", time.Now().Sub(beginTime)/time.Millisecond)
|
||||||
@@ -6117,7 +6120,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
|||||||
}
|
}
|
||||||
homePages = append(homePages, homePage)
|
homePages = append(homePages, homePage)
|
||||||
}
|
}
|
||||||
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------5:%d", time.Now().Sub(beginTime)/time.Millisecond)
|
|
||||||
|
|
||||||
return homePages, "", nil
|
return homePages, "", nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user