dengbiao 3 mesi fa
parent
commit
85a20b67e0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      app/db/db_meal_label.go

+ 1
- 1
app/db/db_meal_label.go Vedi File

@@ -19,7 +19,7 @@ func (MealLabelDb *MealLabelDb) Set(enterpriseId int) { // set方法

func (MealLabelDb *MealLabelDb) FindMealLabel(gradeId int, kind int32) (*[]model.MealLabel, error) {
var m []model.MealLabel
if err := MealLabelDb.Db.Desc("id").Where("enterprise_id =?", MealLabelDb.EnterpriseId).And("grade_id =?", gradeId).
if err := MealLabelDb.Db.Asc("id").Where("enterprise_id =?", MealLabelDb.EnterpriseId).And("grade_id =?", gradeId).
And("kind =?", kind).Find(&m); err != nil {
return nil, logx.Error(err)
}


Caricamento…
Annulla
Salva