瀏覽代碼

update

add_mode
DengBiao 1 年之前
父節點
當前提交
46ada7b7e7
共有 2 個檔案被更改,包括 16 行新增0 行删除
  1. +15
    -0
      app/admin/hdl/hdl_enterprise.go
  2. +1
    -0
      app/router/admin_router.go

+ 15
- 0
app/admin/hdl/hdl_enterprise.go 查看文件

@@ -118,6 +118,21 @@ func SchoolBelowGrade(c *gin.Context) {
return
}

func PeriodBelowGrade(c *gin.Context) {
periodId := c.DefaultQuery("period_id", "")
gradeDb := db.GradeDb{}
gradeDb.Set(0)
gradeList, err := gradeDb.FindGradeByPeriodId(utils.StrToInt(periodId))
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
e.OutSuc(c, map[string]interface{}{
"list": gradeList,
}, nil)
return
}

func SchoolBelowPeriod(c *gin.Context) {
enterpriseId := c.DefaultQuery("enterprise_id", "")
periodDb := db.PeriodDb{}


+ 1
- 0
app/router/admin_router.go 查看文件

@@ -142,6 +142,7 @@ func rEnterprise(r *gin.RouterGroup) {
r.POST("/addGrade", hdl2.EnterpriseAddGrade)
r.GET("/detail", hdl2.Detail)
r.GET("/schoolBelowPeriod", hdl2.SchoolBelowPeriod) //"学校"下学段
r.GET("/periodBelowGrade", hdl2.PeriodBelowGrade) //"学段"下年级
r.GET("/schoolBelowGrade", hdl2.SchoolBelowGrade) //"学校"下年级
r.GET("/schoolGradeBelowClass", hdl2.SchoolGradeBelowClass) //"学校"年级下班级
r.POST("/setCentralKitchenForSchoolWithSpecForSystem", hdl2.SetCentralKitchenForSchoolWithSpecForSystem) //"央厨-学校-套餐-系统" 价格设置


Loading…
取消
儲存