Browse Source

更新

master
huangjiajun 6 months ago
parent
commit
8bbdb664fe
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hdl/hdl_condition.go

+ 2
- 2
hdl/hdl_condition.go View File

@@ -392,7 +392,7 @@ func TotalSmallTeam(eg *xorm.Engine, uid string) string {
} }
return "0" return "0"
} }
func GetOwnTaskVideoNum(eg *xorm.Engine, uid int, task map[string]string, t time.Time) int {
func GetOwnTaskVideoNum(eg *xorm.Engine, uid interface{}, task map[string]string, t time.Time) string {
stime := time.Date(t.Year(), t.Month(), t.Day()-zhios_condition_statistics_utils.StrToInt(task["within_days"]), t.Hour(), 0, 0, 0, t.Location()).Format("20060102") stime := time.Date(t.Year(), t.Month(), t.Day()-zhios_condition_statistics_utils.StrToInt(task["within_days"]), t.Hour(), 0, 0, 0, t.Location()).Format("20060102")
if zhios_condition_statistics_utils.StrToInt(task["within_days"]) == 0 { if zhios_condition_statistics_utils.StrToInt(task["within_days"]) == 0 {
stime = "0" stime = "0"
@@ -400,5 +400,5 @@ func GetOwnTaskVideoNum(eg *xorm.Engine, uid int, task map[string]string, t time
etime := t.Format("20060102") etime := t.Format("20060102")
sess := eg.Where("uid=? and time>=? and time<? and task_type=? and task_id>0", uid, stime, etime, 3) sess := eg.Where("uid=? and time>=? and time<? and task_type=? and task_id>0", uid, stime, etime, 3)
sum, _ := sess.Sum(&model.TaskVideoNum{}, "count") sum, _ := sess.Sum(&model.TaskVideoNum{}, "count")
return int(sum)
return zhios_condition_statistics_utils.Int64ToStr(int64(sum))
} }

Loading…
Cancel
Save