This commit is contained in:
邹宗楠
2024-10-09 16:37:13 +08:00
parent ee6cce8338
commit f5e1c062ff

View File

@@ -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 {
storeScore = scores[0].TotalScore
}
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------3.5:%d,%s", time.Now().Sub(beginTime)/time.Millisecond, v.ID)
storeInfo := StoreInfo{
StoreID: v.ID,
@@ -6080,6 +6081,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
if err != nil {
return nil, "获取门店减免策略失败", err
}
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------3.6:%d", time.Now().Sub(beginTime)/time.Millisecond)
for _, k := range storePolicy {
if k.StoreID == v.ID {
storeDeductionInfo = StoreDeductionInfo{
@@ -6091,6 +6093,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
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)
@@ -6117,7 +6120,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
}
homePages = append(homePages, homePage)
}
baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------5:%d", time.Now().Sub(beginTime)/time.Millisecond)
return homePages, "", nil
}