Browse Source

test

tags/v1.0.4
huangjiajun 1 year ago
parent
commit
98b7ce815a
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      db/db_day_luck_draw_period_reward.go

+ 7
- 0
db/db_day_luck_draw_period_reward.go View File

@@ -23,6 +23,13 @@ func GetDayLuckDrawPeriodRewardList(Db *xorm.Engine, parameter *md.DayLuckDrawPe
}
return list, count, nil
}
func GetDayLuckDrawPeriodRewardSum(Db *xorm.Engine, uid int) float64 {
sum, err := Db.Where("uid=?", uid).Sum(&model.DayLuckDrawPeriodReward{}, "reward")
if err != nil {
return 0
}
return sum
}
func DayLuckDrawPeriodRewardGetCount(Db *xorm.Engine, parameter *md.DayLuckDrawPeriodRewardRequest) int {
var ord model.DayLuckDrawPeriodReward
session := Db.Where("")


Loading…
Cancel
Save