From f097ec3cabdedde6b0b213d6c51230bf04f7be47 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Mon, 26 Aug 2024 11:33:29 +0800 Subject: [PATCH] 1 --- .../hdl/enterprise_manage/hdl_central_kitchen_for_school.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)