Sha256: 7133f63ca1e2930becf4459bc37b221a94175b30c7a356f5391d963af67b90e4
Contents?: true
Size: 728 Bytes
Versions: 9
Compression:
Stored size: 728 Bytes
Contents
json.data do json.array! @data do |d| if d.is_a? EducodeSales::Teacher json.value "t-#{d.id}" if d.department.present? json.name "#{d.name}--(#{d.department&.school&.name}--#{d.department&.name}) (来源教师列表)" else json.name "#{d.name}--(来源教师列表)" end json.extras [d.professional_title, d.job] else json.value "u-#{d.id}" if d.department_id.present? json.name "#{d.real_name}--(#{d.user_extension.department&.school&.name}-#{d.user_extension.department&.name}) (来源头歌用户)" else json.name "#{d.real_name}--(来源头歌用户)" end json.extras "" end end end json.code 0 json.msg 'succcess'
Version data entries
9 entries across 9 versions & 1 rubygems