Browse Source

Merge branch 'feature/v4.9.94' of https://jygit.jydev.jianyu360.cn/qmx/jy into feature/v4.9.94

wangshan 6 months ago
parent
commit
086cef0335
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/jfw/front/index.go

+ 1 - 1
src/jfw/front/index.go

@@ -514,7 +514,7 @@ func GetIndexProjectList(typ, pageSize int, resArr []map[string]interface{}) (da
 	if len(resArr) > 5 {
 		return resArr[:5], types
 	}
-	res, err := g.DB().Query(gctx.New(), fmt.Sprintf(`SELECT bid_id,publish_time,bitmapToArray(sign) FROM new_bid_sign WHERE bitmapContains(sign, %d) ORDER BY publish_time DESC LIMIT %d, %d`, typ, pageSize-10, 10))
+	res, err := g.DB().Query(gctx.New(), fmt.Sprintf(`SELECT bid_id,publish_time,bitmapToArray(sign) FROM new_bid_sign WHERE bitmapContains(sign, %d) and publish_time > '%s' ORDER BY publish_time DESC LIMIT %d, %d`, typ, time.Now().AddDate(0, -6, 0).Format(time.DateTime), pageSize-10, 10))
 	if err != nil || res.IsEmpty() {
 		return nil, types
 	}