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