|
@@ -118,7 +118,7 @@ const (
|
|
|
biddingIndex = "bidding"
|
|
|
biddingType = "bidding"
|
|
|
BuyerSupplyInfoRedisKey = "BuyerSupplyInfo_%s" // 采购单位补充信息缓存
|
|
|
- BuyerSupplyInfoRedisTime = 60 * 60 // 采购单位补充信息缓存时间 一个小时
|
|
|
+ BuyerSupplyInfoRedisTime = 2*60 * 60 // 采购单位补充信息缓存时间 一个小时
|
|
|
BuyerProjectInfoRedisKey = "BuyerProjectInfo_%s" // 采购单位补充项目信息缓存Key (项目数量采购规模)
|
|
|
BuyerProjectInfoRedisTime = 24 * 60 * 60 // 采购单位补充项目信息缓存时间
|
|
|
)
|
|
@@ -646,7 +646,7 @@ func GetNewBiddingCount(buyer string) int64 {
|
|
|
mustQuery = append(mustQuery, fmt.Sprintf(`{"term": {"buyer": "%s"}}`, buyer))
|
|
|
aa := fmt.Sprintf(`{"query":{"bool":{"must":[%s]}}}`, strings.Join(mustQuery, ","))
|
|
|
count := elastic.Count(biddingIndex, biddingType, aa)
|
|
|
- logx.Info("GetNewBiddingCount 单次耗时:", time.Since(start))
|
|
|
+ logx.Info("GetNewBiddingCount 单次耗时:", buyer, time.Since(start))
|
|
|
return count
|
|
|
}
|
|
|
|