浏览代码

test

tags/v1.0.4
huangjiajun 1年前
父节点
当前提交
98b7ce815a
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      db/db_day_luck_draw_period_reward.go

+ 7
- 0
db/db_day_luck_draw_period_reward.go 查看文件

@@ -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("")


正在加载...
取消
保存