|
@@ -468,7 +468,7 @@ func (r *ReportChapterType) SetEnabled(id, enabled int) (err error) {
|
|
|
}
|
|
|
|
|
|
// GetReportChapterTypeListByClassifyId
|
|
|
-// @Description: 通过报告类型获取章节类型列表
|
|
|
+// @Description: 通过报告类型获取章节类型列表(已启用的)
|
|
|
// @author: Roc
|
|
|
// @datetime 2024-06-03 16:00:12
|
|
|
// @param classifyId int
|
|
@@ -480,3 +480,17 @@ func GetReportChapterTypeListByClassifyId(classifyId int) (list []*ReportChapter
|
|
|
_, err = o.Raw(sql, classifyId).QueryRows(&list)
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+// GetAllReportChapterTypeListByClassifyId
|
|
|
+// @Description: 通过报告类型获取所有的章节类型列表
|
|
|
+// @author: Roc
|
|
|
+// @datetime 2024-06-03 16:00:12
|
|
|
+// @param classifyId int
|
|
|
+// @return list []*ReportChapterType
|
|
|
+// @return err error
|
|
|
+func GetAllReportChapterTypeListByClassifyId(classifyId int) (list []*ReportChapterType, err error) {
|
|
|
+ o := orm.NewOrmUsingDB("rddp")
|
|
|
+ sql := ` SELECT * FROM report_chapter_type WHERE report_classify_id = ? `
|
|
|
+ _, err = o.Raw(sql, classifyId).QueryRows(&list)
|
|
|
+ return
|
|
|
+}
|