db:=model.DB().Model(InviteApply{}).Where("user_id in (?)",userIds).Where("created_time >= ? and created_time <= ?",beginTime,endTime)
endTimetime.Time)([]*InviteApply,int64,error){
db:=model.DB().Model(InviteApply{}).Where("user_id in (?) or sub_user_id = ?",userIds,subUserId).Where("created_time >= ? and created_time <= ?",beginTime,endTime)