浏览代码

Merge branch 'debug' of http://8.136.199.33:3000/eta_server/eta_api into debug

xyxie 8 月之前
父节点
当前提交
dd9d5ca8f0
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 1 0
      controllers/report_v2.go
  2. 6 0
      services/classify.go

+ 1 - 0
controllers/report_v2.go

@@ -267,6 +267,7 @@ func (this *ReportController) ListReport() {
 					grantUserMap = make(map[int]bool)
 				}
 				grantUserMap[v.AdminId] = true
+				grantMap[v.ReportId] = grantUserMap
 			}
 
 			for i, item := range list {

+ 6 - 0
services/classify.go

@@ -560,6 +560,12 @@ func inheritReportChapterType(parentClassifyId, currClassifyId int) (err error)
 	obj := models.ReportChapterType{}
 	err = obj.MultiCreate(addList)
 
+	// 修改CRM权限
+	go func() {
+		var syncReq ChapterTypeSyncReq
+		_, _ = ReportChapterTypeSync(&syncReq)
+	}()
+
 	return
 }