# encoding:utf-8 class ChunjieConfigStatController < BaseController before_filter :authenticate_admin_user! def index # 活动ID pid = params[:id].to_i # 活动名称 @title = '春节快乐' #已经发放的红包金额 @hongbaoTotalMoney = 20000 #参与人数: @total_join = 50000000 #新增注册用户数: @total_new_register = 60000000 #新增关注: @total_new_sub = 70000 render :layout => false end #项目投资排名 # def rank # pid = params[:id].to_i # @project = Project.where("id=?",pid).first # sql = "select sum(j.total_price) as investment, j.user_id, j.paied_at as invest_time,u.real_name,u.tel from d5c_project_joins j,d5c_users u where j.user_id=u.id and j.project_id = #{pid} and j.state = 1 and j.is_refunded = 0 and j.is_deleted = 0 group by j.user_id order by invest_time asc, j.created_at asc"; # @items = ProjectJoin.find_by_sql(sql) # end end