Browse Source

fix: 新增分类

hsun 4 weeks ago
parent
commit
c2cf0a2a69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/classify.go

+ 1 - 1
services/classify.go

@@ -206,7 +206,7 @@ func AddReportClassify(classifyName string, parentId int, chartPermissionIdList
 		}
 		return
 	}
-	if item != nil {
+	if item != nil && item.Id > 0 {
 		errMsg = "分类名称:" + classifyName + "已存在"
 		isSendEmail = false
 		err = errors.New(errMsg)