Browse Source

fix:每周邮件数据汇总调整月报的类型

Roc 2 years ago
parent
commit
ec72147d3a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      models/report_view.go

+ 3 - 2
models/report_view.go

@@ -80,7 +80,8 @@ func GetRddpReportViewersDetail(startTime, endTime string) (items []*ResearchRep
 			WHERE uvh.create_time >?
             AND uvh.create_time <=?
 			AND c.company_id NOT IN (1)
-			AND r.classify_name_first not in ("周报","大宗商品","月报","数据点评","会议纪要","年报合集","需求报告")
+			AND r.classify_name_first not in ("周报","大宗商品","数据点评","会议纪要","年报合集","需求报告")
+			AND r.classify_id_second not in (113,114,127,134,141,149)
 			ORDER BY uvh.create_time DESC
 `
 	o := orm.NewOrm()
@@ -158,7 +159,7 @@ FROM
 			WHERE uvh.create_time >?
             AND uvh.create_time <=?
 			AND c.company_id NOT IN (1)
-			AND r.classify_name_first = "月报"
+			AND r.classify_id_second in (113,114,127,134,141,149)
 			ORDER BY uvh.create_time DESC
 `
 	o := orm.NewOrm()