Sha256: 5b2871ae0653ac23cb29bc8728ed9b4af13b68bdb5afa59ba82fa48560434847
Contents?: true
Size: 1.22 KB
Versions: 50
Compression:
Stored size: 1.22 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 json.is_contact d.is_contact ? '是':'否' end end json.code 0 json.count @follow_ups.total_count
Version data entries
50 entries across 50 versions & 1 rubygems