dengbiao 2 月之前
父節點
當前提交
0eadefe599
共有 1 個檔案被更改,包括 5 行新增5 行删除
  1. +5
    -5
      app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go

+ 5
- 5
app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go 查看文件

@@ -504,6 +504,11 @@ func SetCentralKitchenForSchoolWithSpecByMealLabel(c *gin.Context) {
now := time.Now()
mealLabelDb := db.MealLabelDb{}
mealLabelDb.Set(req.EnterpriseId)
labels, err := mealLabelDb.FindMealLabel(req.GradeId, req.Kind)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}

var nowIds = map[int]bool{}
for _, v := range req.MealLabelList {
@@ -539,11 +544,6 @@ func SetCentralKitchenForSchoolWithSpecByMealLabel(c *gin.Context) {
}
}

labels, err := mealLabelDb.FindMealLabel(req.GradeId, req.Kind)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
var needDelIds []int
for _, v := range *labels {
if !nowIds[v.Id] {


Loading…
取消
儲存