Sha256: 82eed580b9dc929f83206557be2c6cd91f56c219fd888e47f5c6316e5bcfe631

Contents?: true

Size: 664 Bytes

Versions: 5

Compression:

Stored size: 664 Bytes

Contents

json.data do
  json.array! @data do |d|
    json.id d.id
    json.name d.name
    json.clazz_id d.clazz_id
    json.clazz d.clazz.name
    json.staff d&.last_follow_up&.assign_follow_ups.present? ? (d&.last_follow_up&.assign_follow_ups.map{ |d| d.staff&.user&.real_name}.join("、")) : d.staff&.user&.real_name
    json.school_id d.school_id
    json.school d.department&.school&.name
    json.school_tag_name d.school_tag_name
    json.school_tag_id d.school_tag_id
    json.year @year
    json.target_clazz @target_clazz
    json.money d.money
    json.time d.time
    json.created_at d.created_at.to_s(:date)

  end
end

json.code 0
json.count @data.total_count

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
educode_sales-1.10.74 app/views/educode_sales/plans/staff_year_business.json.jbuilder
educode_sales-1.10.73 app/views/educode_sales/plans/staff_year_business.json.jbuilder
educode_sales-1.10.72 app/views/educode_sales/plans/staff_year_business.json.jbuilder
educode_sales-1.10.71 app/views/educode_sales/plans/staff_year_business.json.jbuilder
educode_sales-1.10.70 app/views/educode_sales/plans/staff_year_business.json.jbuilder