Browse Source

update

master
dengbiao 4 months ago
parent
commit
85a20b67e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/db/db_meal_label.go

+ 1
- 1
app/db/db_meal_label.go View 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)
}


Loading…
Cancel
Save