|
@@ -348,7 +348,7 @@ func (mae *MarketAnalysisEntity) GetPartResult(flag int) (map[string]interface{}
|
|
|
return mae.getQueryItem()
|
|
|
}
|
|
|
thisCacheKey := fmt.Sprintf(ReportCacheKey, mae.MgoRecordId, flag)
|
|
|
- if cacheData := redis.Get(ReportCacheDB, thisCacheKey); false && cacheData != nil {
|
|
|
+ if cacheData := redis.Get(ReportCacheDB, thisCacheKey); cacheData != nil {
|
|
|
if cacheMap, ok := cacheData.(map[string]interface{}); ok && len(cacheMap) > 0 {
|
|
|
return cacheMap, nil
|
|
|
}
|