dengbiao vor 3 Monaten
Ursprung
Commit
f526a990d7
1 geänderte Dateien mit 8 neuen und 8 gelöschten Zeilen
  1. +8
    -8
      app/customer/svc/svc_central_kitchen_for_school_package.go

+ 8
- 8
app/customer/svc/svc_central_kitchen_for_school_package.go Datei anzeigen

@@ -48,7 +48,7 @@ func CalcBySchoolTerm(uid int, isTeacher bool, buyPackageReq md2.BuyPackageReq)
}
}
if buyPackageReq.IsBuyLunch == 1 {
mealLabelForLunch, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForBreakfast)
mealLabelForLunch, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForLunch)
if err != nil {
return
}
@@ -58,7 +58,7 @@ func CalcBySchoolTerm(uid int, isTeacher bool, buyPackageReq md2.BuyPackageReq)
}
}
if buyPackageReq.IsBuyDinner == 1 {
mealLabelForDinner, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForBreakfast)
mealLabelForDinner, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForDinner)
if err != nil {
return
}
@@ -209,7 +209,7 @@ func CalcByMonth(uid int, isTeacher bool, buyPackageReq md2.BuyPackageReq) (tota
}
}
if buyPackageReq.IsBuyLunch == 1 {
mealLabelForLunch, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForBreakfast)
mealLabelForLunch, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForLunch)
if err != nil {
return
}
@@ -219,7 +219,7 @@ func CalcByMonth(uid int, isTeacher bool, buyPackageReq md2.BuyPackageReq) (tota
}
}
if buyPackageReq.IsBuyDinner == 1 {
mealLabelForDinner, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForBreakfast)
mealLabelForDinner, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForDinner)
if err != nil {
return
}
@@ -369,7 +369,7 @@ func CalcByDay(uid int, isTeacher bool, buyPackageReq md2.BuyPackageReq) (totalP
}
}
if buyPackageReq.IsBuyLunch == 1 {
mealLabelForLunch, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForBreakfast)
mealLabelForLunch, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForLunch)
if err != nil {
return
}
@@ -379,7 +379,7 @@ func CalcByDay(uid int, isTeacher bool, buyPackageReq md2.BuyPackageReq) (totalP
}
}
if buyPackageReq.IsBuyDinner == 1 {
mealLabelForDinner, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForBreakfast)
mealLabelForDinner, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForDinner)
if err != nil {
return
}
@@ -509,7 +509,7 @@ func CalcSupplementaryByDay(uid int, isTeacher bool, buyPackageReq md2.BuyPackag
}
}
if buyPackageReq.IsBuyLunch == 1 {
mealLabelForLunch, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForBreakfast)
mealLabelForLunch, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForLunch)
if err != nil {
return
}
@@ -519,7 +519,7 @@ func CalcSupplementaryByDay(uid int, isTeacher bool, buyPackageReq md2.BuyPackag
}
}
if buyPackageReq.IsBuyDinner == 1 {
mealLabelForDinner, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForBreakfast)
mealLabelForDinner, err = mealLabelDb.GetMealLabel(buyPackageReq.MealLabelIdForDinner)
if err != nil {
return
}


Laden…
Abbrechen
Speichern