瀏覽代碼

es查询数据周期修改

WH01243 2 年之前
父節點
當前提交
52eafdd171
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jyBXSubscribe/rpc/model/push.go

+ 2 - 2
jyBXSubscribe/rpc/model/push.go

@@ -914,8 +914,8 @@ func (s *subscribePush) getDefaultDatasSQL(bsp *ViewCondition) (str string) {
 
 	bools := []string{}
 	musts := []string{}
-	//发布时间最新7天
-	musts = append(musts, fmt.Sprintf(bidTime, time.Now().AddDate(0, 0, -7).Unix()))
+	//发布时间最新7天(正式环境需要修改)
+	musts = append(musts, fmt.Sprintf(bidTime, time.Now().AddDate(0, 0, -365*4).Unix()))
 	//省份
 	areaCity := []string{}
 	if len(bsp.Area) > 0 {