|
@@ -1495,9 +1495,10 @@ func (this *ReportController) ReportListByType() {
|
|
|
br.Msg = "请选择报告类型"
|
|
|
return
|
|
|
}
|
|
|
- fmt.Println(tbdb)
|
|
|
condition = ` AND publish_status = 1 `
|
|
|
-
|
|
|
+ if user.CompanyId != utils.HZ_COMPANY_ID {
|
|
|
+ condition += ` AND visible_range = 1 `
|
|
|
+ }
|
|
|
total, err := models.GetCygxReportSelectionPublic(condition, tbdb, pars)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取信息失败"
|