소스 검색

Merge branch 'bzq1/monitor_custom' of eta_server/eta_api into debug

baoziqiang 6 달 전
부모
커밋
ae26956159
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      services/edb_monitor/edb_monitor_classify.go

+ 6 - 0
services/edb_monitor/edb_monitor_classify.go

@@ -44,6 +44,12 @@ func SaveEdbMonitorClassify(req request.EdbMonitorClassifySaveReq) (msg string,
 	var rootId int
 	if parentClassify != nil {
 		rootId = parentClassify.RootId
+		if rootId == 0 {
+			rootId = parentClassify.ParentId
+		}
+		if rootId == 0 {
+			rootId = parentClassify.ClassifyId
+		}
 	}
 
 	if req.ClassifyId > 0 {