Browse Source

calorie

master
黄梓健 5 years ago
parent
commit
828ee65169
  1. 2
      models/CalorieUser.go

2
models/CalorieUser.go

@ -37,7 +37,7 @@ func (t *CalorieUser) IncrScore(score int) (int64, error) {
func (t *CalorieUser) CountByCalorieId(calorieId, rehearsalId interface{}) (int64, error) {
return core.GetXormAuto().Where("is_delete=0 and calorie_id=? and rehearsal_id=?",
calorieId, rehearsalId).Count(t)
calorieId, rehearsalId).Count(&CalorieUser{})
}
func GetCalorieUsersByCalorieIdAndScore(calorieId, rehearsalId, score interface{}) ([]*CalorieUser, error) {

Loading…
Cancel
Save