Sha256: a672b4a60255abab52f9555cd1a5117f473f8417baff12cf91076b6d5af2fe12

Contents?: true

Size: 1.17 KB

Versions: 339

Compression:

Stored size: 1.17 KB

Contents

json.data do
  json.array!  @follow_ups do |d|
    json.id d.id
    json.created_at d.created_at.to_s
    json.time d.created_at.to_s(:date)
    json.teacher_attitude EducodeSales::Common.find_by(id: d.attitude_id).name
    json.course_plan EducodeSales::Common.find_by(id: d.course_plan_id).name
    json.course_build EducodeSales::Common.find_by(id: d.course_build_id).name
    json.contact EducodeSales::Common.find_by(id: d.follow_id).name
    json.staff d.staff.user.real_name
    json.students_count d.teacher&.students_count
    # json.courses_count Course.joins(:course_members).where(course_members: {user_id: d.teacher&.user_id}).distinct("course_id").count
    json.courses_count Course.joins(:course_members).where(course_members: {user_id: d.teacher&.user_id}).where("is_delete = 0 and role != 4  and excellent = 0  and is_hidden = 0").where("start_date is null or start_date <= '#{Date.today}'").distinct(:course_id).count
    json.evaluates_count d.evaluates_count
    json.course_shixuns_count d.course_shixuns_count
    json.shixuns_count d.shixuns_count
    json.is_latest d.id == @latest.id
    json.content d.description
  end
end

json.code 0
json.count @follow_ups.total_count

Version data entries

339 entries across 181 versions & 1 rubygems

Version Path
educode_sales-1.10.41 app/views/educode_sales/ideas/show_follow.json.jbuilder
educode_sales-1.10.41 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.37 app/views/educode_sales/ideas/show_follow.json.jbuilder
educode_sales-1.10.37 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.36 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.36 app/views/educode_sales/ideas/show_follow.json.jbuilder
educode_sales-1.10.35 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.35 app/views/educode_sales/ideas/show_follow.json.jbuilder
educode_sales-1.10.34 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.34 app/views/educode_sales/ideas/show_follow.json.jbuilder
educode_sales-1.10.33 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.33 app/views/educode_sales/ideas/show_follow.json.jbuilder
educode_sales-1.10.31 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.31 app/views/educode_sales/ideas/show_follow.json.jbuilder
educode_sales-1.10.30 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.30 app/views/educode_sales/ideas/show_follow.json.jbuilder
educode_sales-1.10.29 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.29 app/views/educode_sales/ideas/show_follow.json.jbuilder
educode_sales-1.10.28 app/views/educode_sales/idea_recycles/show_follow.json.jbuilder
educode_sales-1.10.28 app/views/educode_sales/ideas/show_follow.json.jbuilder