|
@@ -505,7 +505,7 @@ func SetCentralKitchenForSchoolWithSpecByMealLabel(c *gin.Context) { |
|
|
mealLabelDb := db.MealLabelDb{} |
|
|
mealLabelDb := db.MealLabelDb{} |
|
|
mealLabelDb.Set(req.EnterpriseId) |
|
|
mealLabelDb.Set(req.EnterpriseId) |
|
|
|
|
|
|
|
|
var nowIds map[int]bool |
|
|
|
|
|
|
|
|
var nowIds = map[int]bool{} |
|
|
for _, v := range req.MealLabelList { |
|
|
for _, v := range req.MealLabelList { |
|
|
if v.Id != 0 { |
|
|
if v.Id != 0 { |
|
|
mealLabel, err := mealLabelDb.GetMealLabel(v.Id) |
|
|
mealLabel, err := mealLabelDb.GetMealLabel(v.Id) |
|
|