@@ -444,7 +444,7 @@ func GetReportStage(classifyIdFirst, classifyIdSecond, classifyIdThird int) (cou
}
yearStart := time.Date(time.Now().Local().Year(), 1, 1, 0, 0, 0, 0, time.Local)
- sql := `SELECT MAX(stage) AS max_stage FROM report WHERE create_time > ? `
+ sql := `SELECT COALESCE(MAX(stage),0) AS count FROM report WHERE create_time > ? `
if classifyIdThird > 0 {
sql += " AND classify_id_third = ? "
} else if classifyIdSecond > 0 {
@@ -133,10 +133,10 @@ type RoleMenu struct {
type RoleMenuList struct {
- MenuId int `description:"导航唯一标识"`
- Name string `description:"导航名称"`
- NameEn string `description:"导航名称(英文)"`
- Child []*RoleMenu
+ MenuId int `description:"导航唯一标识"`
+ Name string `description:"导航名称"`
+ NameEn string `description:"导航名称(英文)"`
+ Child []*RoleMenu `gorm:"-"`
CheckList []int