diff --git a/app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go b/app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go index b8a9ea3..f066fe7 100644 --- a/app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go +++ b/app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go @@ -505,7 +505,7 @@ func SetCentralKitchenForSchoolWithSpecByMealLabel(c *gin.Context) { mealLabelDb := db.MealLabelDb{} mealLabelDb.Set(req.EnterpriseId) - var nowIds map[int]bool + var nowIds = map[int]bool{} for _, v := range req.MealLabelList { if v.Id != 0 { mealLabel, err := mealLabelDb.GetMealLabel(v.Id)