Browse Source

fix:分类章节添加

zqbao 7 months ago
parent
commit
72ce19a6f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/report_chapter_type.go

+ 1 - 1
controllers/report_chapter_type.go

@@ -137,7 +137,7 @@ func (this *ReportChapterTypeController) Add() {
 		br.ErrMsg = "获取重名报告章节失败, Err:" + e.Error()
 		return
 	}
-	if exists != nil {
+	if exists != nil && exists.ReportChapterTypeId > 0 {
 		br.Msg = "章节名称已存在"
 		return
 	}