| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 
 | ODS层(建模规则为: edu_ods.表名
 客户关系表 customer_relationship
 客户线索表 customer_clue
 客户表 customer
 客户申诉表 customer_appeal
 学科表 itcast_subject
 校区表 itcast_school
 员工表 employee
 部门表 scrm_department
 访问咨询表web_chat_ems
 
 
 DWD层(建模规则为: edu_dwd.表名
 
 
 将create_date_time 通过substring函数转换为 yearinfo monthinfo dayinfo hourinfo
 将origin_type 转换为 origin_type_state(NETSERVICE,PRESIGNUP 认为线上,其余线下)
 将clue_state 转换为 clue_state_stat(值为VALID_NEW_CLUES为新客户)
 将校区和学科的id字段进行转换, 如果为 0 或者 null 转换为 -1
 将无效线索过滤,关联投诉表,判断clue_appeal_state有效无效
 
 yearinfo,monthinfo,dayinfo都是分区字段(表customer_relationship)
 
 
 'NETSERVICE', 'PRESIGNUP'都是线上,其余的是线下(表customer_relationship)
 
 
 'VALID_NEW_CLUES'
 'VALID_PUBLIC_NEW_CLUE'
 (表customer_clue cc)
 
 
 itcast_school_id 	'校区Id',
 itcast_school  		'校区',
 itcast_subject_id	'学科Id',
 itcast_subject  	'学科',
 (表customer_clue cc)
 
 customer_clue 中clue_appeal_state 判断有效无效: 0 有效  1无效(表customer_clue cc)
 
 
 分区字段为start_time会话开始时间
 end_time为会话结束时间
 
 
 
 
 
 DWB层(建模规则为: edu_dwb.表名
 
 
 DM层(建模规则为: edu_dm.表名
 
 
 |