|
|
@@ -392,3 +392,8 @@ func TotalSmallTeam(eg *xorm.Engine, uid string) string { |
|
|
|
} |
|
|
|
return "0" |
|
|
|
} |
|
|
|
func GetOwnTaskVideoNum(eg *xorm.Engine, uid, startTime, endTime string) int { |
|
|
|
sess := eg.Where("uid=? and time>=? and time<? and task_type=? and task_id>0", uid, startTime, endTime, 3) |
|
|
|
sum, _ := sess.Sum(&model.TaskVideoNum{}, "count") |
|
|
|
return int(sum) |
|
|
|
} |