Browse Source

fix:审批配置

Roc 8 months ago
parent
commit
56032f1f63
1 changed files with 3 additions and 2 deletions
  1. 3 2
      controllers/report_v2.go

+ 3 - 2
controllers/report_v2.go

@@ -126,9 +126,10 @@ func (this *ReportController) ListReport() {
 	switch filterReportType {
 	switch filterReportType {
 	// 筛选报告类型,1:公共研报,2:共享研报,3:我的研报
 	// 筛选报告类型,1:公共研报,2:共享研报,3:我的研报
 	case 1:
 	case 1:
-		//condition += ` AND a.is_public_publish = ? `
-		condition += `  AND a.state in (2,6) `
+		condition += ` AND a.is_public_publish = ? `
 		pars = append(pars, 1)
 		pars = append(pars, 1)
+		condition += `  AND a.state in (2,6) `
+
 	case 3:
 	case 3:
 		condition += ` AND a.admin_id = ? `
 		condition += ` AND a.admin_id = ? `
 		pars = append(pars, this.SysUser.AdminId)
 		pars = append(pars, this.SysUser.AdminId)