Class: EducodeSales::Common

Inherits:
ApplicationRecord show all
Defined in:
app/models/educode_sales/common.rb

Class Method Summary collapse

Class Method Details

.job_type_nameObject



21
22
23
# File 'app/models/educode_sales/common.rb', line 21

def self.job_type_name
  self.where(clazz: 'staff_type', name: ['销售', '运营']).pluck(:id, :name).to_h
end

.key_attitude_nameObject



29
30
31
# File 'app/models/educode_sales/common.rb', line 29

def self.key_attitude_name
  self.where(clazz: 'key_attitude').pluck(:id, :name).to_h
end

.teacher_attitude_nameObject



33
34
35
# File 'app/models/educode_sales/common.rb', line 33

def self.teacher_attitude_name
  self.where(clazz: 'teacher_attitude').pluck(:id, :name).to_h
end

.teacher_source_nameObject



25
26
27
# File 'app/models/educode_sales/common.rb', line 25

def self.teacher_source_name
  self.where(clazz: 'teacher_source').pluck(:id, :name).to_h
end