Explorar o código

fix:分类章节添加

zqbao hai 7 meses
pai
achega
72ce19a6f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}