|
@@ -34,7 +34,7 @@ func GetTacticsList(endDate string) (list []*Tactics, err error) {
|
|
|
INNER JOIN article_content AS b ON a.id=b.article_id
|
|
|
INNER JOIN article_category AS c ON a.id=c.article_id
|
|
|
INNER JOIN article_categoryinfo AS d ON c.category_id=d.id
|
|
|
- WHERE a.publish_status=1 AND a.publish_date>=? AND d.id IN (28,32,45,50,57,62,71,72,74,79,80,84,85,86,88,89,90) `
|
|
|
+ WHERE a.publish_status=1 AND a.publish_date>=? AND d.id IN (28,32,45,50,57,62,72,74,79,80,84,86,88,89,90) `
|
|
|
_, err = o.Raw(sql, endDate).QueryRows(&list)
|
|
|
return
|
|
|
}
|
|
@@ -47,7 +47,8 @@ func GetTacticsListAll() (list []*Tactics, err error) {
|
|
|
INNER JOIN article_content AS b ON a.id=b.article_id
|
|
|
INNER JOIN article_category AS c ON a.id=c.article_id
|
|
|
INNER JOIN article_categoryinfo AS d ON c.category_id=d.id
|
|
|
- WHERE a.publish_status=1 AND d.id IN (28,32,45,50,57,62,71,72,74,79,80,84,85,86,88,89,90) `
|
|
|
+ WHERE a.publish_status=1 AND d.id IN (28,32,45,50,57,62,72,74,79,80,84,86,88,89,90) `
|
|
|
+ //IN(85,71)
|
|
|
_, err = o.Raw(sql).QueryRows(&list)
|
|
|
return
|
|
|
}
|