Browse Source

no message

xingzai 7 months ago
parent
commit
1683057525
1 changed files with 4 additions and 5 deletions
  1. 4 5
      controllers/home.go

+ 4 - 5
controllers/home.go

@@ -10,7 +10,6 @@ import (
 	"html"
 	"strconv"
 	"strings"
-	"time"
 )
 
 type HomeController struct {
@@ -648,10 +647,10 @@ func (this *HomeController) NewList() {
 		conditionInit += " AND chart_permission_id  =  " + strconv.Itoa(chartPermissionId)
 	}
 
-	if tagIds == "" && chartPermissionId == 0 {
-		//查询近一个月的数据
-		conditionInit += " AND publish_date  >   '" + time.Now().AddDate(0, 0, -30).Format(utils.FormatDateTime) + "'"
-	}
+	//if tagIds == "" && chartPermissionId == 0 {
+	//	//查询近一个月的数据
+	//	conditionInit += " AND publish_date  >   '" + time.Now().AddDate(0, 0, -30).Format(utils.FormatDateTime) + "'"
+	//}
 
 	//conditionInit += `  AND source IN ('newchart')`
 	//if user.CompanyId <= 1 || totalRai == 0 {