|
@@ -659,7 +659,7 @@ func (this *HomeController) NewList() {
|
|
|
}
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
- tagId, _ := this.GetInt("TagId")
|
|
|
+ //tagId, _ := this.GetInt("TagId")
|
|
|
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
@@ -682,15 +682,14 @@ func (this *HomeController) NewList() {
|
|
|
br.ErrMsg = "GetCountCompanyProductCompanyId,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- if tagId > 0 {
|
|
|
- tagInfo, err := models.GetCygxTagByTagId(tagId)
|
|
|
- if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
- br.Msg = "获取失败"
|
|
|
- br.ErrMsg = "GetCygxTagByTagId,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+ //if tagId > 0 {
|
|
|
+ // tagInfo, err := models.GetCygxTagByTagId(tagId)
|
|
|
+ // if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
+ // br.Msg = "获取失败"
|
|
|
+ // br.ErrMsg = "GetCygxTagByTagId,Err:" + err.Error()
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ //}
|
|
|
//condition += " AND source = 'article' "
|
|
|
//查询近一个月的数据
|
|
|
conditionInit = " AND publish_date > '" + time.Now().AddDate(0, 0, -30).Format(utils.FormatDateTime) + "'"
|