|
@@ -829,9 +829,6 @@ func (this *HomeController) NewList() {
|
|
|
|
|
|
//fmt.Println("condition:",condition)
|
|
|
|
|
|
- //查询近一个月的数据
|
|
|
- conditionInit = " AND publish_date > '" + time.Now().AddDate(0, 0, -30).Format(utils.FormatDateTime) + "'"
|
|
|
-
|
|
|
if tagIds != "" {
|
|
|
conditionTagIdsInit, err := services.GetConditionInitByTagIds(tagIds)
|
|
|
if err != nil {
|
|
@@ -840,6 +837,9 @@ func (this *HomeController) NewList() {
|
|
|
return
|
|
|
}
|
|
|
conditionInit += conditionTagIdsInit
|
|
|
+ } else {
|
|
|
+ //查询近一个月的数据
|
|
|
+ conditionInit = " AND publish_date > '" + time.Now().AddDate(0, 0, -30).Format(utils.FormatDateTime) + "'"
|
|
|
}
|
|
|
|
|
|
//conditionInit += ` AND source IN ('newchart')`
|