Browse Source

查询ppt

xyxie 5 ngày trước cách đây
mục cha
commit
58aef56813
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      controllers/ppt_report.go

+ 2 - 2
controllers/ppt_report.go

@@ -50,8 +50,8 @@ func (this *PptV2Controller) ReportClassify() {
 			cond += ` AND admin_id = ?`
 			pars = append(pars, sysUser.AdminId)
 		case 2:
-			cond += ` AND collaborate_type = ? AND (admin_id = ? OR FIND_IN_SET(?, collaborate_users)) `
-			pars = append(pars, utils.ReportWriteTypeGroup, sysUser.AdminId)
+			cond += ` AND collaborate_type = ? AND (admin_id = ? OR (collaborate_users IS NOT NULL AND INSTR(','||collaborate_users||',', ','||?||',') > 0)) `
+			pars = append(pars, utils.ReportWriteTypeGroup, sysUser.AdminId, sysUser.AdminId)
 		case 3:
 			cond += ` AND report_source = ? AND state = ?`
 			pars = append(pars, utils.ReportSourceOuter, models.ReportStatePass)