Explorar el Código

update

add_mode
DengBiao hace 1 año
padre
commit
46ada7b7e7
Se han modificado 2 ficheros con 16 adiciones y 0 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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) //"央厨-学校-套餐-系统" 价格设置


Cargando…
Cancelar
Guardar